Skip to content

Commit 22de047

Browse files
author
Javier de Siloniz Sandino
committed
fix
1 parent 537513f commit 22de047

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/fpinscalalib/GettingStartedWithFPSection.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ 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
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
6767
isSorted(Array("Scala", "Exercises"), (x: String, y: String) => x.length > y.length) shouldBe res2
6868
}
6969

0 commit comments

Comments
 (0)