flextag-test
Test suite for flextag tools
Cross Platform
Code for managing the test suite is in JavaScript, but the actual tests are all converted to JSON for easy access from other languages.
For example, syntax.json starts:
Via NPM
With node/npm, you can just
const syntax = console/* => feature: 'intro', input: 'Hello, World!', output: 'Hello, World', comment: 'Statement-ending punctuation is removed. A bit sad for this example.' }*/
Types of tests
Right now we have:
- Syntax tests with tc.input and tc.output, where output is a representation of the syntax tree.