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 |
1.1 --- a/Makefile Mon Oct 03 12:14:53 2022 +0200 1.2 +++ b/Makefile Mon Oct 03 12:27:10 2022 +0200 1.3 @@ -57,10 +57,13 @@ 1.4 -H test/header.html -F test/footer.html 1.5 ./build/$(BIN) -p test/plain.csp -o build/plain.html \ 1.6 -H test/header.html -F test/footer.html 1.7 + ./build/$(BIN) -p test/emptyfile.c -o build/emptyfile.html \ 1.8 + -H test/header.html -F test/footer.html 1.9 diff build/ctest.html test/golden-master/ctest.html && \ 1.10 diff build/javatest.html test/golden-master/javatest.html && \ 1.11 diff build/bigtest.html test/golden-master/bigtest.html && \ 1.12 - diff build/plain.html test/golden-master/plain.html 1.13 + diff build/plain.html test/golden-master/plain.html && \ 1.14 + diff build/emptyfile.html test/golden-master/emptyfile.html 1.15 1.16 clean: 1.17 $(RM) $(RMFLAGS) build
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/test/golden-master/emptyfile.html Mon Oct 03 12:27:10 2022 +0200 2.3 @@ -0,0 +1,54 @@ 2.4 +<!DOCTYPE html> 2.5 +<html> 2.6 + <head> 2.7 + <title>c2html</title> 2.8 + <style type="text/css"> 2.9 + a.c2html-lineno { 2.10 + /* as long as user-select isn't widely spread, we throw the bomb */ 2.11 + -webkit-user-select: none; 2.12 + -moz-user-select: none; 2.13 + -ms-user-select: none; 2.14 + user-select: none; 2.15 + display: inline-block; 2.16 + font-style: italic; 2.17 + text-decoration: none; 2.18 + color: grey; 2.19 + } 2.20 + span.c2html-keyword { 2.21 + color: blue; 2.22 + } 2.23 + span.c2html-macroconst { 2.24 + color: cornflowerblue; 2.25 + } 2.26 + span.c2html-type { 2.27 + color: cornflowerblue; 2.28 + } 2.29 + span.c2html-directive { 2.30 + color: green; 2.31 + } 2.32 + span.c2html-string { 2.33 + color: darkorange; 2.34 + } 2.35 + span.c2html-comment { 2.36 + color: grey; 2.37 + } 2.38 + span.c2html-stdinclude { 2.39 + color: darkorange; 2.40 + } 2.41 + span.c2html-userinclude { 2.42 + color: darkorange; 2.43 + } 2.44 + a.c2html-userinclude { 2.45 + color: darkorange; 2.46 + text-decoration: underline; 2.47 + } 2.48 + </style> 2.49 + </head> 2.50 + <body> 2.51 + 2.52 +<pre> 2.53 +<a class="c2html-lineno" name="l1" href="#l1">1 </a> 2.54 +</pre> 2.55 + </body> 2.56 +</html> 2.57 +