Skip to content

Commit 5444064

Browse files
hvitvedCopilot
andcommitted
Unified: Remove non-location unit test
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 262e923 commit 5444064

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

‎unified/extractor/tests/location_tests.rs‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -61,23 +61,6 @@ fn assert_has_empty_span(ast: &Ast, kind: &str, content: Option<&str>, expected_
6161
);
6262
}
6363

64-
#[test]
65-
fn classes_and_structs_without_an_initializer_get_an_implicit_parameterless_initializer() {
66-
let source =
67-
"class A {}\nclass B { init(x: Int) {} }\nstruct S {}\nstruct T { init(x: Int) {} }";
68-
let ast = desugar(source);
69-
70-
let constructors = ast
71-
.reachable_node_ids()
72-
.into_iter()
73-
.filter(|id| {
74-
ast.get_node(*id)
75-
.is_some_and(|node| node.kind_name() == "constructor_declaration")
76-
})
77-
.count();
78-
assert_eq!(constructors, 4);
79-
}
80-
8164
#[test]
8265
fn generic_type_children_have_local_ranges() {
8366
let source = "let x = C<Foo>()";

0 commit comments

Comments
 (0)