diff options
author | Nadrieril Feneanar | 2020-03-05 16:20:07 +0000 |
---|---|---|
committer | GitHub | 2020-03-05 16:20:07 +0000 |
commit | 3f9194f47185fe30c9e410aa7c5e651df9694b3f (patch) | |
tree | 6d24b2e824822134da4976b65b413dc09ca4e567 /tests_buffer | |
parent | 2ca97e97f1718141d826a78ab3da8197b2d55c69 (diff) | |
parent | 8e6b020ba1426c215382a81395b809b688fa7726 (diff) |
Merge pull request #139 from Nadrieril/missing-features
Implement a bunch of missing features
Diffstat (limited to 'tests_buffer')
-rw-r--r-- | tests_buffer | 31 |
1 files changed, 2 insertions, 29 deletions
diff --git a/tests_buffer b/tests_buffer index db63cde..478edbb 100644 --- a/tests_buffer +++ b/tests_buffer @@ -5,18 +5,6 @@ text interpolation and escapes projection by expression unit tests fix fakeurlencode test s/QuotedVariable/VariableQuoted/ -success/ - operators/ - PrecedenceAll1 a ? b || c + d ++ e # f && g ∧ h ⫽ i ⩓ j * k == l != m n.o - PrecedenceAll2 a b != c == d * e ⩓ f ⫽ g ∧ h && i # j ++ k + l || m ? n - LetNoAnnot let x = y in e - LetAnnot let x: T = y in e - EmptyRecordLiteral {=} - ToMap toMap x - ToMapAnnot toMap x : T - VariableQuotedWithSpace ` x ` -failure/ - AssertNoAnnotation assert binary decoding: decode old-style optional literals ? @@ -27,40 +15,25 @@ success/ recover recursive import error failure/ don't recover cycle + don't resolve symlinks in canonicalizing normalization: variables across import boundaries - Text/show "" - TextLitNested1 "${""}${x}" - TextLitNested2 "${"${x}"}" - TextLitNested3 "${"${""}"}${x}" - regression/ - NaturalFoldExtraArg Natural/fold 0 (Bool -> Bool) (λ(_ : (Bool -> Bool)) → λ(_ : Bool) → True) (λ(_ : Bool) → False) True - let T = Natural let ap = λ(f : T → List T) -> λ(x : T) -> f x in ap (λ(x : T) -> ap (λ(y : T) -> [x, y]) 1) 0 -typecheck: +type-inference: something that involves destructuring a recordtype after merge add some of the more complicated Prelude tests back, like List/enumerate success/ regression/ - RecursiveRecordTypeMergeTripleCollision { x : { a : Bool } } ⩓ { x : { b : Bool } } ⩓ { x : { c : Bool } } 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 - λ(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) -> _) - unit/FunctionTypeOutputTypeNotAType Bool -> 1 - unit/NestedAnnotInnerWrong (0 : Bool) : Natural - unit/NestedAnnotOuterWrong (0 : Natural) : Bool 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 - MergeBool merge x True - LetInSort \(x: let x = 0 in Sort) -> 1 equivalence: |