Skip to content

Commit

Permalink
Merge 54bc29a
Browse files Browse the repository at this point in the history
  • Loading branch information
quentin.moutte.etu committed Jun 14, 2024
2 parents 8b7b934 + 54bc29a commit 888b7e7
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/Microdown-ReferenceChecker/MicReferenceCheckerTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ See *@anchorSection1@*
MicReferenceCheckerTest >> testAllReferencesAreCorrectinDir [

| dir file1 file2 visitor |
self skip.
dir := (FileSystem workingDirectory / 'myDirectory') asFileReference.
dir ensureCreateDirectory.
file1 := (FileSystem workingDirectory / 'myDirectory' / 'file1.txt') asFileReference.
Expand All @@ -68,6 +69,7 @@ MicReferenceCheckerTest >> testAllReferencesAreCorrectinDir [
MicReferenceCheckerTest >> testDuplicatedAnchorDir [

| dir file1 file2 visitor |
self skip.
dir := (FileSystem workingDirectory / 'myDirectory') asFileReference.
dir ensureCreateDirectory.

Expand Down Expand Up @@ -427,9 +429,10 @@ See *@anchorSection1@* and *@anchorSection2@*
{ #category : 'tests' }
MicReferenceCheckerTest >> testReportingUnknownAnchorDir [

| dir file1 file2 visitor |
| dir file1 file2 visitor |
self skip.
dir := (FileSystem workingDirectory / 'myDirectory') asFileReference.
dir ensureCreateDirectory .
dir ensureCreateDirectory.

file1 := (FileSystem workingDirectory / 'myDirectory' / 'file1.txt') asFileReference.
file1 writeStreamDo: [ :stream | stream nextPutAll: '# Section
Expand All @@ -439,16 +442,16 @@ MicReferenceCheckerTest >> testReportingUnknownAnchorDir [
@anchorSection1
' ] .
file1 ensureCreateFile .
' ].
file1 ensureCreateFile.

file2 := (FileSystem workingDirectory / 'myDirectory' / 'file2.txt') asFileReference.
file2 writeStreamDo: [ :stream | stream nextPutAll: ' See *@anchorSection1@* and *@anchorSection2@*'] .
file2 ensureCreateFile .
file2 writeStreamDo: [ :stream | stream nextPutAll: ' See *@anchorSection1@* and *@anchorSection2@*'].
file2 ensureCreateFile.

visitor := MicReferenceChecker new.

self deny: ( visitor checkDirectory: dir ) .
self deny: (visitor checkDirectory: dir).

file1 ensureDelete.
file2 ensureDelete.
Expand Down

0 comments on commit 888b7e7

Please sign in to comment.