diff --git a/test/data/issue_1782_canon_lens_sigma_30mm_f1.4_DC_DN_C.exv b/test/data/issue_1782_canon_lens_sigma_30mm_f1.4_DC_DN_C.exv new file mode 100644 index 00000000..b5d001ce Binary files /dev/null and b/test/data/issue_1782_canon_lens_sigma_30mm_f1.4_DC_DN_C.exv differ diff --git a/tests/bugfixes/github/test_issue_1782.py b/tests/bugfixes/github/test_issue_1782.py new file mode 100644 index 00000000..63471b1a --- /dev/null +++ b/tests/bugfixes/github/test_issue_1782.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- + +import system_tests + +class test_issue_1782(metaclass=system_tests.CaseMeta): + url = "https://github.com/Exiv2/exiv2/issues/1782" + + filename = "$data_path/issue_1782_canon_lens_sigma_30mm_f1.4_DC_DN_C.exv" + commands = ["$exiv2 -pa --grep LensType $filename"] + stderr = [""] + stdout = ["""Exif.CanonCs.LensType Short 1 Sigma 30mm f/1.4 DC DN | C +Exif.CanonFi.RFLensType SShort 1 n/a +""" +] + retval = [0]