Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 1, 2024
1 parent b138371 commit 99ca2a3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/test/tests.scala
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import anticipation.*
import gossamer.*
import larceny.*
import perforate.*
import vacuous.*
import probably.*
import rudiments.*

Expand Down Expand Up @@ -279,14 +280,14 @@ object Tests extends Suite(t"Rudiments Tests"):
Optional(x)
.assert(_ == "")

test(t"Convert an option to a maybe"):
test(t"Convert an option to an optional"):
val x: Option[Int] = Some(42)
x.maybe
x.optional
.assert(_ == 42)

test(t"Convert an empty Option to a maybe"):
test(t"Convert an empty Option to an optional"):
val x: Option[Int] = None
x.maybe
x.optional
.assert(_ == Unset)

test(t"Presume a value for an empty Option"):
Expand Down

0 comments on commit 99ca2a3

Please sign in to comment.