diff options
Diffstat (limited to '')
-rw-r--r-- | new-luxc/test/test/luxc/lang/analysis/procedure/common.lux | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/new-luxc/test/test/luxc/lang/analysis/procedure/common.lux b/new-luxc/test/test/luxc/lang/analysis/procedure/common.lux index 9cd456f5d..632a798e3 100644 --- a/new-luxc/test/test/luxc/lang/analysis/procedure/common.lux +++ b/new-luxc/test/test/luxc/lang/analysis/procedure/common.lux @@ -80,36 +80,6 @@ (check-success+ "lux bit arithmetic-right-shift" (list signedC paramC) Int)) )))) -(context: "Nat procedures" - (<| (times +100) - (do @ - [subjectC (|> r.nat (:: @ map code.nat)) - paramC (|> r.nat (:: @ map code.nat))] - ($_ seq - (test "Can add natural numbers." - (check-success+ "lux nat +" (list subjectC paramC) Nat)) - (test "Can subtract natural numbers." - (check-success+ "lux nat -" (list subjectC paramC) Nat)) - (test "Can multiply natural numbers." - (check-success+ "lux nat *" (list subjectC paramC) Nat)) - (test "Can divide natural numbers." - (check-success+ "lux nat /" (list subjectC paramC) Nat)) - (test "Can calculate remainder of natural numbers." - (check-success+ "lux nat %" (list subjectC paramC) Nat)) - (test "Can test equality of natural numbers." - (check-success+ "lux nat =" (list subjectC paramC) Bool)) - (test "Can compare natural numbers." - (check-success+ "lux nat <" (list subjectC paramC) Bool)) - (test "Can obtain minimum natural number." - (check-success+ "lux nat min" (list) Nat)) - (test "Can obtain maximum natural number." - (check-success+ "lux nat max" (list) Nat)) - (test "Can convert natural number to integer." - (check-success+ "lux nat to-int" (list subjectC) Int)) - (test "Can convert natural number to text." - (check-success+ "lux nat char" (list subjectC) Text)) - )))) - (context: "Int procedures" (<| (times +100) (do @ @@ -138,6 +108,8 @@ (check-success+ "lux int to-nat" (list subjectC) Nat)) (test "Can convert integer to frac number." (check-success+ "lux int to-frac" (list subjectC) Frac)) + (test "Can convert integer to text." + (check-success+ "lux int char" (list subjectC) Text)) )))) (context: "Deg procedures" |