diff options
author | Nadrieril | 2020-11-05 00:18:38 +0000 |
---|---|---|
committer | Nadrieril | 2020-11-05 19:42:00 +0000 |
commit | 8325de2db085bb0b3599bc453b658a1dacfe79ae (patch) | |
tree | 2407202f896068430356e0a1ce0d1dbb7590a6c8 /dhall/tests/normalization | |
parent | 442fd7517362ca4f8057699bc325af417fb7c6de (diff) |
tests: add some tests
Diffstat (limited to 'dhall/tests/normalization')
8 files changed, 10 insertions, 0 deletions
diff --git a/dhall/tests/normalization/success/regression/ComplexRecordSimplificationA.dhall b/dhall/tests/normalization/success/regression/ComplexRecordSimplificationA.dhall new file mode 100644 index 0000000..c41a3a7 --- /dev/null +++ b/dhall/tests/normalization/success/regression/ComplexRecordSimplificationA.dhall @@ -0,0 +1 @@ +\(foo: { x: Bool, y: Bool }) -> \(bar: { x: Bool }) -> (foo.{x, y} // bar).{ x } diff --git a/dhall/tests/normalization/success/regression/ComplexRecordSimplificationB.dhall b/dhall/tests/normalization/success/regression/ComplexRecordSimplificationB.dhall new file mode 100644 index 0000000..d7026a4 --- /dev/null +++ b/dhall/tests/normalization/success/regression/ComplexRecordSimplificationB.dhall @@ -0,0 +1,3 @@ +λ(foo : { x : Bool, y : Bool }) → +λ(bar : { x : Bool }) → + (foo.{ x, y } ⫽ bar).{ x } diff --git a/dhall/tests/normalization/success/unit/RecordSortFieldsA.dhall b/dhall/tests/normalization/success/unit/RecordSortFieldsA.dhall new file mode 100644 index 0000000..8b7b5e4 --- /dev/null +++ b/dhall/tests/normalization/success/unit/RecordSortFieldsA.dhall @@ -0,0 +1 @@ +{ b = 1, a = 0 } diff --git a/dhall/tests/normalization/success/unit/RecordSortFieldsB.dhall b/dhall/tests/normalization/success/unit/RecordSortFieldsB.dhall new file mode 100644 index 0000000..23aa2b4 --- /dev/null +++ b/dhall/tests/normalization/success/unit/RecordSortFieldsB.dhall @@ -0,0 +1 @@ +{ a = 0, b = 1 } diff --git a/dhall/tests/normalization/success/unit/RecordTypeSortFieldsA.dhall b/dhall/tests/normalization/success/unit/RecordTypeSortFieldsA.dhall new file mode 100644 index 0000000..6b4be0e --- /dev/null +++ b/dhall/tests/normalization/success/unit/RecordTypeSortFieldsA.dhall @@ -0,0 +1 @@ +{ b : Bool, a : Natural } diff --git a/dhall/tests/normalization/success/unit/RecordTypeSortFieldsB.dhall b/dhall/tests/normalization/success/unit/RecordTypeSortFieldsB.dhall new file mode 100644 index 0000000..d52374f --- /dev/null +++ b/dhall/tests/normalization/success/unit/RecordTypeSortFieldsB.dhall @@ -0,0 +1 @@ +{ a : Natural, b : Bool } diff --git a/dhall/tests/normalization/success/unit/TextReplaceOverlappingA.dhall b/dhall/tests/normalization/success/unit/TextReplaceOverlappingA.dhall new file mode 100644 index 0000000..31ca0d9 --- /dev/null +++ b/dhall/tests/normalization/success/unit/TextReplaceOverlappingA.dhall @@ -0,0 +1 @@ +Text/replace "aa" "b" "aaaaa" diff --git a/dhall/tests/normalization/success/unit/TextReplaceOverlappingB.dhall b/dhall/tests/normalization/success/unit/TextReplaceOverlappingB.dhall new file mode 100644 index 0000000..ab8b076 --- /dev/null +++ b/dhall/tests/normalization/success/unit/TextReplaceOverlappingB.dhall @@ -0,0 +1 @@ +"bba" |