From 1ad63ff14adb652996c4604da59a330cef0d494e Mon Sep 17 00:00:00 2001 From: Stefano Sabatini Date: Mon, 17 Sep 2012 00:49:31 +0200 Subject: fate: add av_small_strptime() test to fate-parseutils --- tests/ref/fate/parseutils | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/ref/fate/parseutils b/tests/ref/fate/parseutils index 042ebef938..5bf1cae9c0 100644 --- a/tests/ref/fate/parseutils +++ b/tests/ref/fate/parseutils @@ -63,6 +63,12 @@ red@10foo -> error red@-1.0 -> error red@-0.0 -> R(255) G(0) B(0) A(0) +Testing av_small_strptime() +fmt:'%Y-%m-%d' spec:'2012-12-21' -> 2012-12-21 00:00:00 +fmt:'%Y - %m - %d' spec:'2012-12-21' -> 2012-12-21 00:00:00 +fmt:'%Y-%m-%d %H:%M:%S' spec:'2012-12-21 20:12:21' -> 2012-12-21 20:12:21 +fmt:' %Y - %m - %d %H : %M : %S' spec:' 2012 - 12 - 21 20 : 12 : 21' -> 2012-12-21 20:12:21 + Testing av_parse_time() (now is 2012-03-17 09:14:13 +0100, local time is UTC+1) now -> 1331972053.000000 = 2012-03-17T08:14:13Z -- cgit v1.2.3