Skip to content

Commit

Permalink
Add TestAsserter>>#assert:identicalTo: and #deny:identicalTo:
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Aug 8, 2023
1 parent 3af0e9d commit c82aa2a
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions source/Buoy-SUnit-GS64-Extensions/TestAsserter.extension.st
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Extension { #name : #TestAsserter }

{ #category : #'*Buoy-SUnit-GS64-Extensions' }
TestAsserter >> assert: actual identicalTo: expected [

self assert: expected == actual
]

{ #category : #'*Buoy-SUnit-GS64-Extensions' }
TestAsserter >> assertCollection: actual hasSameElements: expected [
"Assert that a collection contains the same elements as the given collection. Order is not checked, only the presence/absence of elements. Occurences of elements mater."
Expand Down Expand Up @@ -27,6 +33,12 @@ TestAsserter >> assertCollection: actual hasSameElements: expected [
lf ])
]

{ #category : #'*Buoy-SUnit-GS64-Extensions' }
TestAsserter >> deny: actual identicalTo: expected [

self deny: expected == actual
]

{ #category : #'*Buoy-SUnit-GS64-Extensions' }
TestAsserter >> fail [
"I make my receiver fail with TestFailure"
Expand Down

0 comments on commit c82aa2a

Please sign in to comment.