-
Notifications
You must be signed in to change notification settings - Fork 31
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
9 changed files
with
109 additions
and
27 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
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
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
Class { | ||
#name : 'MicAnnotatedParagraphTest', | ||
#superclass : 'MicBlockTest', | ||
#category : 'Microdown-Tests-Parser', | ||
#package : 'Microdown-Tests', | ||
#tag : 'Parser' | ||
} | ||
|
||
{ #category : 'tests' } | ||
MicAnnotatedParagraphTest >> testBasicAnnotetedParagraphIgnoreExtraTextInFirstLine [ | ||
|
||
| root annotatedParagraph | | ||
root := parser parse: '>[! important ] This is an important information | ||
> This is an other information'. | ||
self assert: root children size equals: 1. | ||
annotatedParagraph := root children first. | ||
self | ||
assert: (annotatedParagraph isKindOf: MicAnnotatedParagraph); | ||
assert: annotatedParagraph label equals: 'important'; | ||
assert: annotatedParagraph text | ||
equals: 'This is an other information' | ||
] | ||
|
||
{ #category : 'tests' } | ||
MicAnnotatedParagraphTest >> testBasicAnnotetedParagraphWhitoutClosingBracket [ | ||
|
||
| root annotatedParagraph | | ||
root := parser parse: '>[! important | ||
> This is an important information'. | ||
self assert: root children size equals: 1. | ||
annotatedParagraph := root children first. | ||
self | ||
assert: (annotatedParagraph isKindOf: MicBlockQuoteBlock) | ||
] |
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
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
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
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
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
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