-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from andrew-johnson-4/fragment-cleanup-aisle1
Fragment cleanup aisle1
- Loading branch information
Showing
6 changed files
with
202 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
unit-tests: | ||
unit-tests: prod | ||
cargo test unit_test_suite -- --nocapture | ||
|
||
nostd: prod | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,49 @@ | ||
|
||
import PRODUCTION/utility.lm; | ||
|
||
(assert-eq( LiteralEquality True True )); | ||
(assert-eq( True True )); | ||
|
||
(assert-eq( (parse-typeof Nil) Nil )); | ||
(assert-eq( (parse-typeof Atom) Atom )); | ||
(assert-eq( (parse-typeof List<Atom>) (List Atom) )); | ||
(assert-eq( (parse-typeof List<List<Atom>>) (List (List Atom)) )); | ||
(assert-eq( (parse-typeof [Atom,Nil]) ('[] (Atom Nil)) )); | ||
(assert-eq( (parse-typeof [Atom,Nil,Cons]) ([] (([] (Atom Nil)) Cons)) )); | ||
|
||
(assert-eq( (parse-typeof [Atom,List<[Cons,Nil]>]) ([] (Atom (List ([] (Cons Nil))))) )); | ||
|
||
(assert-typeof( () Nil )); | ||
(assert-not-typeof( 1 Nil )); | ||
(assert-not-typeof( (1 2) Nil )); | ||
|
||
(assert-typeof( 1 Atom )); | ||
(assert-not-typeof( () Atom )); | ||
(assert-not-typeof( (1 2) Atom )); | ||
|
||
(assert-typeof( (1 2) Cons )); | ||
(assert-not-typeof( 1 Cons )); | ||
(assert-not-typeof( () Cons )); | ||
|
||
(assert-typeof( (StrictExpr ()) StrictExpr )); | ||
(assert-not-typeof( (StrictExpr ()) Expr )); | ||
(assert-not-typeof( (StrictExpr ()) Nil )); | ||
(assert-not-typeof( (StrictExpr ()) Atom )); | ||
|
||
(assert-typeof( () (List Atom) )); | ||
(assert-typeof( () List<Atom> )); | ||
(assert-typeof( ((() 1) 2) List<Atom> )); | ||
(assert-not-typeof( ((() 1) 2) List<Cons> )); | ||
(assert-not-typeof( ((() 1) 2) List<Nil> )); | ||
|
||
(assert-typeof( () List<[Atom,Nil]> )); | ||
(assert-typeof( ((() (1 ()) ) (2 ()) ) List<[Atom,Nil]> )); | ||
(assert-not-typeof( ((() (1 ()) ) (2 ()) ) List<[Nil,Nil]> )); | ||
(assert-not-typeof( ((() (1 ()) ) (2 ()) ) List<[Atom,Atom]> )); | ||
|
||
(assert-typeof( () List<List<Atom>> )); | ||
(assert-typeof( ( () (() '1) ) List<List<Atom>> )); | ||
(assert-not-typeof( ( () (() '1) ) List<List<Nil>> )); | ||
(assert-not-typeof( ( () (() '1) ) List<Atom> )); | ||
|
||
(assert-typeof( ( (1 2) () ) [Atom,Atom,Nil] )); | ||
(assert-not-typeof( ( (1 2) () ) [Atom,Nil,Nil] )); |