Skip to content

Commit

Permalink
Refactored testSelectRandomlyFrom
Browse files Browse the repository at this point in the history
  • Loading branch information
pierbo committed Aug 23, 2023
1 parent 66d5921 commit c20f927
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions repository/Cormas-Tests/CormasTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,13 @@ CormasTest >> testSeed [

{ #category : #tests }
CormasTest >> testSelectRandomlyFrom [
| aCollection |
aCollection := #(1 2 3 4 5).
self assert: (aCollection includes: (Cormas selectRandomlyFrom: aCollection))

| collection selectedElement |
collection := #(a b c d e).

selectedElement := Cormas selectRandomlyFrom: collection.

self assert: (collection includes: selectedElement)
]

{ #category : #tests }
Expand Down

0 comments on commit c20f927

Please sign in to comment.