From 0aa881f231ef8593e3bc2031b59feb1254db8b55 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Wed, 21 Oct 2020 13:05:32 +0200 Subject: Use lexical-binding in hfy-cmap.el and add tests * lisp/hfy-cmap.el: Use lexical-binding. (hfy-cmap--parse-buffer): Extract from... (htmlfontify-load-rgb-file): ...here. * test/lisp/hfy-cmap-resources/rgb.txt: * test/lisp/hfy-cmap-tests.el: New files. --- test/lisp/hfy-cmap-resources/rgb.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 test/lisp/hfy-cmap-resources/rgb.txt (limited to 'test/lisp/hfy-cmap-resources') diff --git a/test/lisp/hfy-cmap-resources/rgb.txt b/test/lisp/hfy-cmap-resources/rgb.txt new file mode 100644 index 00000000000..86a00539909 --- /dev/null +++ b/test/lisp/hfy-cmap-resources/rgb.txt @@ -0,0 +1,3 @@ +255 250 250 snow +248 248 255 ghost white +248 248 255 GhostWhite -- cgit v1.2.3 From 3ee56c7e4283c6689dcb979781067d618ab60c44 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 12 Nov 2020 03:20:39 +0100 Subject: * test/lisp/hfy-cmap-resources/rgb.txt: Add comment line. --- test/lisp/hfy-cmap-resources/rgb.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'test/lisp/hfy-cmap-resources') diff --git a/test/lisp/hfy-cmap-resources/rgb.txt b/test/lisp/hfy-cmap-resources/rgb.txt index 86a00539909..f8e369fae2a 100644 --- a/test/lisp/hfy-cmap-resources/rgb.txt +++ b/test/lisp/hfy-cmap-resources/rgb.txt @@ -1,3 +1,4 @@ +# test comment 255 250 250 snow 248 248 255 ghost white 248 248 255 GhostWhite -- cgit v1.2.3