Skip to content

Commit

Permalink
fix: pretty print and textobject tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromfedricci committed Apr 12, 2024
1 parent d44b532 commit 12835d6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions helix-core/src/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2765,10 +2765,10 @@ mod test {
)
};

test("quantified_nodes", 1..36);
test("quantified_nodes", 1..37);
// NOTE: Enable after implementing proper node group capturing
// test("quantified_nodes_grouped", 1..36);
// test("multiple_nodes_grouped", 1..36);
// test("quantified_nodes_grouped", 1..37);
// test("multiple_nodes_grouped", 1..37);
}

#[test]
Expand Down Expand Up @@ -2939,7 +2939,7 @@ mod test {

#[test]
fn test_pretty_print() {
let source = r#"/// Hello"#;
let source = r#"// Hello"#;
assert_pretty_print("rust", source, "(line_comment)", 0, source.len());

// A large tree should be indented with fields:
Expand All @@ -2958,7 +2958,8 @@ mod test {
" (macro_invocation\n",
" macro: (identifier)\n",
" (token_tree\n",
" (string_literal))))))",
" (string_literal\n",
" (string_content)))))))",
),
0,
source.len(),
Expand Down

0 comments on commit 12835d6

Please sign in to comment.