From 0321e6e39b8cf24718cf853c28f0f35443753264 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 30 Nov 2016 13:57:04 -0700 Subject: Working on the parser, some issues. --- src/unitparser.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/unitparser.cpp') 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() "order1", Bu::UnitSuite::expectPass ); add( static_cast(&UnitParser::assignment), "assignment", Bu::UnitSuite::expectPass ); + add( static_cast(&UnitParser::parse1), + "parse1", Bu::UnitSuite::expectPass ); } UnitParser::~UnitParser() @@ -55,3 +57,8 @@ void UnitParser::assignment() unitTest( mbOut.getString().trimWhitespace() == parser.getVariable("test").toString() ); } +void UnitParser::parse1() +{ + unitTest(parse("-5") == "-5"); +} + -- cgit v1.2.3