diff options
author | Arun Isaac | 2017-02-20 00:24:12 +0530 |
---|---|---|
committer | Arun Isaac | 2017-02-20 00:24:12 +0530 |
commit | 5169f200cce03fb47b4f11b743d46d0204d9e4b6 (patch) | |
tree | 902cfd3c2645c24c03305dc735252e4bc5eed4bd /el-exiftool-tests.el | |
download | exiftool.el-5169f200cce03fb47b4f11b743d46d0204d9e4b6.tar.gz exiftool.el-5169f200cce03fb47b4f11b743d46d0204d9e4b6.tar.lz exiftool.el-5169f200cce03fb47b4f11b743d46d0204d9e4b6.zip |
Initial commit
Diffstat (limited to 'el-exiftool-tests.el')
-rw-r--r-- | el-exiftool-tests.el | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/el-exiftool-tests.el b/el-exiftool-tests.el new file mode 100644 index 0000000..7fce6e8 --- /dev/null +++ b/el-exiftool-tests.el @@ -0,0 +1,14 @@ +(require 'el-exiftool) +(require 'ert) + +(ert-deftest read-write-test () + (let ((test-filename "test1.png")) + (let ((temp-filename (make-temp-file "el-exiftool-" + nil (concat "-" test-filename))) + (tag "xmp:Marked") + (value "True")) + (copy-file test-filename temp-filename t) + (el-exiftool-write temp-filename (cons tag value)) + (should (equal (el-exiftool-read temp-filename tag) + value)) + (delete-file temp-filename)))) |