pnf: add test for collapsing first application argument
This commit is contained in:
parent
4aa62d4813
commit
4a6a35a897
1 changed files with 5 additions and 0 deletions
|
@ -29,6 +29,11 @@ fn test_param_normalize() {
|
|||
dict.parse("<Seq <Digit 10>>~<Seq Char>").expect("parse errror").param_normalize(),
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
dict.parse("<A~Y B>").expect("parse error"),
|
||||
dict.parse("<A B>~<Y B>").expect("parse error").param_normalize(),
|
||||
);
|
||||
|
||||
assert_eq!(
|
||||
dict.parse("<A <B C~D~E> F~G H H>").expect("parse error"),
|
||||
dict.parse("<A <B C> F H H>
|
||||
|
|
Loading…
Reference in a new issue