diff options
author | Nadrieril | 2020-02-02 18:27:00 +0000 |
---|---|---|
committer | Nadrieril | 2020-02-02 18:36:06 +0000 |
commit | 488bce275f104384282a0867aeaad011ae8cf48c (patch) | |
tree | 8c9d117635ffe60781dfac31b7c612ee172e1b71 /tests_buffer | |
parent | b7b5a0d27eb0cccdcd0c532a7042b3514eacbe40 (diff) |
Add local test files on top of dhall-lang tests
Diffstat (limited to 'tests_buffer')
-rw-r--r-- | tests_buffer | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/tests_buffer b/tests_buffer index 87d73ef..e8eb3d7 100644 --- a/tests_buffer +++ b/tests_buffer @@ -14,7 +14,7 @@ success/ EmptyRecordLiteral {=} ToMap toMap x ToMapAnnot toMap x : T - VariableQuotedSpace ` x ` + VariableQuotedWithSpace ` x ` failure/ AssertNoAnnotation assert @@ -47,19 +47,17 @@ success/ somehow test that ({ x = { z = 1 } } ∧ { x = { y = 2 } }).x has a type somehow test that the recordtype from List/indexed has a type in both empty and nonempty cases somehow test types added to the Foo/build closures - λ(x : ∀(a : Type) → a) → x - let X = 0 in λ(T : Type) → λ(x : T) → 1 - (λ(T : Type) → let foo = 0 in λ(x : T) → x) : ∀(T : Type) → ∀(x : T) → T + λ(todo : ∀(a : Type) → a) → todo + let T = 0 in λ(T : Type) → λ(x : T) → 1 + (λ(T : Type) → let x = 0 in λ(x : T) → x) : ∀(T : Type) → ∀(x : T) → T failure/ \(_: Bool) -> assert : (\(_: Bool) -> _) === (\(x: Bool) -> _) - \(x: let x = 1 in Sort) -> 0 merge { x = λ(x : Bool) → x } (< x: Bool | y: Natural >.x True) merge { x = λ(_ : Bool) → _, y = 1 } < x = True | y > merge { x = True, y = 1 } < x | y >.x merge {x=...,y=...} <x>.x merge {x=...,y=...} <x:T>.x - MergeBoolIsNotUnion merge x True - MergeOptionalIsNotUnion merge x (Some 1) - SortInLet let x = Sort in 1 + MergeBool merge x True + LetInSort \(x: let x = 0 in Sort) -> 1 equivalence: |