aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-22 14:46:37 -0500
committerJack Lloyd <[email protected]>2017-01-22 14:46:37 -0500
commit1531c4fcd0c0817eaf3708f267a8a2895c1d7cb5 (patch)
tree7bc915260b148d93857f4004cf4f48a3dd59bf1b
parent8d75c5c95d80f994477da97ffc48fbbc754a4635 (diff)
Add a test of calendar_point::to_string
-rw-r--r--src/tests/test_utils.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/tests/test_utils.cpp b/src/tests/test_utils.cpp
index d4d8bc0da..ae9cf72dd 100644
--- a/src/tests/test_utils.cpp
+++ b/src/tests/test_utils.cpp
@@ -239,6 +239,14 @@ class Date_Format_Tests : public Text_Based_Test
return result;
}
+ std::vector<Test::Result> run_final_tests() override
+ {
+ Test::Result result("calendar_point::to_string");
+ Botan::calendar_point d(2008, 5, 15, 9, 30, 33);
+ // desired format: <YYYY>-<MM>-<dd>T<HH>:<mm>:<ss>
+ result.test_eq("calendar_point::to_string", d.to_string(), "2008-05-15T09:30:33");
+ return {result};
+ }
};
BOTAN_REGISTER_TEST("util_dates", Date_Format_Tests);