diff options
| author | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-22 21:57:57 -0500 |
|---|---|---|
| committer | Marshall Lochbaum <mwlochbaum@gmail.com> | 2020-12-22 21:57:57 -0500 |
| commit | f545fe2e5dfb62f874c96eb587baafd7575d442d (patch) | |
| tree | 5507aa2efa5bb4385a21639a5817eb41828ebf00 /test | |
| parent | 6267150a30c482dd5539689a4afc508f7855ef24 (diff) | |
Check for errors in arithmetic on non-numbers
Diffstat (limited to 'test')
| -rw-r--r-- | test/cases/prim.bqn | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/cases/prim.bqn b/test/cases/prim.bqn index 01d1d43d..d9c0dc72 100644 --- a/test/cases/prim.bqn +++ b/test/cases/prim.bqn @@ -91,23 +91,30 @@ 7≡5+⟜2 ¯3 2≡√4 3≡3√27 +! % √'x' 6≡2∧3 0≡¯2∧0 +! % 'a'∧¯1 0.75≡∨˜0.5 1.75≡2∨0.25 +! % F←-⋄2∨f 0≡¬1 1≡¬0 2≡¬¯1 +! % ¬'a' 0≡3¬4 2≡4¬3 4≡5¬2 +! % F←{𝕩}⋄0¬f 0≡|0 5≡|¯5 6≡|6 ∞≡|¯∞ +! % F←+-⋄|f 2≡3|8 2≡3|¯7 ¯1≡¯3|8 +! % 26|'A' "a"≡⥊<'a' "abcd"≡⊑<"abcd" ⟨⟩≡≢<⟨2,⟨3,4⟩⟩ |
