-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
15 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 15 additions & 34 deletions
49
...own/PRMicrodownInputDocumentTest.class.st → ...own/PRMicrodownInputDocumentTest.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,72 +1,53 @@ | ||
Class { | ||
#name : #PRMicrodownInputDocumentTest, | ||
#superclass : #PRInputDocumentTest, | ||
#category : #'Pillar-Microdown' | ||
#category : #'Pillar-ExporterMicrodown' | ||
} | ||
|
||
{ #category : #tests } | ||
PRMicrodownInputDocumentTest >> testParsedDocument [ | ||
|
||
| doc | | ||
doc := ((PRInputDocument inputClassForFile: memoryFileSystem / 'input1.md') new | ||
file: memoryFileSystem / 'input1.md') parsedDocument. | ||
self | ||
assert: doc class | ||
equals: MicRootBlock | ||
|
||
| doc | | ||
doc := ((PRInputDocument inputClassForFile: memoryFileSystem / 'input1.md') new file: memoryFileSystem / 'input1.md') parsedDocument. | ||
self assert: doc class equals: MicRootBlock | ||
] | ||
|
||
{ #category : #tests } | ||
PRMicrodownInputDocumentTest >> testParsedDocument2 [ | ||
|
||
| doc | | ||
doc := (PRInputDocument forFile: memoryFileSystem / 'input1.md') parsedDocument. | ||
self | ||
assert: doc class | ||
equals: MicRootBlock | ||
|
||
self assert: doc class equals: MicRootBlock | ||
] | ||
|
||
{ #category : #tests } | ||
PRMicrodownInputDocumentTest >> testParserClass [ | ||
|
||
| input | | ||
input := (PRInputDocument inputClassForFile: memoryFileSystem / 'input1.md') new. | ||
self | ||
assert: input parserClass | ||
equals: MicrodownParser | ||
|
||
self assert: input parserClass equals: MicrodownParser | ||
] | ||
|
||
{ #category : #tests } | ||
PRMicrodownInputDocumentTest >> testParserClass2 [ | ||
|
||
| input | | ||
input := PRInputDocument forFile: memoryFileSystem / 'input1.md'. | ||
self | ||
assert: input parserClass | ||
equals: MicrodownParser | ||
|
||
self assert: input parserClass equals: MicrodownParser | ||
] | ||
|
||
{ #category : #tests } | ||
PRMicrodownInputDocumentTest >> testRegistration [ | ||
|
||
| inputClass | | ||
inputClass := (PRInputDocument inputClassForFile: memoryFileSystem / 'input1.md'). | ||
self | ||
assert: inputClass | ||
equals: MicMicrodownInputDocument | ||
|
||
| inputClass | | ||
inputClass := PRInputDocument inputClassForFile: memoryFileSystem / 'input1.md'. | ||
self assert: inputClass equals: MicMicrodownInputDocument | ||
] | ||
|
||
{ #category : #tests } | ||
PRMicrodownInputDocumentTest >> testRegistration2 [ | ||
|
||
| inputClass | | ||
inputClass := (PRInputDocument forFile: memoryFileSystem / 'input1.md') class. | ||
self | ||
assert: inputClass | ||
equals: MicMicrodownInputDocument | ||
|
||
self assert: inputClass equals: MicMicrodownInputDocument | ||
] |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.