Tweak lib/interval's split3Ways' return values

This commit is contained in:
Nigel Tao committed 2019-11-02 11:52:44 +11:00
1 parent 960a3b76d7
commit d90ad9d282
2 files changed
+35 -31

No files matched your search

+2 -1
View File
@@ -303,7 +303,8 @@ func TestContainsEtc(tt *testing.T) {
}
for _, x := range eqTestCases {
neg, pos, negEmpty, hasZero, posEmpty := x.split()
neg, pos, hasNeg, hasZero, hasPos := x.split3Ways()
negEmpty, posEmpty := !hasNeg, !hasPos
if got, want := neg.Empty(), negEmpty; got != want {
tt.Errorf("%v: neg.Empty() == %t, negEmpty == %t", x, got, want)
}