-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Changed tests and test loaders. - Edited some example solutions. - Edited some track docs.
- Loading branch information
1 parent
a74cc45
commit 4e7849f
Showing
174 changed files
with
2,776 additions
and
2,662 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
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,14 +1,14 @@ | ||
[ | ||
{ | ||
"name": "lasagna.test.ex1", | ||
"test_code": "lasagna.test.ex1 = test.expect (expectedMinutesInOven === 40)" | ||
"test_code": "let\n Test.expect (expectedMinutesInOven === 40)" | ||
}, | ||
{ | ||
"name": "lasagna.test.ex2", | ||
"test_code": "lasagna.test.ex2 = test.expect (preparationTimeInMinutes 5 === 10)" | ||
"test_code": "let\n Test.expect (preparationTimeInMinutes 5 === 10)" | ||
}, | ||
{ | ||
"name": "lasagna.test.ex3", | ||
"test_code": "lasagna.test.ex3 = test.expect (elapsedTimeInMinutes 3 20 === 26)" | ||
"test_code": "let\n Test.expect (elapsedTimeInMinutes 3 20 === 26)" | ||
} | ||
] | ||
] |
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,9 +1,9 @@ | ||
# Testing transcript | ||
|
||
```ucm | ||
.> load ./lasagna.u | ||
.> add | ||
.> load ./lasagna.test.u | ||
.> add | ||
.> move.term lasagna.tests tests | ||
scratch/main> load ./lasagna.u | ||
scratch/main> add | ||
scratch/main> load ./lasagna.test.u | ||
scratch/main> add | ||
scratch/main> move.term lasagna.tests tests | ||
``` |
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,50 +1,50 @@ | ||
[ | ||
{ | ||
"name": "pacmanRules.test.ex1", | ||
"test_code": "pacmanRules.test.ex1 = let\n\tTest.label \"eatGhost, ghost gets eaten\" <| expect (eatGhost true true)" | ||
"name": "eatGhost, ghost gets eaten", | ||
"test_code": "let\n Test.label.deprecated \"eatGhost, ghost gets eaten\" <| expect (eatGhost true true)" | ||
}, | ||
{ | ||
"name": "pacmanRules.test.ex2", | ||
"test_code": "pacmanRules.test.ex2 = let\n\tTest.label \"eatGhost, ghost does not get eaten because no power pellet active\" <| expect (eatGhost false true === false)" | ||
"name": "eatGhost, ghost does not get eaten because no power pellet active", | ||
"test_code": "let\n Test.label.deprecated \"eatGhost, ghost does not get eaten because no power pellet active\" <| expect (eatGhost false true === false)" | ||
}, | ||
{ | ||
"name": "pacmanRules.test.ex3", | ||
"test_code": "pacmanRules.test.ex3 = let\n\tTest.label \"eatGhost, ghost does not get eaten because not touching ghost\" <| expect (eatGhost true false === false)" | ||
"name": "eatGhost, ghost does not get eaten because not touching ghost", | ||
"test_code": "let\n Test.label.deprecated \"eatGhost, ghost does not get eaten because not touching ghost\" <| expect (eatGhost true false === false)" | ||
}, | ||
{ | ||
"name": "pacmanRules.test.ex4", | ||
"test_code": "pacmanRules.test.ex4 = let\n\tTest.label \"score, score when eating dot\" <| expect (score false true)" | ||
"name": "score, score when eating dot", | ||
"test_code": "let\n Test.label.deprecated \"score, score when eating dot\" <| expect (score false true)" | ||
}, | ||
{ | ||
"name": "pacmanRules.test.ex5", | ||
"test_code": "pacmanRules.test.ex5 = let\n\tTest.label \"score, score when eating power pellet\" <| expect (score true false)" | ||
"name": "score, score when eating power pellet", | ||
"test_code": "let\n Test.label.deprecated \"score, score when eating power pellet\" <| expect (score true false)" | ||
}, | ||
{ | ||
"name": "pacmanRules.test.ex6", | ||
"test_code": "pacmanRules.test.ex6 = let\n\tTest.label \"score, no score when nothing eaten\" <| expect (score false false === false )" | ||
"name": "score, no score when nothing eaten", | ||
"test_code": "let\n Test.label.deprecated \"score, no score when nothing eaten\" <| expect (score false false === false )" | ||
}, | ||
{ | ||
"name": "pacmanRules.test.ex7", | ||
"test_code": "pacmanRules.test.ex7 = let\n\tTest.label \"lose if touching a ghost without a power pellet active\" <| expect (lose false true)" | ||
"name": "lose if touching a ghost without a power pellet active", | ||
"test_code": "let\n Test.label.deprecated \"lose if touching a ghost without a power pellet active\" <| expect (lose false true)" | ||
}, | ||
{ | ||
"name": "pacmanRules.test.ex8", | ||
"test_code": "pacmanRules.test.ex8 = let\n\tTest.label \"don't lose if touching a ghost with a power pellet active\" <| expect (lose true true === false)" | ||
"name": "don't lose if touching a ghost with a power pellet active", | ||
"test_code": "let\n Test.label.deprecated \"don't lose if touching a ghost with a power pellet active\" <| expect (lose true true === false)" | ||
}, | ||
{ | ||
"name": "pacmanRules.test.ex9", | ||
"test_code": "pacmanRules.test.ex9 = let\n\tTest.label \"don't lose if not touching a ghost\" <| expect (lose true false === false)" | ||
"name": "don't lose if not touching a ghost", | ||
"test_code": "let\n Test.label.deprecated \"don't lose if not touching a ghost\" <| expect (lose true false === false)" | ||
}, | ||
{ | ||
"name": "pacmanRules.test.ex10", | ||
"test_code": "pacmanRules.test.ex10 = let\n\tTest.label \"win if all dots eaten\" <| expect (win true false false)" | ||
"name": "win if all dots eaten", | ||
"test_code": "let\n Test.label.deprecated \"win if all dots eaten\" <| expect (win true false false)" | ||
}, | ||
{ | ||
"name": "pacmanRules.test.ex11", | ||
"test_code": "pacmanRules.test.ex11 = let\n\tTest.label \"don't win if all dots eaten, but touching a ghost\" <| expect (win true false true === false)" | ||
"name": "don't win if all dots eaten, but touching a ghost", | ||
"test_code": "let\n Test.label.deprecated \"don't win if all dots eaten, but touching a ghost\" <| expect (win true false true === false)" | ||
}, | ||
{ | ||
"name": "pacmanRules.test.ex12", | ||
"test_code": "pacmanRules.test.ex12 = let\n\tTest.label \"win if all dots eaten and touching a ghost with a power pellet active\" ,| expect (win true true true)" | ||
"name": "win if all dots eaten and touching a ghost with a power pellet active", | ||
"test_code": "let\n Test.label.deprecated \"win if all dots eaten and touching a ghost with a power pellet active\" <| expect (win true true true)" | ||
} | ||
] | ||
] |
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,9 +1,9 @@ | ||
# Testing transcript | ||
|
||
```ucm | ||
.> load ./pacmanRules.u | ||
.> add | ||
.> load ./pacmanRules.test.u | ||
.> add | ||
.> move.term pacmanRules.tests tests | ||
scratch/main> load ./pacmanRules.u | ||
scratch/main> add | ||
scratch/main> load ./pacmanRules.test.u | ||
scratch/main> add | ||
scratch/main> move.term pacmanRules.tests tests | ||
``` |
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
Oops, something went wrong.