Mon, 03 Oct 2022 12:27:10 +0200
add test for empty file
Makefile | file | annotate | diff | comparison | revisions | |
test/emptyfile.c | file | annotate | diff | comparison | revisions | |
test/golden-master/emptyfile.html | file | annotate | diff | comparison | revisions |
--- a/Makefile Mon Oct 03 12:14:53 2022 +0200 +++ b/Makefile Mon Oct 03 12:27:10 2022 +0200 @@ -57,10 +57,13 @@ -H test/header.html -F test/footer.html ./build/$(BIN) -p test/plain.csp -o build/plain.html \ -H test/header.html -F test/footer.html + ./build/$(BIN) -p test/emptyfile.c -o build/emptyfile.html \ + -H test/header.html -F test/footer.html diff build/ctest.html test/golden-master/ctest.html && \ diff build/javatest.html test/golden-master/javatest.html && \ diff build/bigtest.html test/golden-master/bigtest.html && \ - diff build/plain.html test/golden-master/plain.html + diff build/plain.html test/golden-master/plain.html && \ + diff build/emptyfile.html test/golden-master/emptyfile.html clean: $(RM) $(RMFLAGS) build
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/golden-master/emptyfile.html Mon Oct 03 12:27:10 2022 +0200 @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html> + <head> + <title>c2html</title> + <style type="text/css"> + a.c2html-lineno { + /* as long as user-select isn't widely spread, we throw the bomb */ + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + display: inline-block; + font-style: italic; + text-decoration: none; + color: grey; + } + span.c2html-keyword { + color: blue; + } + span.c2html-macroconst { + color: cornflowerblue; + } + span.c2html-type { + color: cornflowerblue; + } + span.c2html-directive { + color: green; + } + span.c2html-string { + color: darkorange; + } + span.c2html-comment { + color: grey; + } + span.c2html-stdinclude { + color: darkorange; + } + span.c2html-userinclude { + color: darkorange; + } + a.c2html-userinclude { + color: darkorange; + text-decoration: underline; + } + </style> + </head> + <body> + +<pre> +<a class="c2html-lineno" name="l1" href="#l1">1 </a> +</pre> + </body> +</html> +