Commits

John Chandler  committed e9e9e15

Added another test to the row refinement

  • Participants
  • Parent commits c0d5aff

Comments (0)

Files changed (1)

File test/pseudohkoo/test/core.clj

 
 ;; refine-row
 (deftest test-refine-row-nearly-done
-  ; test refining of a "nearly done" row i.e. we're missing a value
-  (is (= [1 2 3, 4 5 6, 7 8 9] (refine-row [1 2 3, 4 5 6, 7 8 nil]) )))
+  ; test refining of a "nearly done" row i.e. we're missing a value or two
+  (is (= [1 2 3, 4 5 6, 7 8 9]         (refine-row [1 2 3, 4 5 6, 7 8 nil]) ))
+  (is (= [1 2 [3 9], 4 5 6, 7 8 [3 9]] (refine-row [1 2 nil, 4 5 6, 7 8 nil]) )))
 
 
 ;; refine-grid