Skip to content

Commit

Permalink
fix MicResult test
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin.moutte.etu committed Aug 27, 2024
1 parent 15fdb75 commit a8f6552
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/Microdown-BookTester-Tests/MicResultTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -40,32 +40,38 @@ MicResultTest >> testExplanationUndefinedAnchor [
{ #category : 'tests' }
MicResultTest >> testSTONFormatExplanationDuplicatedAnchor [

| res |
| res association |
res := MicDuplicatedAnchorResult new.
res anchorLabel: 'ancS0'.
"pay attention since in this package fromFile is pass a fullName and not a file we will have to change
this later"
res source: '/myDir/chapter1.md'.

association := res stonFormatExplanation.

self
assert: res stonFormatExplanation
equals: '"ancS0" : "/myDir/chapter1.md"'
assert: (association isKindOf: Association );
assert: association key equals: 'ancS0';
assert: association value equals: '/myDir/chapter1.md'

]

{ #category : 'tests' }
MicResultTest >> testSTONFormatExplanationUndefinedAnchor [

| res |
| res association |
res := MicUndefinedAnchorResult new.
res anchorLabel: 'ancS0'.
"pay attention since in this package fromFile is pass a fullName and not a file we will have to change
this later"
res source: '/myDir/chapter1.md'.

association := res stonFormatExplanation.

self
assert: res stonFormatExplanation
equals: '"ancS0" : "/myDir/chapter1.md"'
assert: (association isKindOf: Association );
assert: association key equals: 'ancS0';
assert: association value equals: '/myDir/chapter1.md'

]

Expand Down

0 comments on commit a8f6552

Please sign in to comment.