X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8cde629906fd8d8e571fd519b3ca5ab3496ebbc1..50504953faa5ac04a64ca72e8034f5aec3957dee:/spec/parse_spec.lua?ds=inline 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 )