Commits

Shlomi Fish committed ce98a6c

Add a test for x=0.

Comments (0)

Files changed (1)

abc-path/js/abc-path-test.js

     });
 
     test("_clues_positions", function() {
-        expect(3);
+        expect(4);
 
         // The seed does not matter.
         var gen = new ABC_Path.Generator.Generator({seed : 1});
         deepEqual(map_clue(gen._clues_positions[2]), [[0,0],[0,1],[0,2],[0,3],[0,4]],
             'clue No. 2 (y=0) is OK.'
         );
+        // TEST
+        deepEqual(map_clue(gen._clues_positions[2+5]), [[0,0],[1,0],[2,0],[3,0],[4,0]],
+            'clue No. 2+5 (x=0) is OK.'
+        );
     });
 }