tests(gleam): fix assert tests that no longer parse correctly

This commit is contained in:
Christian Clason 2025-05-01 10:37:30 +02:00
parent a83f2d1417
commit 75ee7ff2f0
5 changed files with 11 additions and 10 deletions

View file

@ -1,4 +1,4 @@
pub fn main() {
assert Ok(i) =
assert Ok(i) ==
parse_int("123")
}

View file

@ -26,7 +26,7 @@ describe('indent Java:', function()
run:new_line(
'issue_2583.java',
{ on_line = 3, text = 'int x = 1;', indent = 4 },
'fails because tree is in a broken state',
'broken tree',
XFAIL
)
run:new_line('issue_2583.java', { on_line = 4, text = 'int x = 1;', indent = 4 })

View file

@ -56,13 +56,13 @@ describe('indent Python:', function()
run:new_line(
'join_lines.py',
{ on_line = 1, text = '+ 1 \\', indent = 4 },
'fails due two not working query at python/indent.scm:30',
'expected failure',
XFAIL
)
run:new_line(
'join_lines.py',
{ on_line = 4, text = '+ 1 \\', indent = 4 },
'fails due two not working query at python/indent.scm:30',
'expected failure',
XFAIL
)
run:new_line('join_lines.py', { on_line = 7, text = '+ 1 \\', indent = 4 })

View file

@ -1,13 +1,13 @@
pub fn main() {
assert Ok(i) = parse_int("123")
assert Ok(i) == parse_int("123")
// <- @keyword.exception
// ^^ @constructor
// ^ @punctuation.bracket
// ^ @variable
// ^ @punctuation.bracket
// ^ @operator
// ^^^^^^^^^ @function.call
// ^ @punctuation.bracket
// ^^^^^ @string
// ^ @punctuation.bracket
// ^^^^^^^^^ @function.call
// ^ @punctuation.bracket
// ^^^^^ @string
// ^ @punctuation.bracket
}