Skip to content

Commit

Permalink
Add a test for the string interpolator
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Alonso Dominguez committed Dec 14, 2018
1 parent 7bd5e96 commit 0c3e8d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/main/tut/docs/whats_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ New features:

* [#125](https://github.com/alonsodomin/cron4s/pull/125): Add extension module for [decline](http://ben.kirw.in/decline/).
Find documentation about it in the [extensions](https://alonsodomin.github.io/cron4s/extensions.html) docs.
* [#126](https://github.com/alonsodomin/cron4s/pull/126): Add a compile-time string interpolator.

Version upgrades:

Expand Down
6 changes: 6 additions & 0 deletions tests/shared/src/test/scala/cron4s/CronSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,10 @@ class CronSpec extends FlatSpec with Matchers {
Cron.unsafeParse(exprStr) shouldBe ValidExpr
}

it should "compile a valid expression" in {
val expr = cron"17-30,5 * 12 * * ?"

expr shouldBe ValidExpr
}

}

0 comments on commit 0c3e8d1

Please sign in to comment.