mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-22 15:58:34 +03:00
Merge pull request #2233 from unisonweb/topic/natdivmod
Test `Nat./` and `Nat.mod`
This commit is contained in:
commit
c8a849707c
@ -95,6 +95,8 @@ test> Nat.tests.arithmetic =
|
||||
10 / 5 == 2,
|
||||
10 `mod` 3 == 1,
|
||||
10 `mod` 2 == 0,
|
||||
18446744073709551615 / 2 == 9223372036854775807,
|
||||
18446744073709551615 `mod` 2 == 1,
|
||||
increment 99 == 100,
|
||||
not (isEven 99),
|
||||
isEven 100,
|
||||
@ -105,7 +107,7 @@ test> Nat.tests.arithmetic =
|
||||
43 `lteq` 43,
|
||||
43 `lteq` 44,
|
||||
43 `gteq` 43,
|
||||
43 `gteq` 41
|
||||
43 `gteq` 41,
|
||||
]
|
||||
|
||||
test> Nat.tests.bitTwiddling =
|
||||
|
@ -91,6 +91,8 @@ test> Nat.tests.arithmetic =
|
||||
10 / 5 == 2,
|
||||
10 `mod` 3 == 1,
|
||||
10 `mod` 2 == 0,
|
||||
18446744073709551615 / 2 == 9223372036854775807,
|
||||
18446744073709551615 `mod` 2 == 1,
|
||||
increment 99 == 100,
|
||||
not (isEven 99),
|
||||
isEven 100,
|
||||
@ -101,7 +103,7 @@ test> Nat.tests.arithmetic =
|
||||
43 `lteq` 43,
|
||||
43 `lteq` 44,
|
||||
43 `gteq` 43,
|
||||
43 `gteq` 41
|
||||
43 `gteq` 41,
|
||||
]
|
||||
|
||||
test> Nat.tests.bitTwiddling =
|
||||
|
Loading…
Reference in New Issue
Block a user