diff options
Diffstat (limited to '')
-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 | |||