Skip to content

Commit d644aca

Browse files
committed
Fix my way of defining the natural numbers being slightly inconsistent with the rest of the universe.
1 parent 5757717 commit d644aca

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

tests/pixie/tests/test-stdlib.pxi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -424,11 +424,11 @@
424424
(t/assert= (condp :dont-call-me :dont-use-me) nil)
425425
(let [f (fn [x]
426426
(condp = x
427-
0 :one
428-
1 :two
427+
1 :one
428+
2 :two
429429
:whatever))]
430-
(t/assert= (f 0) :one)
431-
(t/assert= (f 1) :two)
430+
(t/assert= (f 1) :one)
431+
(t/assert= (f 2) :two)
432432
(t/assert= (f 9) :whatever)))
433433

434434
(t/deftest test-case

0 commit comments

Comments
 (0)