Skip to content

Commit

Permalink
update testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Nov 22, 2023
1 parent d335203 commit 25a0f62
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 6 deletions.
37 changes: 36 additions & 1 deletion cmd/tools/vdoc/tests/testdata/multiline/main.comments.out
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,40 @@ fn a1()
fn a2()
this should be merged into the same line
fn a3()
This should be its own parapgraph, because it ends with a dot.
This should be its own parapgraph.

This should be another paragraph.
fn a4()
This should be merged into one parapgraph.

Note: this should be it's own paragraph.
fn a5()
This should be its own parapgraph.

Note: this should also be it own paragraph

Note: this should be it's own paragraph.
fn a6()
A comment

Fixme: this should be it's own paragraph.

Fixme: this should be it's own paragraph.

Fixme: this should be it's own paragraph.
fn a7()
A comment

Todo: this should be it's own paragraph.

Todo: this should be it's own paragraph.

Todo: this should be it's own paragraph.
fn a8()
A comment

Todo: this should be it's own paragraph.

Note: this should be it's own paragraph.

Fixme: this should be it's own paragraph.
5 changes: 5 additions & 0 deletions cmd/tools/vdoc/tests/testdata/multiline/main.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ module main
fn a1()
fn a2()
fn a3()
fn a4()
fn a5()
fn a6()
fn a7()
fn a8()
41 changes: 40 additions & 1 deletion cmd/tools/vdoc/tests/testdata/multiline/main.v
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,47 @@ pub fn a2() {
println('hi')
}

// This should be its own parapgraph, because it ends with a dot.
// This should be its own parapgraph.
//
// This should be another paragraph.
pub fn a3() {
println('hi')
}

// This should be merged
// into one parapgraph.
// Note: this should be it's own paragraph.
pub fn a4() {
println('hi')
}

// This should be its own parapgraph.
// NOTE: this should also be it own paragraph
// note: this should be it's own paragraph.
pub fn a5() {
println('hi')
}

// A comment
// Fixme: this should be it's own paragraph.
// fixme: this should be it's own paragraph.
// FIXME: this should be it's own paragraph.
pub fn a6() {
println('hi')
}

// A comment
// TODO: this should be it's own paragraph.
// todo: this should be it's own paragraph.
// Todo: this should be it's own paragraph.
pub fn a7() {
println('hi')
}

// A comment
// TODO: this should be it's own paragraph.
// NOTE: this should be it's own paragraph.
// FIXME: this should be it's own paragraph.
pub fn a8() {
println('hi')
}
3 changes: 1 addition & 2 deletions cmd/tools/vdoc/tests/testdata/newlines/main.comments.out
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ module main
fn funky()
hello

empty line
newline using a full stop.
line after empty line, newline after commentline.
```v
code
```
Expand Down
4 changes: 2 additions & 2 deletions cmd/tools/vdoc/tests/testdata/newlines/main.v
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// hello
//
// empty line
// newline using a full stop.
// line after empty line,
// newline after commentline.
// ```v
// code
// ```
Expand Down

0 comments on commit 25a0f62

Please sign in to comment.