Skip to content

Commit

Permalink
Add a test for "is element of aShallowRefinement"
Browse files Browse the repository at this point in the history
  • Loading branch information
shingarov committed Oct 23, 2023
1 parent 24fec75 commit 9617c0d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Refinements-Tests/ShallowRefinementTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ ShallowRefinementTest >> testInvertFactorial [
equals: 5
]

{ #category : #'tests - factorial' }
ShallowRefinementTest >> testNincludes1 [
||
:= Int sort | [ :k | k >= 0 ].
self assert: 1 ∈ ℕ.
self deny: -1 ∈ ℕ.
]

{ #category : #'tests - sets' }
ShallowRefinementTest >> testSubset [
| gt1 gt0 |
Expand Down

0 comments on commit 9617c0d

Please sign in to comment.