diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/files/run/map_test.check | 2 | ||||
-rw-r--r-- | test/files/run/map_test.scala | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/test/files/run/map_test.check b/test/files/run/map_test.check index a8585769e8..a788c0fbca 100644 --- a/test/files/run/map_test.check +++ b/test/files/run/map_test.check @@ -1,3 +1,3 @@ -{42 -> The answer, 17 -> A small random number, 666 -> A bigger random number, 4711 -> A big random number} +0->0 1->1 2->2 3->3 4->4 5->5 6->6 7->7 8->8 9->9 10->10 11->11 12->12 13->13 14->14 15->15 16->16 17->17 18->18 19->19 20->20 21->21 22->22 23->23 24->24 25->25 26->26 27->27 28->28 29->29 30->30 31->31 32->32 33->33 34->34 35->35 36->36 37->37 38->38 39->39 40->40 41->41 42->42 666->A bigger random number 4711->A big random number 0->0 1->1 2->2 3->3 4->4 5->5 6->6 7->7 8->8 9->9 10->10 11->11 12->12 13->13 14->14 15->15 16->16 17->17 18->18 19->19 20->20 21->21 22->22 23->23 24->24 25->25 26->26 27->27 28->28 29->29 30->30 31->31 32->32 33->33 34->34 35->35 36->36 37->37 38->38 39->39 40->40 41->41 42->42 666->A bigger random number 4711->A big random number OK diff --git a/test/files/run/map_test.scala b/test/files/run/map_test.scala index 9c4bd2814e..7e91955317 100644 --- a/test/files/run/map_test.scala +++ b/test/files/run/map_test.scala @@ -9,14 +9,13 @@ object Test with Executable { test1(); test2(); - Console.println("OK"); def test1() = { val myMap:TreeMap[int,String] = new TreeMap(intOrder); - test_map(myMap); + test_map(myMap); } def test2() = { @@ -29,8 +28,7 @@ object Test with Executable { val map2 = map1.update(17,"A small random number"); val map3 = map2.update(666,"A bigger random number"); val map4 = map3.update(4711,"A big random number"); - // val map1 = myMap + 42 -> "The answer"; - Console.println(map4); + map1 == myMap + 42 -> "The answer"; var i = 0; var map = map4; while(i < 43) { |