diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2018-04-21 14:19:18 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-04-21 14:19:18 -0600 |
| commit | 2b6a3767900d0a9fc9bcc7a05f72df6173942e26 (patch) | |
| tree | 63fc85523fd0eab0b8266fa966528cb03b6eaf39 /test/fixtures | |
| parent | 4fbfe029590f3f5fe649301f559de15307be09a0 (diff) | |
resolves #2361 warn if a specified include tag is unclosed (PR #2696)
- warn if a tag specified in the include directive is unclosed in the include file
- add tests to verify warnings
- fix unclosed tags in test fixtures
- remove duplicate test
Diffstat (limited to 'test/fixtures')
| -rw-r--r-- | test/fixtures/other-chapters.adoc | 2 | ||||
| -rw-r--r-- | test/fixtures/tagged-class-enclosed.rb | 1 | ||||
| -rw-r--r-- | test/fixtures/unclosed-tag.adoc | 3 |
3 files changed, 4 insertions, 2 deletions
diff --git a/test/fixtures/other-chapters.adoc b/test/fixtures/other-chapters.adoc index 8b625dda..b0962f14 100644 --- a/test/fixtures/other-chapters.adoc +++ b/test/fixtures/other-chapters.adoc @@ -3,7 +3,7 @@ == Chapter 2 The plot thickens. -// tag::ch2[] +// end::ch2[] [#ch3] == Chapter 3 diff --git a/test/fixtures/tagged-class-enclosed.rb b/test/fixtures/tagged-class-enclosed.rb index 5ebfd373..20054684 100644 --- a/test/fixtures/tagged-class-enclosed.rb +++ b/test/fixtures/tagged-class-enclosed.rb @@ -17,7 +17,6 @@ class Dog 'woof woof' #end::bark-other[] #tag::bark-all[] - #tag::bark-all[] end #end::bark-all[] end diff --git a/test/fixtures/unclosed-tag.adoc b/test/fixtures/unclosed-tag.adoc new file mode 100644 index 00000000..ea5d40ba --- /dev/null +++ b/test/fixtures/unclosed-tag.adoc @@ -0,0 +1,3 @@ +x +// tag::a[] +a |
