Skip to content

Commit

Permalink
test: remove redundant info from parser snap tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nfejzic committed Oct 13, 2024
1 parent c202884 commit ed9755a
Show file tree
Hide file tree
Showing 18 changed files with 1 addition and 41 deletions.
2 changes: 1 addition & 1 deletion frontend/tests/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fn run_snap_test(case: test_runner::test_file::TestCase) {
agg
});

format!("{input_str}\n{block_snaps}")
format!("{block_snaps}")
})
.with_info(format!(
"Test '{}' from '{}'",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'multi-line-level-1' from 'markup/block/heading.yml'"
---
# This is a heading
in two lines.

Heading(level-1) @ (1 -> 36) {
This is a heading
in two lines.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'multi-line-level-6' from 'markup/block/heading.yml'"
---
###### This is a heading
in multiple lines.

Heading(level-6) @ (6 -> 51) {
This is a heading
in multiple lines.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'single-line-level-1' from 'markup/block/heading.yml'"
---
# This is a simple heading.

Heading(level-1) @ (1 -> 28) {
This is a simple heading.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'single-line-level-6' from 'markup/block/heading.yml'"
---
###### This is a heading.

Heading(level-6) @ (6 -> 26) {
This is a heading.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'multi-line' from 'markup/block/paragraph.yml'"
---
This is a paragraph
that spans multiple
lines.

Paragraph @ (0 -> 47) {
This is a paragraph
that spans multiple
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'single-line' from 'markup/block/paragraph.yml'"
---
This is a simple paragraph.

Paragraph @ (0 -> 28) {
This is a simple paragraph.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'two-paragraphs' from 'markup/block/paragraph.yml'"
---
This is the first paragraph.

And this should be the second one.

Paragraph @ (0 -> 29) {
This is the first paragraph.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'ambiguous-close' from 'markup/bold.yml'"
---
**bold *+italic*** plain

Paragraph @ (0 -> 25) {
**bold *+italic*** plain
}
Expand Down
2 changes: 0 additions & 2 deletions frontend/tests/spec/snapshots/parser/bold/ambiguous-end.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'ambiguous-end' from 'markup/bold.yml'"
---
The next **word*** is bold.

Paragraph @ (0 -> 28) {
The next **word*** is bold.
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'ambiguous-start' from 'markup/bold.yml'"
---
The next ***word** is bolditalic.

Paragraph @ (0 -> 34) {
The next ***word** is bolditalic.
}
Expand Down
2 changes: 0 additions & 2 deletions frontend/tests/spec/snapshots/parser/bold/bold-in-middle.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'bold-in-middle' from 'markup/bold.yml'"
---
The next **word** is bold.

Paragraph @ (0 -> 27) {
The next **word** is bold.
}
Expand Down
2 changes: 0 additions & 2 deletions frontend/tests/spec/snapshots/parser/bold/bold-not-bold.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'bold-not-bold' from 'markup/bold.yml'"
---
**Bold** not bold.

Paragraph @ (0 -> 19) {
**Bold** not bold.
}
Expand Down
2 changes: 0 additions & 2 deletions frontend/tests/spec/snapshots/parser/bold/escaped-bold.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'escaped-bold' from 'markup/bold.yml'"
---
\*\*not bold\*\*

Paragraph @ (0 -> 17) {
\*\*not bold\*\*
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'implicit-closed-bold' from 'markup/bold.yml'"
---
**implicit bold **close

Paragraph @ (0 -> 24) {
**implicit bold **close
}
Expand Down
2 changes: 0 additions & 2 deletions frontend/tests/spec/snapshots/parser/bold/not-bold.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'not-bold' from 'markup/bold.yml'"
---
** not bold **

Paragraph @ (0 -> 15) {
** not bold **
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'not-opened-bold' from 'markup/bold.yml'"
---
** not bold**

Paragraph @ (0 -> 14) {
** not bold**
}
Expand Down
2 changes: 0 additions & 2 deletions frontend/tests/spec/snapshots/parser/bold/simple-bold.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
source: frontend/tests/parser/mod.rs
info: "Test 'simple-bold' from 'markup/bold.yml'"
---
**Bold**

Paragraph @ (0 -> 9) {
**Bold**
}
Expand Down

0 comments on commit ed9755a

Please sign in to comment.