Skip to content

Commit 2c226a6

Browse files
committed
fix(test): some errors while resolving conflicts
1 parent fddbcc1 commit 2c226a6

File tree

1 file changed

+5
-22
lines changed
  • compiler-core/src/language_server/tests

1 file changed

+5
-22
lines changed

compiler-core/src/language_server/tests/action.rs

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10715,24 +10715,6 @@ pub fn main() -> Nil {
1071510715
);
1071610716
}
1071710717

10718-
#[test]
10719-
fn annotate_all_top_level_definitions_dont_affect_local_vars() {
10720-
assert_code_action!(
10721-
ANNOTATE_TOP_LEVEL_DEFINITIONS,
10722-
r#"
10723-
pub const answer = 42
10724-
10725-
pub fn add_two(thing) {
10726-
thing + 2
10727-
10728-
pub fn add_one(thing) {
10729-
let result = thing + 1
10730-
result
10731-
}
10732-
"#,
10733-
find_position_of("fn").select_until(find_position_of("("));
10734-
}
10735-
1073610718
#[test]
1073710719
fn annotate_all_top_level_definitions_constant() {
1073810720
assert_code_action!(
@@ -10755,20 +10737,21 @@ pub fn add_one(thing) {
1075510737
#[test]
1075610738
fn annotate_all_top_level_definitions_function() {
1075710739
assert_code_action!(
10758-
ANNOTATE_TOP_LEVEL_TYPE_DEFINITIONS,
10740+
ANNOTATE_TOP_LEVEL_DEFINITIONS,
1075910741
r#"
1076010742
pub fn add_two(thing) {
10761-
thing + 2
10743+
thing + 2
1076210744
}
1076310745
1076410746
pub fn add_one(thing) {
10765-
thing + 1
10747+
thing + 1
1076610748
}
10767-
"#,
10749+
"#,
1076810750
find_position_of("fn").select_until(find_position_of("("))
1076910751
);
1077010752
}
1077110753

10754+
#[test]
1077210755
fn annotate_all_top_level_definitions_already_annotated() {
1077310756
assert_no_code_actions!(
1077410757
ANNOTATE_TOP_LEVEL_DEFINITIONS,

0 commit comments

Comments
 (0)