diff options
author | Russ Allbery <rra@cpan.org> | 2021-09-10 19:13:27 -0700 |
---|---|---|
committer | Russ Allbery <rra@cpan.org> | 2021-09-10 19:13:27 -0700 |
commit | 0bcb5bbd9df3a87ea481b5df335b84a7b0ce20b8 (patch) | |
tree | 5f8891bf2cca6ade0dd2449d8bd86673a6a423bc /t/data | |
parent | 6dfa02d26f3f9212c670d0f89746f085f77f75c6 (diff) |
Add tests for more spin functionality
Add tests for the commands that aren't currently covered. Fix some
code where I meant to use a local variable rather than a regex
back-reference.
Diffstat (limited to 't/data')
-rw-r--r-- | t/data/spin/input/random.th | 15 | ||||
-rw-r--r-- | t/data/spin/output/random.html | 26 |
2 files changed, 41 insertions, 0 deletions
diff --git a/t/data/spin/input/random.th b/t/data/spin/input/random.th index 00c5663..5ac1277 100644 --- a/t/data/spin/input/random.th +++ b/t/data/spin/input/random.th @@ -5,4 +5,19 @@ though \class(foo)[it starts and ends the paragraph.] Sh\entity[333]gun +\table[][ + \tablehead[One][Two] + \tablerow[foo][bar] +] + + +Some text. \strike[strike]\sub[2] + +\rule + +\h3[Foo] +\h4[Bar] +\h5[Baz] +\h6[tiny] + \signature diff --git a/t/data/spin/output/random.html b/t/data/spin/output/random.html index be6d9fd..f5daba7 100644 --- a/t/data/spin/output/random.html +++ b/t/data/spin/output/random.html @@ -22,6 +22,32 @@ though <span class="foo">it starts and ends the paragraph.</span> Shōgun </p> +<table> + <tr> + <th>One</th> + <th>Two</th> + </tr> + + <tr> + <td>foo</td> + <td>bar</td> + </tr></table> + + +<p> +Some text. <strike>strike</strike><sub>2</sub> +</p> + +<hr /> + +<h3>Foo</h3> + +<h4>Bar</h4> + +<h5>Baz</h5> + +<h6>tiny</h6> + <address> Last <a href="https://www.eyrie.org/~eagle/software/web/">spun</a> %DATE% from thread modified %DATE% |