Skip to content

Commit

Permalink
move tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brekk committed Mar 30, 2024
1 parent 1eb7d42 commit 71d2ff4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
7 changes: 6 additions & 1 deletion prelude/__internal__/Integer.spec.mad
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { EQ, LT, GT } from "Compare"
import { EQ, GT, LT } from "Compare"
import { range } from "Integer"
import { assertEquals, test } from "Test"


Expand All @@ -8,3 +9,7 @@ test("Compare Integer - GT", (_) => assertEquals(compare(3, 2), GT))
test("Compare Integer - LT", (_) => assertEquals(compare(1, 2), LT))

test("Compare Integer - EQ", (_) => assertEquals(compare(2, 2), EQ))


test("range", () => assertEquals(range(3, 7), [3, 4, 5, 6]))
test("range - same start and end", () => assertEquals(range(3, 3), []))
5 changes: 0 additions & 5 deletions prelude/__internal__/List.spec.mad
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
mapMaybe,
mapWithIndex,
nth,
range,
reduce,
reject,
reverse,
Expand Down Expand Up @@ -216,10 +215,6 @@ test("takeWhile", () => assertEquals(takeWhile((x) => x < 5, [1, 2, 3, 4, 5, 6])

test("reverse", () => assertEquals(reverse([1, 2, 3]), [3, 2, 1]))

test("range", () => assertEquals(range(3, 7), [3, 4, 5, 6]))

test("range - same start and end", () => assertEquals(range(3, 3), []))

test("tail", () => assertEquals(tail([1, 2, 3]), [2, 3]))
test("tail - empty", () => assertEquals(tail([]), []))

Expand Down

0 comments on commit 71d2ff4

Please sign in to comment.