X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=tst%2Fui%2FStringTest.cpp;fp=tst%2Fui%2FStringTest.cpp;h=3a9d9b7feb8aff9d289cbc5720b2359f6a300a05;hp=5e781ca4acdc23cab16af5f5115bc8cfa7ae021b;hb=34697f07a0bb7b26b3eb2f102d18fb74e5ed7ec4;hpb=e50ebad87d4d96fa47875d194575be912358c15f 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)