Carrot now has a small set of handler integration tests, and they all pass. This neccessitated the creation of a "minigrammarian", which, while having no document intelligence as the real Grammarian will, validates the concept of the Grammarian -- and the tests validate the "flock of handlers" concept.
The test was to parse the string
"preceeding text [tag content content content]]]\nNew para"
which was properly rendered into
- A TEXT chunk, 'preceding text'
- A TAG
- A second TEXT chunk, 'content content content'
- A terminal TAG markup (']')
- A terminal TRIGGER markup (']]')
- And a third TEXT chunk, 'New para'
This is awesome.
No comments:
Post a Comment