X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8cde629906fd8d8e571fd519b3ca5ab3496ebbc1..b6912d6d22b3c6fc635e602412bdb83884630a38:/spec/parse_spec.lua?ds=sidebyside diff --git a/spec/parse_spec.lua b/spec/parse_spec.lua index 37d37a0..89c9a26 100644 --- a/spec/parse_spec.lua +++ b/spec/parse_spec.lua @@ -10,5 +10,8 @@ describe ( "Time parsing library" , function ( ) -- Missing offsets parse assert.same ( timetable.new(2013,10,22,14,17,02) , (parse.rfc_3339 "2013-10-22T14:17:02") ) + + -- Invalid + assert.same(nil, (parse.rfc_3339 "an invalid timestamp")) end ) end )