Skip to content

Commit 2902eca

Browse files
committed
Wrote a few tests for +.
1 parent 351a11c commit 2902eca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

scalatest-test/src/test/scala/org/scalatest/InsertionOrderSetSpec.scala

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ class InsertionOrderSetSpec extends FunSpec with Matchers {
2424
InsertionOrderSet(List(1, 2, 3, 3)) shouldEqual InsertionOrderSet(List(1, 2, 3))
2525
}
2626
it("should ensure duplicates can't be added") {
27-
pending
27+
InsertionOrderSet(List(1, 2, 3)) + 3 shouldEqual InsertionOrderSet(List(1, 2, 3))
28+
}
29+
it("should ensure non-duplicates can be added") {
30+
InsertionOrderSet(List(1, 2, 3)) + 4 shouldEqual InsertionOrderSet(List(1, 2, 3, 4))
2831
}
2932
}
3033
}

0 commit comments

Comments
 (0)