Skip to content

Commit

Permalink
updated to newer Scala 3 syntax without braces
Browse files Browse the repository at this point in the history
Signed-off-by: Konstantin Läufer <[email protected]>
  • Loading branch information
klaeufer committed Sep 27, 2023
1 parent 228485c commit 5bac768
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/scala/impl/EchoSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ object EchoSpec extends Properties("Echo"):

val doubleEcho = new DoubleEcho

property("simpleEcho") = forAll { (a: String) =>
simpleEcho.echo(a) == a
}
property("simpleEcho") = forAll:
(a: String) =>
simpleEcho.echo(a) == a

property("doubleEcho") = forAll { (a: String) =>
doubleEcho.echo(a) == a + " " + a
}
property("doubleEcho") = forAll:
(a: String) =>
doubleEcho.echo(a) == a + " " + a

end EchoSpec

0 comments on commit 5bac768

Please sign in to comment.