Skip to content

Commit 688ac33

Browse files
drecousequachpas
authored andcommitted
added tests for line comments with blocks
1 parent 9a4071e commit 688ac33

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

tests/linecommentfor/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# generated by tytanic, do not edit
2+
3+
diff/**
4+
out/**

tests/linecommentfor/ref/1.png

445 KB
Loading

tests/linecommentfor/test.typ

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#import "../../algorithmic.typ"
2+
#import algorithmic: *
3+
#set page(margin: (left: .1cm, top: .1cm, bottom: .1cm), width: 11cm, height: auto)
4+
#algorithm({
5+
import algorithmic: *
6+
LineComment(For($i <= 10$, {
7+
Line($1+1$)
8+
LineComment(While($j <= 10$, {
9+
Assign[$x$][1]
10+
}), "This is inside a nested block")
11+
}), "This is a line comment after a block")
12+
})

0 commit comments

Comments
 (0)