hour: Add and subtract a number of seconds
[ACL.git] / test / hour_assign.cpp
index 8a25691..dbaf728 100644 (file)
@@ -52,6 +52,14 @@ int main()
    assert(h4.Minute() == 20);
    assert(h4.Second() == 45);
 
+   int seconds = 5000;
+   hour h5(seconds);
+
+   std::cout << seconds << " seconds = " << h5 << "\n";
+   assert(h5.Hour() == 1);
+   assert(h5.Minute() == 23);
+   assert(h5.Second() == 20);
+
    return 0;
 }