Skip to content

Commit

Permalink
Actually test pod examples
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jul 8, 2018
1 parent 676c8f2 commit a950e6f
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions doc/Language/tables.pod6
Expand Up @@ -65,7 +65,7 @@ separator in the content portion of the table. For example,
=item Heading and single- or multi-line content
=begin code :skip-test
=begin code
=begin table
hdr col 0 | hdr col 1
======================
Expand All @@ -80,7 +80,7 @@ separator in the content portion of the table. For example,
=item Heading and single-line content
=begin code :skip-test
=begin code
=begin table
hdr col 0 | hdr col 1
======================
Expand All @@ -93,7 +93,7 @@ separator in the content portion of the table. For example,
contiguous hyphens (V<'-'>) as the row separator in the content portion
of the table. For example,
=begin code :skip-test
=begin code
=begin table
row 0 | row 0
col 0 | col 1
Expand All @@ -116,7 +116,7 @@ empty cells and generate a warning.)
8. Adding a caption to a table is possible using the C<=begin table>
line as in this example:
=begin code :skip-test
=begin code
=begin table :caption<My Tasks>
mow lawn
take out trash
Expand All @@ -126,7 +126,7 @@ take out trash
Although not a good practice, currently there is in use an alternate
method of defining a caption as shown in this example:
=begin code :skip-test
=begin code
=begin table :config{caption => "My Tasks"}
mow lawn
take out trash
Expand All @@ -144,7 +144,7 @@ version C<6.e>.
Following are examples of valid (Good) tables (taken from the current
L<Specification Tests|https://github.com/perl6/roast>).
=begin code :skip-test
=begin code
=begin table
The Shoveller Eddie Stevens King Arthur's singing shovel
Blue Raja Geoffrey Smith Master of cutlery
Expand All @@ -153,7 +153,7 @@ L<Specification Tests|https://github.com/perl6/roast>).
=end table
=end code
=begin code :skip-test
=begin code
=table
Constants 1
Variables 10
Expand All @@ -162,15 +162,15 @@ L<Specification Tests|https://github.com/perl6/roast>).
=end code
=begin code :skip-test
=begin code
=for table
mouse | mice
horse | horses
elephant | elephants
=end code
=begin code :skip-test
=begin code
=table
Animal | Legs | Eats
=======================
Expand All @@ -180,7 +180,7 @@ L<Specification Tests|https://github.com/perl6/roast>).
=end code
=begin code :skip-test
=begin code
=table
Superhero | Secret |
| Identity | Superpower
Expand All @@ -189,7 +189,7 @@ L<Specification Tests|https://github.com/perl6/roast>).
=end code
=begin code :skip-test
=begin code
=begin table
Secret
Expand All @@ -208,7 +208,7 @@ L<Specification Tests|https://github.com/perl6/roast>).
=end table
=end code
=begin code :skip-test
=begin code
=table
X | O |
---+---+---
Expand All @@ -218,7 +218,7 @@ L<Specification Tests|https://github.com/perl6/roast>).
=end code
=begin code :skip-test
=begin code
=table
X O
===========
Expand All @@ -228,7 +228,7 @@ L<Specification Tests|https://github.com/perl6/roast>).
=end code
=begin code :skip-test
=begin code
=begin table
foo
Expand All @@ -244,15 +244,15 @@ trigger an unhandled exception during parsing.
=item Mixed column separator types in the same row are not allowed:
=begin code :skip-test
=begin code :skip-test<pod error>
=begin table
r0c0 + r0c1 | r0c3
=end table
=end code
=item Mixed visual and whitespace column separator types in the same table are not allowed:
=begin code :skip-test
=begin code :skip-test<pod error>
=begin table
r0c0 + r0c1 | r0c3
r1c0 r0c1 r0c3
Expand All @@ -261,7 +261,7 @@ r1c0 r0c1 r0c3
=item Two consecutive interior row separators are not allowed:
=begin code :skip-test
=begin code :skip-test<pod error>
=begin table
r0c0 | r0c1
============
Expand All @@ -283,7 +283,7 @@ character, while it takes at least B<two> adjacent WS characters to define
a column separation. B<This is a valid table but will be parsed as a
single-column table>.
=begin code :skip-test
=begin code
=begin table
r0c0 r0c1
r1c0 r0c1
Expand All @@ -300,7 +300,7 @@ be what the user intended because the first row has two
columns while the second row has only one column, and it will thus have
an empty second column.
=begin code :skip-test
=begin code
=begin table
r0c0 | r0c1
r1c0 |r0c1
Expand Down

0 comments on commit a950e6f

Please sign in to comment.