pillar icon indicating copy to clipboard operation
pillar copied to clipboard

testAnnotationAsPillar {!

Open Ducasse opened this issue 3 years ago • 0 comments

The testAnnotationAsPillar hardcodes the syntax for annotation and it would be better to use the builder.

testAnnotationAsPillar
	| res |
	res := self splitter pillarFrom: 'abc{!cite|a=2&b=5!}def'.
	self assert: res second class equals: PRCitationAnnotation.
	self assert: (res second parameters at: 'a') equals: '2'.
	self assert: (res second parameters at: 'b') equals: '5'.

May be this is not worth to fix it because the package Pillar-Microdown should be removed since now we do not convert MD trees to PR trees.

Ducasse avatar Apr 12 '22 14:04 Ducasse