1
0
forked from GitHub/gf-rgl
Commit Graph

7 Commits

Author SHA1 Message Date
odanoburu
9ca6dc8cb2 * unittest.py: more forgiving parser
- accepts whitespace before comment starts
- accepts blank lines after last test case, or more than one of them
  between test cases
2020-06-03 22:19:19 -03:00
Peter Ljunglöf
091e53619d Updated script: better handling of arguments, simplified code, better reporting, etc.
Note that the flag `-only-cc` has been renamed to `--no-pmcfg`
2019-08-22 11:35:51 +02:00
Inari Listenmaa
4c02a6c6d1 (unittest) Add option to only use cc, never parse
Usage like before, but add -only-cc as one of the arguments. For example:

`python3 unittest/unittest.py src/somali/unittest/vp.gftest -only-cc`

In order for it to work, the test file has to only contain test cases like this:

```
LangSom: isku BIND ma barto
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PNeg (PredVP (UsePron youSg_Pron) (ReflVP (SlashV2a teach_V2))))) NoVoc
```

&+ needs to be written as BIND.
2019-08-11 14:34:55 +02:00
John J. Camilleri
2d3d382a41 unittest: create README.md as main documentation 2019-08-05 10:57:26 +02:00
Peter Ljunglöf
7cbe4e7810 unittest: adding support for Python- or GF-style comments 2019-07-12 10:39:16 +02:00
Peter Ljunglöf
29ee6d0d70 unittest: updated the script to be able to work from the unittest directory 2019-07-12 10:39:16 +02:00
Peter Ljunglöf
9646629fb3 unittest: Move script to new directory 2019-07-12 10:39:16 +02:00