Skip to content

Commit

Permalink
more experiments with SpriteHornTests re: data
Browse files Browse the repository at this point in the history
  • Loading branch information
shingarov committed Sep 20, 2024
1 parent 6dec464 commit b555d36
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions src/SpriteLang-Tests/SpriteHornPosTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -749,10 +749,10 @@ SpriteHornPosTest >> testL5cons00 [
{ #category : #'tests-L5' }
SpriteHornPosTest >> testL5cons00data [
self provePos: '
(var $k3 ((`a) ((`L `a)) (`a)))
(var $k3 ((`a) ((L `a)) (`a)))
(var $k1 ((`a) (`a)))
(constant len (func(1 , [(`L @(0)); int])))
(constant len (func(1 , [(L @(0)); int])))
(data L 1 = [
| Nil {}
Expand All @@ -761,13 +761,13 @@ SpriteHornPosTest >> testL5cons00data [
(constraint
(forall ((x `a) (Bool true))
(forall ((t (`L `a)) ((len value: t) === 0))
(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))))
(forall ((v (L `a)) ((len value: v) === (1 + (len value: t))))
((((len value: v) === 1))))))))
'

Expand Down Expand Up @@ -1171,6 +1171,24 @@ SpriteHornPosTest >> testL5tail01 [

]

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

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

0 comments on commit b555d36

Please sign in to comment.