aboutsummaryrefslogtreecommitdiffstats
path: root/modelica-parser-lalrpop/tests
diff options
context:
space:
mode:
Diffstat (limited to 'modelica-parser-lalrpop/tests')
-rw-r--r--modelica-parser-lalrpop/tests/parser.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/modelica-parser-lalrpop/tests/parser.rs b/modelica-parser-lalrpop/tests/parser.rs
index f5f493a..1a0f46f 100644
--- a/modelica-parser-lalrpop/tests/parser.rs
+++ b/modelica-parser-lalrpop/tests/parser.rs
@@ -38,3 +38,10 @@ end MinimalModel;
"#;
assert_eq!(&format!("{:?}", parse_model(example2).unwrap()), example2);
}
+
+// TODO: the following are illegal in Modelica
+// 2*-2 = -4
+// --2 = 2
+// ++2 = 2
+// 2--2 = 4
+// x^y^z (needs parens)