* test-dist.el (test-refcard-version): New testcases.
authorkaoru <kaoru>
Wed, 12 Dec 2001 04:47:52 +0000 (04:47 +0000)
committerkaoru <kaoru>
Wed, 12 Dec 2001 04:47:52 +0000 (04:47 +0000)
tests/ChangeLog
tests/test-dist.el

index 6d513be..7b8cb29 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-12  TAKAHASHI Kaoru  <kaoru@kaisei.org>
+
+       * test-dist.el (test-refcard-version): New testcases.
+
 2001-11-25  TAKAHASHI Kaoru  <kaoru@kaisei.org>
 
        * check-base64.el (toplevel): Remove (require 'wl).
index c26a0f8..28ef908 100644 (file)
       (insert-file-contents (expand-file-name "version.texi" DOCDIR))
       (re-search-forward "^@set VERSION \\([0-9\.]+\\)$")
       (match-string 1)))))
+
+;; wl-refcard.tex
+(luna-define-method test-refcard-version ((case test-dist))
+  (require 'wl-version)
+  (lunit-assert
+   (string=
+    (product-version-string (product-find 'wl-version))
+    (with-temp-buffer
+      (insert-file-contents (expand-file-name "wl-refcard.tex" DOCDIR))
+      (re-search-forward "^\\\\def\\\\versionnumber{\\([0-9\.]+\\)}$")
+      (match-string 1)))))