Skip to content

Commit

Permalink
Fix tests due to Id Bloc evolution
Browse files Browse the repository at this point in the history
  • Loading branch information
LabordePierre committed Aug 29, 2023
1 parent 2fb0dc0 commit 45fb6bd
Showing 1 changed file with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ BlocSerializationIdentificationTests >> testNamedId [

self
test: origin
on: [ :element | self assert: element id identifier equals: #test ]
on: [ :element | self assert: element id equals: #test ]
]

{ #category : #tests }
Expand All @@ -33,9 +33,11 @@ BlocSerializationIdentificationTests >> testNamedIndexedId [
id: ((BlElementId named: #test) indexed: 1);
yourself.

self
test: origin
on: [ :element | self assert: element id prefixId identifier equals: #test. self assert: element id index equals: 1. self assert: element id equals: ((BlElementId named: #test) indexed: 1).]
self test: origin on: [ :element |
self assert: element id equals: #'test-1'.
self assert: element elementId index equals: 1.
self assert: element elementId equals: ((BlElementId named: #test) indexed: 1).
]
]

{ #category : #tests }
Expand All @@ -45,9 +47,9 @@ BlocSerializationIdentificationTests >> testNoId1 [
origin := BlElement new.

self test: origin on: [ :element |
self
assert: element id
equals: BlElementNoId uniqueInstance ]
self assert: element elementId equals: BlElementNoId uniqueInstance.
self assert: element id isNil.
]
]

{ #category : #tests }
Expand All @@ -57,5 +59,7 @@ BlocSerializationIdentificationTests >> testNoId2 [
origin := BlElement new id: BlElementId noId.

self test: origin on: [ :element |
self assert: element id equals: BlElementNoId uniqueInstance ]
self assert: element elementId equals: BlElementNoId uniqueInstance.
self assert: element id isNil.
]
]

0 comments on commit 45fb6bd

Please sign in to comment.