Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #413 This updates the normalization tests so that the `*B.dhall` files match the output of the Haskell implementation. In some cases this just changes the format of the file, but in other cases this detects a case where the `*B.dhall` file was not in normal form.
- Loading branch information
1 parent
b583925
commit 12a65f1
Showing
18 changed files
with
225 additions
and
177 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
"\${\n''\n\$\n\"\n\\\n" | ||
'' | ||
''${ | ||
''' | ||
$ | ||
" | ||
\ | ||
'' |
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 +1,4 @@ | ||
"foo\nbar\n" | ||
'' | ||
foo | ||
bar | ||
'' |
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 +1,4 @@ | ||
" foo\n bar\n" | ||
'' | ||
foo | ||
bar | ||
'' |
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 +1,4 @@ | ||
"${Natural/show 1} foo\n bar\n" | ||
'' | ||
1 foo | ||
bar | ||
'' |
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 +1,4 @@ | ||
"-- Hello\n{- world -}\n" | ||
'' | ||
-- Hello | ||
{- world -} | ||
'' |
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 +1,3 @@ | ||
"foo\nbar" | ||
'' | ||
foo | ||
bar'' |
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 +1,4 @@ | ||
λ(natural : Type) → λ(succ : natural → natural) → λ(zero : natural) → succ (succ (succ zero)) | ||
λ(natural : Type) | ||
→ λ(succ : natural → natural) | ||
→ λ(zero : natural) | ||
→ succ (succ (succ zero)) |
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 +1 @@ | ||
[ 1 ] : List Natural | ||
[ 1 ] |
Large diffs are not rendered by default.
Oops, something went wrong.
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,6 +1,11 @@ | ||
{ example0 = "-0.42" | ||
, example1 = "13.37" | ||
, example2 = "NaN" | ||
, example3 = "Infinity" | ||
, example4 = "-Infinity" | ||
{ example0 = | ||
"-0.42" | ||
, example1 = | ||
"13.37" | ||
, example2 = | ||
"NaN" | ||
, example3 = | ||
"Infinity" | ||
, example4 = | ||
"-Infinity" | ||
} |
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,7 +1,7 @@ | ||
{ example0 = | ||
[ True, False ] : List Bool | ||
[ True, False ] | ||
, example1 = | ||
[ True, False ] : List Bool | ||
[ True, False ] | ||
, example2 = | ||
λ(id : ∀(a : Type) → a → a) → id (List Bool) [ True, False ] | ||
} |
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 @@ | ||
{ example0 = | ||
[ 1 ] : Optional Natural | ||
Some 1 | ||
, example1 = | ||
[ +1 ] : Optional Integer | ||
Some +1 | ||
, example2 = | ||
λ(id : ∀(a : Type) → a → a) → id (Optional Bool) ([ True ] : Optional Bool) | ||
λ(id : ∀(a : Type) → a → a) → id (Optional Bool) (Some True) | ||
, example3 = | ||
λ(a : Type) → λ(x : a) → [ x ] : Optional a | ||
λ(a : Type) → λ(x : a) → Some x | ||
} |
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 +1 @@ | ||
[ "foo" ] : Optional Text | ||
Some "foo" |
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,6 +1,11 @@ | ||
{ example0 = λ(x : Bool) → x | ||
, example1 = λ(x : Bool) → x | ||
, example2 = λ(x : Bool) → False | ||
, example3 = λ(x : Bool) → False | ||
, example4 = λ(x : Bool) → x | ||
{ example0 = | ||
λ(x : Bool) → x | ||
, example1 = | ||
λ(x : Bool) → x | ||
, example2 = | ||
λ(x : Bool) → False | ||
, example3 = | ||
λ(x : Bool) → False | ||
, example4 = | ||
λ(x : Bool) → x | ||
} |
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,7 @@ | ||
{ example0 = λ(x : Bool) → x | ||
, example1 = λ(x : Bool) → x | ||
, example2 = λ(x : Bool) → True | ||
{ example0 = | ||
λ(x : Bool) → x | ||
, example1 = | ||
λ(x : Bool) → x | ||
, example2 = | ||
λ(x : Bool) → 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,3 +1 @@ | ||
{ example0 = λ(x : Bool) → x | ||
, example1 = λ(x : Bool) → λ(y : Text) → y | ||
} | ||
{ example0 = λ(x : Bool) → x, example1 = λ(x : Bool) → λ(y : Text) → y } |
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,7 @@ | ||
{ example0 = λ(x : Bool) → x | ||
, example1 = λ(x : Bool) → x | ||
, example2 = λ(x : Bool) → False | ||
{ example0 = | ||
λ(x : Bool) → x | ||
, example1 = | ||
λ(x : Bool) → x | ||
, example2 = | ||
λ(x : Bool) → False | ||
} |
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,6 +1,11 @@ | ||
{ example0 = λ(x : Bool) → True | ||
, example1 = λ(x : Bool) → True | ||
, example2 = λ(x : Bool) → x | ||
, example3 = λ(x : Bool) → x | ||
, example4 = λ(x : Bool) → x | ||
{ example0 = | ||
λ(x : Bool) → True | ||
, example1 = | ||
λ(x : Bool) → True | ||
, example2 = | ||
λ(x : Bool) → x | ||
, example3 = | ||
λ(x : Bool) → x | ||
, example4 = | ||
λ(x : Bool) → x | ||
} |