Skip to content

Commit

Permalink
Test error message for nested #defblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
sideeffect42 committed Feb 7, 2024
1 parent fbd5661 commit 7115b81
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/81-block-nested/expect.err
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/81-block-nested/input:14: error: #defblocks cannot be nested
Empty file added test/81-block-nested/expect.out
Empty file.
1 change: 1 addition & 0 deletions test/81-block-nested/expect.status
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
18 changes: 18 additions & 0 deletions test/81-block-nested/input
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#defblock lorem
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
incididunt ut labore et dolore magna aliqua. Diam sit amet nisl suscipit
adipiscing bibendum est ultricies. Vitae ultricies leo integer malesuada nunc
vel risus. Ornare massa eget egestas purus viverra accumsan in nisl
nisi. Malesuada fames ac turpis egestas. Sit amet consectetur adipiscing
elit. Elit ut aliquam purus sit amet luctus venenatis. Sed viverra tellus in hac
habitasse. Sollicitudin aliquam ultrices sagittis orci a scelerisque
purus. Cursus metus aliquam eleifend mi in nulla posuere sollicitudin. Vel risus
commodo viverra maecenas accumsan. Posuere lorem ipsum dolor sit amet
consectetur adipiscing. Malesuada fames ac turpis egestas integer eget aliquet
nibh. Consectetur adipiscing elit ut aliquam purus. Nulla aliquet porttitor
lacus luctus accumsan tortor posuere.
#defblock nested
block nested in lorem
#endblock
#endblock
#useblock lorem

0 comments on commit 7115b81

Please sign in to comment.