pnf: add test for collapsing first application argument

This commit is contained in:
Michael Sippel 2025-02-04 15:15:09 +01:00
parent 4aa62d4813
commit 4a6a35a897
Signed by: senvas
GPG key ID: F96CF119C34B64A6

View file

@ -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>