We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d03cd7f commit 32b3ac9Copy full SHA for 32b3ac9
codepropertygraph/src/test/scala/io/shiftleft/ImplicitsTests.scala
@@ -38,15 +38,11 @@ class ImplicitsTests extends AnyWordSpec with Matchers {
38
39
"loneElementOption returns an Option of the one and only element from an Iterable, or else None" in {
40
Seq(1).loneElementOption shouldBe Some(1)
41
- Seq(1).loneElementOption("some context") shouldBe Some(1)
42
Seq(null).loneElementOption shouldBe Some(null)
43
- Seq(null).loneElementOption("some context") shouldBe Some(null)
44
45
Seq.empty.loneElementOption shouldBe None
46
- Seq.empty.loneElementOption("some context") shouldBe None
47
-
+
48
Seq(1, 2).loneElementOption shouldBe None
49
- Seq(1, 2).loneElementOption("some context") shouldBe None
50
}
51
52
0 commit comments