Esempio n. 1
0
		void testTimes()
		{
			// Testing diff
			DTime t(15, 40, 0);
			DTime t2(16, 20, 0);
			DTime res = t2 - t;

			TEST_ASSERT((res.hour() == 0) && (res.minutes() == 40) && (res.seconds() == 0));

			res = t2 - 200;
			TEST_ASSERT((res.hour() == 16) && (res.minutes() == 16) && (res.seconds() == 40));
			// teting add
		}
Esempio n. 2
0
TEST(testUtil, testTimes)
{
	// Testing diff
	DTime t(15, 40, 0);
	DTime t2(16, 20, 0);
	DTime res = t2 - t;

	EXPECT_TRUE((res.hour() == 0) && (res.minutes() == 40) && (res.seconds() == 0));

	res = t2 - 200;
	EXPECT_TRUE((res.hour() == 16) && (res.minutes() == 16) && (res.seconds() == 40));
	// teting add
}