From 34697f07a0bb7b26b3eb2f102d18fb74e5ed7ec4 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Mon, 18 Dec 2017 16:35:14 +0100 Subject: [PATCH] whoops forgot kilo- and megatons --- tst/ui/StringTest.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tst/ui/StringTest.cpp b/tst/ui/StringTest.cpp index 5e781ca..3a9d9b7 100644 --- a/tst/ui/StringTest.cpp +++ b/tst/ui/StringTest.cpp @@ -111,6 +111,14 @@ void StringTest::testMass() { "bad format of ton string", std::string("18.00t"), MassString(18000.0) ); + CPPUNIT_ASSERT_EQUAL_MESSAGE( + "bad format of kiloton string", + std::string("50.00kt"), MassString(50000000.0) + ); + CPPUNIT_ASSERT_EQUAL_MESSAGE( + "bad format of megaton string", + std::string("1400Mt"), MassString(1400000000000.0) + ); CPPUNIT_ASSERT_EQUAL_MESSAGE( "bad format of gigaton string", std::string("50.00Gt"), MassString(50000000000000.0) -- 2.39.2