diff options
author | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-08-18 13:39:18 +0200 |
---|---|---|
committer | Lars Wirzenius <lwirzenius@wikimedia.org> | 2019-08-18 13:39:18 +0200 |
commit | faa2704609bc61ffa0b6ca1672fb48579afc6868 (patch) | |
tree | 75ee93ca0e4b32d28a2cab18348ae33aabf98499 | |
download | wikitexttest-faa2704609bc61ffa0b6ca1672fb48579afc6868.tar.gz |
Add: initial README
-rw-r--r-- | README | 48 |
1 files changed, 48 insertions, 0 deletions
@@ -0,0 +1,48 @@ +README for wikitexttest +============================================================================= + +wikitexttest is a RUDIMENTARY test suite for implementations of +"wikitext", the markup language understood by MediaWiki, the wiki +engine used by Wikipedia and other sites. + +This is an unofficial side project. Wikitext does not have an official +specification, but there are several implementations and it is the +hope that this test suite might eventually maybe possibly perhaps be +the first step towards a minimal information specification for it that +all interested applications can agree on. + + + +Architecture +----------------------------------------------------------------------------- + +The architecture of the test suite is as follows: each test consists +of an input file in wikitext, and the expected output as HTML. The +test suite is provided with a wikitext implementation with a Unix +command line program. The test suite feeds each input file to the +program via stdin, and compares the stdout against the expected HTML. +The comparison is done against normalised parse trees, not textually, +to ignore irrlevant differences such amount of white space. + +For example, the input file might be: + +``` +hello '''world''' +``` + +The expected HTML output would be: + +```html +<p>hello <b>world</b></p> +``` + +He wikitext implementation might instead output the following, and it +would still be acceptable: + + +```html +<P>hello + <B>world</B> +</P> +``` + |