diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-12-18 11:27:27 -0800 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-12-18 11:27:27 -0800 |
commit | c564b5c4c0efc541886648ba97d69a4ad25d7464 (patch) | |
tree | c4fada68d3f6d91797489e39d901a3d5c2b7f92e /modelica-parser-lalrpop/tests | |
parent | 37dba2763441721456be50f709c38bee9f6e71f9 (diff) | |
download | modelthing-c564b5c4c0efc541886648ba97d69a4ad25d7464.tar.gz modelthing-c564b5c4c0efc541886648ba97d69a4ad25d7464.zip |
parser: support for math functions (sin, exp, log, etc)
Diffstat (limited to 'modelica-parser-lalrpop/tests')
-rw-r--r-- | modelica-parser-lalrpop/tests/ast.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modelica-parser-lalrpop/tests/ast.rs b/modelica-parser-lalrpop/tests/ast.rs index f9047cb..24407b8 100644 --- a/modelica-parser-lalrpop/tests/ast.rs +++ b/modelica-parser-lalrpop/tests/ast.rs @@ -24,10 +24,10 @@ fn test_expr_identifiers() { assert!(set_eq( vec!["x".to_string(), "y".to_string(), "z".to_string()], BinExpr(BinOperator::Add, - Box::new(Abs(Box::new(Ident("z".to_string())))), + Box::new(Sign(Box::new(Ident("z".to_string())))), Box::new(BinExpr(BinOperator::Add, - Box::new(Abs(Box::new(Ident("x".to_string())))), - Box::new(Abs(Box::new(Ident("y".to_string()))))))).identifiers())); + Box::new(Sign(Box::new(Ident("x".to_string())))), + Box::new(Sign(Box::new(Ident("y".to_string()))))))).identifiers())); assert!(set_eq( vec!["z".to_string()], BinExpr(BinOperator::Add, |