blob: 7fce6e852dc542ec7ce9710520af2e9a609ec42c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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))))
|