Skip to content

Commit

Permalink
Datatype tests: add FQPosTest>>testEqConstr1
Browse files Browse the repository at this point in the history
  • Loading branch information
shingarov committed Nov 17, 2024
1 parent 31c6ce6 commit f23a204
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/Refinements-Tests/FQPosTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,24 @@ constraint:
tag [1]
'
]

{ #category : #tests }
FQPosTest >> testEqConstr1 [
self provePos: '
data Thing 0 = [
| Cons {Head : int}
]
bind 0 a : {v: Thing | Bool true }
bind 1 x : {v: Thing | Bool true }
bind 2 y : {v: `a | Bool true }
constraint:
env [0; 1; 2]
lhs {v:int | x === y }
rhs {v:int | y === x }
id 1 tag []
'.


]

0 comments on commit f23a204

Please sign in to comment.