Open jbellik opened 3 years ago
Numerous failures now exists among the various mocha tests. For example: -- Failures in GENargumentTests
-- Failures in GENinputTest
Other failures in GENoutputTest and compound_w_gen
Bother, I may have caused those yesterday when I tried to make obeysHeadedness: true the default setting for Gen.
Are these tests failing on your local branch? If so, try updating from master because they are all passing on master now.
I fixed the failures except on GENinputTest by making a copy of options in GEN instead of referencing the variables assigned a set of options in compound_w_GEN
The issue with GENinputTest was originally that nodes would receive the category ['xp'] instead of 'xp'. I fixed this by making sure the default category was (ironically) ['xp'] instead of 'xp'. Now the issue has to do with the naming of node ID's when sTreeGEN() is run. The tree output is all correct and every node has a unique ID, but the first node is not 'xp0' it is 'xp2'.
We can manually change the tests to test for parenthesized trees, but that wouldn't help to understand why ID-ing is non-standard in sTreeGEN().
Currently Gen with multiple recursive categories supports either separating them with hyphens ('phi-w'), or inputting them as an array, e.g., ['phi', 'w'].
Let's switch over entirely to using the array representation. Testing is already using the array representation, but the interface is using the string representation.