projects
/
TDDC76.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29807f1
)
Added new testcase
author
Alma Dejus
<almde515@student.liu.se>
Wed, 11 Oct 2023 11:58:04 +0000
(13:58 +0200)
committer
Alma Dejus
<almde515@student.liu.se>
Wed, 11 Oct 2023 11:58:04 +0000
(13:58 +0200)
src/test.cc
patch
|
blob
|
history
diff --git
a/src/test.cc
b/src/test.cc
index 57ad9a0f725f583ee4a74083c26a6082c5347eff..2278fe38ee358dee68cec7dd0190e43a9b697824 100644
(file)
--- a/
src/test.cc
+++ b/
src/test.cc
@@
-86,9
+86,12
@@
TEST_CASE("Noder")
CHECK( my_exp.get_infix() == "((3+2.000)^(7*1.500))" );
CHECK( my_exp.get_prefix() == "^ + 3 2.000 * 7 1.500" );
CHECK( my_exp.get_value() == 21836601.3427713849 );
-
}
}
+TEST_CASE("Expression")
+{
+ Expression e{"(1+2)^3"};
+}
int main()
{