]> git.localhorst.tv Git - blobs.git/commitdiff
whoops forgot kilo- and megatons
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 18 Dec 2017 15:35:14 +0000 (16:35 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 18 Dec 2017 15:35:14 +0000 (16:35 +0100)
tst/ui/StringTest.cpp

index 5e781ca4acdc23cab16af5f5115bc8cfa7ae021b..3a9d9b7feb8aff9d289cbc5720b2359f6a300a05 100644 (file)
@@ -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)