]> git.eshelyaron.com Git - emacs.git/commit
Split regex character class test into smaller chunks
authorMichal Nazarewicz <mina86@mina86.com>
Wed, 17 Aug 2016 17:53:01 +0000 (19:53 +0200)
committerMichal Nazarewicz <mina86@mina86.com>
Fri, 9 Sep 2016 01:07:15 +0000 (03:07 +0200)
commit8634efa38179f44c2cb5c52c25ced3f02fa5ec1a
treef05347064ee2e1c7f260488313fd08232be8e18c
parent4516130d5a4bec47e86bdf560a1375740b6bb110
Split regex character class test into smaller chunks

Having one test for all character classes it is not always trivial to
determine which class is failing.  This happens when failure is caused
by ‘(should (equal (point) (point-max)))’ not being met.

With per-character class tests, it is immidiatelly obvious which test
causes issues plus tests for all classes are run even if some of them
fail.

* test/src/regex-tests.el (regex-character-classes): Delete and split
into…
(regex-tests-alnum-character-class, regex-tests-alpha-character-class,
regex-tests-ascii-character-class, regex-tests-blank-character-class,
regex-tests-cntrl-character-class, regex-tests-digit-character-class,
regex-tests-graph-character-class, regex-tests-lower-character-class,
regex-tests-multibyte-character-class,
regex-tests-nonascii-character-class,
regex-tests-print-character-class, regex-tests-punct-character-class,
regex-tests-space-character-class,
regex-tests-unibyte-character-class,
regex-tests-upper-character-class, regex-tests-word-character-class,
regex-tests-xdigit-character-class): …new tests.
test/src/regex-tests.el