From d8d505208423fe1e7f3c067a0ab4b4002d657620 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Thu, 10 Jun 2021 16:41:50 +0530 Subject: tests: Move feature requirements to the top of the code. Prior to this change, the code that came before the feature requirements errored out due to missing features. * tests/exiftool-tests.el: Move feature requirements to the top of the code. --- tests/exiftool-tests.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/exiftool-tests.el b/tests/exiftool-tests.el index 8ed4f1c..36aeb0b 100644 --- a/tests/exiftool-tests.el +++ b/tests/exiftool-tests.el @@ -1,7 +1,7 @@ ;;; exiftool.el --- Elisp wrapper around exiftool ;; -*- lexical-binding: t -*- ;; Elisp wrapper around exiftool -;; Copyright (C) 2017, 2019 by Arun I +;; Copyright (C) 2017, 2019, 2021 by Arun I ;; ;; Author: Arun I ;; Keywords: data @@ -28,6 +28,10 @@ ;;; Code: +(require 'exiftool) +(require 'cl-lib) +(require 'ert) + (defvar exiftool-tests--tag-value '(("Marked" . "True") ("Creator" . "foo") @@ -43,10 +47,6 @@ tag)) exiftool-tests--tag-value)) -(require 'exiftool) -(require 'cl-lib) -(require 'ert) - (defmacro with-temp-test-file (test-file temp-file &rest body) "Copy TEST-FILE to temporary file, put path in TEMP-FILE, evaluate BODY." (declare (indent defun)) -- cgit v1.2.3