1. John Chandler
  2. pseudohkoo

Commits

John Chandler  committed 5da0e21

removed unused row retrieval code

  • Participants
  • Parent commits eecb83e
  • Branches default

Comments (0)

Files changed (2)

File src/pseudohkoo/core.clj

View file
        line))
 
 ;; row functions
-(defn get-row [grid row-index]
-  ; returns the specified row from the grid, or [] if row out-of-bounds
-  (nth grid row-index []))
-
 (defn refine-row [row]
   ; return a row with non-definite values refined, where possible
   (refine-line row))

File test/pseudohkoo/test/core.clj

View file
     (is (= expected (get-columns grid)))))
 
 
-;; get-row
-(deftest test-get-row
-  ; retrieve a row from the grid
-  (let [grid [[0 0 0]
-	      [0 1 0]
-	      [0 0 0]]
-       ]
-    (is (= [0 1 0] (get-row grid 1)))))
-
-(deftest test-get-row-out-of-bounds
-  ; retrieve a non-existent row from the grid
-  (let [grid [[0 0 0]
-	      [0 1 0]
-	      [0 0 0]]
-       ]
-    (is (= [] (get-row grid 3)))))
-
-
 ;; update-row
 (deftest test-update-row
   ; set first cell in the row