2021-08-16 01:58:22 +00:00
|
|
|
Class {
|
|
|
|
#name : #WikiTextGrammarTest,
|
|
|
|
#superclass : #PP2CompositeNodeTest,
|
|
|
|
#category : #'TiddlyWiki-Model'
|
|
|
|
}
|
|
|
|
|
|
|
|
{ #category : #accessing }
|
|
|
|
WikiTextGrammarTest >> parserClass [
|
|
|
|
^ WikiTextGrammar
|
|
|
|
]
|
|
|
|
|
2021-08-16 14:46:14 +00:00
|
|
|
{ #category : #accessing }
|
|
|
|
WikiTextGrammarTest >> testDocument [
|
|
|
|
| input |
|
|
|
|
input := WikiText new sample.
|
|
|
|
self parse: input rule: #document.
|
|
|
|
self assert: result size equals: 2
|
|
|
|
]
|
|
|
|
|
2021-08-16 01:58:22 +00:00
|
|
|
{ #category : #accessing }
|
|
|
|
WikiTextGrammarTest >> testLink [
|
|
|
|
self
|
|
|
|
parse: '[[Just testing]]'
|
|
|
|
rule: #link
|
|
|
|
]
|