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 8452c87 commit b5137fa
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 b5137fa

Please sign in to comment.