Skip to content

Commit

Permalink
Add testL5cons00data
Browse files Browse the repository at this point in the history
  • Loading branch information
shingarov committed Nov 4, 2024
1 parent 1186194 commit 89da5dd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/SpriteLang-Tests/SpriteHornPosTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,32 @@ SpriteHornPosTest >> testL5cons00 [

]

{ #category : #'tests-L5' }
SpriteHornPosTest >> testL5cons00data [
self provePos: '
(var $k3 ((`a) ((L `a)) (`a)))
(var $k1 ((`a) (`a)))
(constant len (func(1 , [(L @(0)); int])))
(data L 1 = [
| Nil {}
| Cons {Cons0 : @(0), Cons1 : (L @(0))}
])
(constraint
(forall ((x `a) (Bool true))
(forall ((t (L `a)) ((len value: t) === 0))
(and
(forall ((VV `a) (VV === x))
(($k3 VV t x)))
(forall ((VV0 `a) ($k1 VV0 x))
(($k3 VV0 a x)))
(forall ((v (L `a)) ((len value: v) === (1 + (len value: t))))
((((len value: v) === 1))))))))
'
]

{ #category : #'tests-L5' }
SpriteHornPosTest >> testL5foldRight00 [
self provePos: '
Expand Down

0 comments on commit 89da5dd

Please sign in to comment.