]> gitweb.ps.run Git - ps-cgit/blobdiff - tests/t0104-tree.sh
tests/t0010-validate-html.sh: skip tests if 'tidy' is not available
[ps-cgit] / tests / t0104-tree.sh
index 2516c72137fcd2b20ea3aefa82aa33817a958d3c..0d62cc82c5d5dbbc90e351a73e3c748e427ba7c0 100755 (executable)
@@ -18,4 +18,16 @@ run_test 'no line 2' '
        grep -e "<a id=.n2. name=.n2. href=.#n2.>2</a>" trash/tmp
 '
 
+run_test 'generate foo+bar/tree' 'cgit_url "foo%2bbar/tree" >trash/tmp'
+
+run_test 'verify a+b link' '
+       grep -e "/foo+bar/tree/a+b" trash/tmp
+'
+
+run_test 'generate foo+bar/tree?h=1+2' 'cgit_url "foo%2bbar/tree&h=1%2b2" >trash/tmp'
+
+run_test 'verify a+b?h=1+2 link' '
+       grep -e "/foo+bar/tree/a+b?h=1%2b2" trash/tmp
+'
+
 tests_done