tests: extends test_seq and bench_seq with CircularArray
authorJean Privat <jean@pryen.org>
Thu, 3 Dec 2015 19:29:21 +0000 (14:29 -0500)
committerJean Privat <jean@pryen.org>
Thu, 3 Dec 2015 20:57:04 +0000 (15:57 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/bench_seq.nit
tests/sav/bench_seq.res
tests/sav/test_seq.res
tests/test_seq.nit

index 560a8a2..8e83868 100644 (file)
@@ -39,3 +39,4 @@ if args.not_empty then nb = args.first.to_i
 test_list(new Array[Int], nb)
 test_list(new List[Int], nb)
 test_list(new UnrolledList[Int], nb)
+test_list(new CircularArray[Int], nb)
index 5ece831..d9c755c 100644 (file)
 200 0 99
 301 0 99
 
+100 0 99
+200 -100 99
+200 0 -1
+200 -100 99
+200 0 99
+301 0 99
+
index 1de5fa0..c55a08b 100644 (file)
@@ -14,3 +14,7 @@ true
 true
 true
 
+true
+true
+true
+
index ff77897..40cfa68 100644 (file)
@@ -29,3 +29,4 @@ test_seq(new List[Int], new List[Int])
 test_seq(new Array[Int], new Array[Int])
 test_seq(new List[Int], new Array[Int])
 test_seq(new Array[Int], new List[Int])
+test_seq(new Array[Int], new CircularArray[Int])