Skip to content

Commit b011094

Browse files
committed
fix(test): some errors while resolving conflicts
1 parent 50c6440 commit b011094

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
@@ -10688,24 +10688,6 @@ pub fn main() -> Nil {
1068810688
);
1068910689
}
1069010690

10691-
#[test]
10692-
fn annotate_all_top_level_definitions_dont_affect_local_vars() {
10693-
assert_code_action!(
10694-
ANNOTATE_TOP_LEVEL_DEFINITIONS,
10695-
r#"
10696-
pub const answer = 42
10697-
10698-
pub fn add_two(thing) {
10699-
thing + 2
10700-
10701-
pub fn add_one(thing) {
10702-
let result = thing + 1
10703-
result
10704-
}
10705-
"#,
10706-
find_position_of("fn").select_until(find_position_of("("));
10707-
}
10708-
1070910691
#[test]
1071010692
fn annotate_all_top_level_definitions_constant() {
1071110693
assert_code_action!(
@@ -10728,20 +10710,21 @@ pub fn add_one(thing) {
1072810710
#[test]
1072910711
fn annotate_all_top_level_definitions_function() {
1073010712
assert_code_action!(
10731-
ANNOTATE_TOP_LEVEL_TYPE_DEFINITIONS,
10713+
ANNOTATE_TOP_LEVEL_DEFINITIONS,
1073210714
r#"
1073310715
pub fn add_two(thing) {
10734-
thing + 2
10716+
thing + 2
1073510717
}
1073610718
1073710719
pub fn add_one(thing) {
10738-
thing + 1
10720+
thing + 1
1073910721
}
10740-
"#,
10722+
"#,
1074110723
find_position_of("fn").select_until(find_position_of("("))
1074210724
);
1074310725
}
1074410726

10727+
#[test]
1074510728
fn annotate_all_top_level_definitions_already_annotated() {
1074610729
assert_no_code_actions!(
1074710730
ANNOTATE_TOP_LEVEL_DEFINITIONS,

0 commit comments

Comments
 (0)