mirror of https://github.com/zkat/miette.git
The commite5c7ae4seemed to (potentially erronously?) remove a number of spaces following the left `|` bar of some graphical report handler tests. That change had no effect on the `syntax_highlighter_on_real_file()` test, presumably because the trailing whitespace is removed by `strip_ansi_escapes::strip_str()`, but it did break the `triple_adjacent_highlight()` and `non_adjacent_hightlight()` tests. Restoring the spaces removed ine5c7ae4fixes the failing tests on main. * fix(ci): move from minimal-versions to direct-minimal-versions
This commit is contained in:
parent
ecb01022f0
commit
6e829f8c0c
|
|
@ -79,4 +79,4 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
- name: Run minimal version build
|
- name: Run minimal version build
|
||||||
run: cargo build -Z minimal-versions --features fancy,no-format-args-capture
|
run: cargo build -Z direct-minimal-versions --features fancy,no-format-args-capture
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ futures = { version = "0.3", default-features = false }
|
||||||
indenter = "0.3.3"
|
indenter = "0.3.3"
|
||||||
rustversion = "1.0"
|
rustversion = "1.0"
|
||||||
trybuild = { version = "1.0.89", features = ["diff"] }
|
trybuild = { version = "1.0.89", features = ["diff"] }
|
||||||
syn = { version = "2.0", features = ["full"] }
|
syn = { version = "2.0.48", features = ["full"] }
|
||||||
regex = "1.10"
|
regex = "1.10"
|
||||||
lazy_static = "1.4"
|
lazy_static = "1.4"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -12,5 +12,5 @@ proc-macro = true
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
proc-macro2 = "1.0.78"
|
proc-macro2 = "1.0.78"
|
||||||
quote = "1.0"
|
quote = "1.0.35"
|
||||||
syn = "2.0.48"
|
syn = "2.0.48"
|
||||||
|
|
|
||||||
|
|
@ -1864,11 +1864,11 @@ fn syntax_highlighter_on_real_file() {
|
||||||
let expected = format!(
|
let expected = format!(
|
||||||
r#" × This is an error
|
r#" × This is an error
|
||||||
╭─[{filename}:{l2}:{CO}]
|
╭─[{filename}:{l2}:{CO}]
|
||||||
{l1} │
|
{l1} │
|
||||||
{l2} │ let (filename, line) = (file!(), line!() as usize);
|
{l2} │ let (filename, line) = (file!(), line!() as usize);
|
||||||
· ─────────────┬─────────────
|
· ─────────────┬─────────────
|
||||||
· ╰── this is a label
|
· ╰── this is a label
|
||||||
{l3} │
|
{l3} │
|
||||||
╰────
|
╰────
|
||||||
"#,
|
"#,
|
||||||
l1 = line - 1,
|
l1 = line - 1,
|
||||||
|
|
@ -1911,13 +1911,13 @@ fn triple_adjacent_highlight() -> Result<(), MietteError> {
|
||||||
1 │ source
|
1 │ source
|
||||||
· ───┬──
|
· ───┬──
|
||||||
· ╰── this bit here
|
· ╰── this bit here
|
||||||
2 │
|
2 │
|
||||||
3 │
|
3 │
|
||||||
4 │ text
|
4 │ text
|
||||||
· ──┬─
|
· ──┬─
|
||||||
· ╰── also this bit
|
· ╰── also this bit
|
||||||
5 │
|
5 │
|
||||||
6 │
|
6 │
|
||||||
7 │ here
|
7 │ here
|
||||||
· ──┬─
|
· ──┬─
|
||||||
· ╰── finally we got
|
· ╰── finally we got
|
||||||
|
|
@ -1957,10 +1957,10 @@ fn non_adjacent_highlight() -> Result<(), MietteError> {
|
||||||
1 │ source
|
1 │ source
|
||||||
· ───┬──
|
· ───┬──
|
||||||
· ╰── this bit here
|
· ╰── this bit here
|
||||||
2 │
|
2 │
|
||||||
╰────
|
╰────
|
||||||
╭─[bad_file.rs:5:3]
|
╭─[bad_file.rs:5:3]
|
||||||
4 │
|
4 │
|
||||||
5 │ text here
|
5 │ text here
|
||||||
· ──┬─
|
· ──┬─
|
||||||
· ╰── also this bit
|
· ╰── also this bit
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue