Skip to content

Commit

Permalink
add breaking test for #10
Browse files Browse the repository at this point in the history
  • Loading branch information
mceachen committed Jun 19, 2017
1 parent 1555648 commit 0ba89e0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/field_parser_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@
p.civil_date.must_be_nil
end

it 'skips invalid dates' do
p = Exiftool::FieldParser.new('GPSDateTime', '0111:00:30 20:31:58Z')
p.value.must_equal('0111:00:30 20:31:58Z')
p.civil_date.must_be_nil
end

it 'returns nil for YMD for date flags' do
p = Exiftool::FieldParser.new('DateStampMode', 'Off')
p.civil_date.must_be_nil
Expand Down

0 comments on commit 0ba89e0

Please sign in to comment.