Saturday, August 9, 2008

Huge step forward

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
  1. A TEXT chunk, 'preceding text'
  2. A TAG
  3. A second TEXT chunk, 'content content content'
  4. A terminal TAG markup (']')
  5. A terminal TRIGGER markup (']]')
  6. And a third TEXT chunk, 'New para'
This is awesome.

No comments: