diff options
author | Mike Buland <eichlan@xagasoft.com> | 2016-11-30 13:57:04 -0700 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2016-11-30 13:57:04 -0700 |
commit | 0321e6e39b8cf24718cf853c28f0f35443753264 (patch) | |
tree | 878bdaa2296014244f2dbe90d61c5c869e8204b7 /src/unitparser.cpp | |
parent | f50e787110c8b3ecbc1b07262842dd5fdc8a5e42 (diff) | |
download | clic-0321e6e39b8cf24718cf853c28f0f35443753264.tar.gz clic-0321e6e39b8cf24718cf853c28f0f35443753264.tar.bz2 clic-0321e6e39b8cf24718cf853c28f0f35443753264.tar.xz clic-0321e6e39b8cf24718cf853c28f0f35443753264.zip |
Working on the parser, some issues.
Diffstat (limited to 'src/unitparser.cpp')
-rw-r--r-- | src/unitparser.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unitparser.cpp b/src/unitparser.cpp index f518fdc..09b5982 100644 --- a/src/unitparser.cpp +++ b/src/unitparser.cpp | |||
@@ -13,6 +13,8 @@ UnitParser::UnitParser() | |||
13 | "order1", Bu::UnitSuite::expectPass ); | 13 | "order1", Bu::UnitSuite::expectPass ); |
14 | add( static_cast<Bu::UnitSuite::Test>(&UnitParser::assignment), | 14 | add( static_cast<Bu::UnitSuite::Test>(&UnitParser::assignment), |
15 | "assignment", Bu::UnitSuite::expectPass ); | 15 | "assignment", Bu::UnitSuite::expectPass ); |
16 | add( static_cast<Bu::UnitSuite::Test>(&UnitParser::parse1), | ||
17 | "parse1", Bu::UnitSuite::expectPass ); | ||
16 | } | 18 | } |
17 | 19 | ||
18 | UnitParser::~UnitParser() | 20 | UnitParser::~UnitParser() |
@@ -55,3 +57,8 @@ void UnitParser::assignment() | |||
55 | unitTest( mbOut.getString().trimWhitespace() == parser.getVariable("test").toString() ); | 57 | unitTest( mbOut.getString().trimWhitespace() == parser.getVariable("test").toString() ); |
56 | } | 58 | } |
57 | 59 | ||
60 | void UnitParser::parse1() | ||
61 | { | ||
62 | unitTest(parse("-5") == "-5"); | ||
63 | } | ||
64 | |||