Closed
Description
There is an error while parsing some parentheses trees. The error can be reproduced with:
@Test
public void parsingError() {
final var tree = TreeNode.of("fun")
.attach("(", "x", ",", "y", ")");
final var string = tree.toParenthesesString();
System.out.println(string);
assertThat(TreeNode.parse(string)).isEqualTo(tree);
}
This creates the following error:
expected: fun(\(,x,\,,y,\))
but was: fun(null(null,x,null,null,y,null))
java.lang.AssertionError:
expected: fun(\(,x,\,,y,\))
but was: fun(null(null,x,null,null,y,null))
Activity
#831: Add unit test for bug.
#831: Fix parsing or parentheses trees.
Merge pull request #832 from jenetics/issues/JENETICS-831-tree_parsin…
jenetics commentedon Mar 24, 2022
Merged into r7.1.0 branch.