X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/411c1c65313aa4e22730ba9762e073881f4e299a..6de26a78de83ca9a8f096056e91c14fdb2aedc84:/test/automated/ert-tests.el?ds=sidebyside diff --git a/test/automated/ert-tests.el b/test/automated/ert-tests.el index 45440e060c..5d3675553d 100644 --- a/test/automated/ert-tests.el +++ b/test/automated/ert-tests.el @@ -1,6 +1,6 @@ ;;; ert-tests.el --- ERT's self-tests -*- lexical-binding: t -*- -;; Copyright (C) 2007-2008, 2010-2014 Free Software Foundation, Inc. +;; Copyright (C) 2007-2008, 2010-2016 Free Software Foundation, Inc. ;; Author: Christian Ohler @@ -345,10 +345,15 @@ This macro is used to test if macroexpansion in `should' works." (should (equal actual-condition expected-condition))))))) (ert-deftest ert-test-deftest () + ;; FIXME: These tests don't look very good. What is their intent, i.e. what + ;; are they really testing? The precise generated code shouldn't matter, so + ;; we should either test the behavior of the code, or else try to express the + ;; kind of efficiency guarantees we're looking for. (should (equal (macroexpand '(ert-deftest abc () "foo" :tags '(bar))) '(progn (ert-set-test 'abc (progn + "Constructor for objects of type `ert-test'." (vector 'cl-struct-ert-test 'abc "foo" #'(lambda nil) nil ':passed @@ -363,6 +368,7 @@ This macro is used to test if macroexpansion in `should' works." '(progn (ert-set-test 'def (progn + "Constructor for objects of type `ert-test'." (vector 'cl-struct-ert-test 'def nil #'(lambda nil) nil ':passed 'nil)))