aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/xyz/driver/core/DateTest.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/xyz/driver/core/DateTest.scala')
-rw-r--r--src/test/scala/xyz/driver/core/DateTest.scala18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/test/scala/xyz/driver/core/DateTest.scala b/src/test/scala/xyz/driver/core/DateTest.scala
index 0cf8a9e..0432040 100644
--- a/src/test/scala/xyz/driver/core/DateTest.scala
+++ b/src/test/scala/xyz/driver/core/DateTest.scala
@@ -24,14 +24,16 @@ class DateTest extends FlatSpec with Matchers with Checkers {
}
it should "have ordering defined correctly" in {
- Seq(Date.fromString("2013-05-10"),
- Date.fromString("2020-02-15"),
- Date.fromString("2017-03-05"),
- Date.fromString("2013-05-12")).sorted should
- contain theSameElementsInOrderAs Seq(Date.fromString("2013-05-10"),
- Date.fromString("2013-05-12"),
- Date.fromString("2017-03-05"),
- Date.fromString("2020-02-15"))
+ Seq(
+ Date.fromString("2013-05-10"),
+ Date.fromString("2020-02-15"),
+ Date.fromString("2017-03-05"),
+ Date.fromString("2013-05-12")).sorted should
+ contain theSameElementsInOrderAs Seq(
+ Date.fromString("2013-05-10"),
+ Date.fromString("2013-05-12"),
+ Date.fromString("2017-03-05"),
+ Date.fromString("2020-02-15"))
check { dates: List[Date] =>
dates.sorted.sliding(2).filter(_.size == 2).forall {