round non-exact values for truncated time types instead of invalid argument, formatting

This commit is contained in:
john30
2016-10-15 17:48:48 +02:00
parent 0c0ea8e967
commit 16822ae94c
2 changed files with 143 additions and 94 deletions
+7
View File
@@ -149,11 +149,18 @@ int main()
{"x,,ttm", "22:40", "10fe07000188", "00", ""},
{"x,,ttm", "00:00", "10fe07000100", "00", ""},
{"x,,ttm", "23:50", "10fe0700018f", "00", ""},
{"x,,ttm", "23:54", "10fe0700018f", "00", "R"},
{"x,,ttm", "23:55", "10fe07000190", "00", "R"},
{"x,,ttm", "23:56", "10fe07000190", "00", "R"},
{"x,,ttm", "23:59", "10fe07000190", "00", "R"},
{"x,,ttm", "-:-", "10fe07000190", "00", ""},
{"x,,ttm", "", "10fe07000191", "00", "rw"},
{"x,,ttm,2", "", "", "", "c"},
{"x,,tth", "22:30", "10fe0700012d", "00", ""},
{"x,,tth", "00:30", "10fe07000101", "00", ""},
{"x,,tth", "23:31", "10fe0700012f", "00", "R"},
{"x,,tth", "23:44", "10fe0700012f", "00", "R"},
{"x,,tth", "23:45", "10fe07000130", "00", "R"},
{"x,,tth", "24:00", "10fe07000130", "00", ""},
{"x,,tth", "-:-", "10fe07000100", "00", ""},
{"x,,tth", "", "10fe07000131", "00", "rw"},