Skip to content

Commit

Permalink
Two more bit array things
Browse files Browse the repository at this point in the history
  • Loading branch information
phoe committed May 9, 2020
1 parent 42fc20a commit f592e23
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions koans-solved/arrays.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,6 @@
(dotimes (i (* 2 2 2 2))
(setf (row-major-aref my-array i) i))
(assert-equal 0 (aref my-array 0 0 0 0))
(assert-equal 2 (aref my-array 0 0 1 0))
(assert-equal 4 (aref my-array 0 1 0 0))
(assert-equal 15 (aref my-array 1 1 1 1))))
2 changes: 2 additions & 0 deletions koans/arrays.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,6 @@
(dotimes (i (* 2 2 2 2))
(setf (row-major-aref my-array i) i))
(assert-equal ____ (aref my-array 0 0 0 0))
(assert-equal ____ (aref my-array 0 0 1 0))
(assert-equal ____ (aref my-array 0 1 0 0))
(assert-equal ____ (aref my-array 1 1 1 1))))

0 comments on commit f592e23

Please sign in to comment.