Skip to content

Commit 32b3ac9

Browse files
committed
remove 'hint' from loneElementOption
1 parent d03cd7f commit 32b3ac9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

codepropertygraph/src/test/scala/io/shiftleft/ImplicitsTests.scala

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,11 @@ class ImplicitsTests extends AnyWordSpec with Matchers {
3838

3939
"loneElementOption returns an Option of the one and only element from an Iterable, or else None" in {
4040
Seq(1).loneElementOption shouldBe Some(1)
41-
Seq(1).loneElementOption("some context") shouldBe Some(1)
4241
Seq(null).loneElementOption shouldBe Some(null)
43-
Seq(null).loneElementOption("some context") shouldBe Some(null)
4442

4543
Seq.empty.loneElementOption shouldBe None
46-
Seq.empty.loneElementOption("some context") shouldBe None
47-
44+
4845
Seq(1, 2).loneElementOption shouldBe None
49-
Seq(1, 2).loneElementOption("some context") shouldBe None
5046
}
5147

5248
}

0 commit comments

Comments
 (0)