summaryrefslogtreecommitdiff
path: root/ds/integer_test.go
diff options
context:
space:
mode:
authorPaul Buetow <pbuetow@mimecast.com>2020-08-08 13:01:36 +0100
committerPaul Buetow <pbuetow@mimecast.com>2020-08-08 13:01:36 +0100
commit390333bb314f6cb25adc5716ea383112860ed342 (patch)
tree2b87d5741d84b2cd2d7c74eaaa0f522c3a8a221c /ds/integer_test.go
parentdeaa4e1c33cd2c1c75f698881918688055abfa51 (diff)
add parallelquick and so on
Diffstat (limited to 'ds/integer_test.go')
-rw-r--r--ds/integer_test.go18
1 files changed, 18 insertions, 0 deletions
diff --git a/ds/integer_test.go b/ds/integer_test.go
index 9be55eb..fe9cb90 100644
--- a/ds/integer_test.go
+++ b/ds/integer_test.go
@@ -21,4 +21,22 @@ func TestCompare(t *testing.T) {
if res != 0 {
t.Errorf("%v must be equal to %v, but got %v", i, j, res)
}
+
+ i = Integer{23}
+ j = Integer{23}
+ if !i.HigherEqual(j) {
+ t.Errorf("Unpexpected %v.HigherEqual(%v) == false",
+ i,j)
+ }
+
+ i = Integer{23}
+ j = Integer{42}
+ if i.HigherEqual(j) {
+ t.Errorf("Unpexpected %v.HigherEqual(%v) == true",
+ i,j)
+ }
+ if !j.HigherEqual(i) {
+ t.Errorf("Unpexpected %v.HigherEqual(%v) == false",
+ j,i)
+ }
}