Skip to content

Commit 491ce39

Browse files
author
Javier de Silóniz Sandino
authored
Merge pull request #46 from scala-exercises/bugfix/jsandino/broken-test
Fixing exercise after previous merge
2 parents f2bdb32 + 5d4bfbe commit 491ce39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/scala/fpinscalalib/GettingStartedWithFPSection.scala

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ object GettingStartedWithFPSection
6262
go(0)
6363
}
6464

65-
isSorted(Array(1, 3, 5, 7), (x: Int, y: Int) => x > y) shouldBe res0
66-
isSorted(Array(7, 5, 1, 3), (x: Int, y: Int) => x < y) shouldBe res1
67-
isSorted(Array("Scala", "Exercises"), (x: String, y: String) => x.length > y.length) shouldBe res2
65+
isSorted(Array(1, 3, 5, 7), (x: Int, y: Int) => x < y) shouldBe res0
66+
isSorted(Array(7, 5, 1, 3), (x: Int, y: Int) => x > y) shouldBe res1
67+
isSorted(Array("Scala", "Exercises"), (x: String, y: String) => x.length < y.length) shouldBe res2
6868
}
6969

7070
/**

0 commit comments

Comments
 (0)