Skip to content

Commit

Permalink
Add test using the new valid symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
mariari committed Jul 18, 2022
1 parent bf435d6 commit e88b487
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/Scope/Positive.hs
Original file line number Diff line number Diff line change
Expand Up @@ -199,5 +199,10 @@ tests =
"Import embedded standard library"
"StdlibImport"
StdlibInclude
"StdlibImport.juvix"
"StdlibImport.juvix",
PosTest
"Check Valid Symbols"
""
StdlibInclude
"Symbols.juvix"
]
31 changes: 31 additions & 0 deletions tests/positive/Symbols.juvix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module Symbols;

open import Stdlib.Data.Nat;

╘⑽╛ : ℕ;
╘⑽╛ ≔ suc nine;

-- no - function!?
- : ℕ -> ℕ -> ℕ;
- ≔ (+);

(-) : ℕ -> ℕ -> ℕ;
(-) ≔ (-);

(*) : ℕ -> ℕ -> ℕ;
(*) ≔ (*);

infixl 6 -;
- : ℕ -> ℕ -> ℕ;
- ≔ (-);

infixl 7 ·;
· : ℕ -> ℕ -> ℕ;
· ≔ (*);

(0) : ℕ;
(0) ≔ ╘⑽╛ - ╘⑽╛ · zero;

主功能 : ℕ;
主功能 ≔ (0);
end;

0 comments on commit e88b487

Please sign in to comment.