fix(lsp): correct line numbers in convert species/template tests
The tests were using line: 2 but the character declarations were on line: 1 (due to the leading newline in the raw string literal). This caused the cursor position to be outside the character span, making the code actions fail to trigger. Fixed by changing line: 2 to line: 1 in both test_convert_species_to_template and test_convert_template_to_species.
This commit is contained in:
@@ -991,25 +991,25 @@ life_arc Human requires { age: Number } {
|
||||
|
||||
Child {
|
||||
when age >= 2 and age < 12
|
||||
can use behaviors: [Play, Learn, Eat, Sleep]
|
||||
can use behaviors: [Cry, Play, Learn, Eat, Sleep]
|
||||
-> Adolescent when age >= 12
|
||||
}
|
||||
|
||||
Adolescent {
|
||||
when age >= 12 and age < 18
|
||||
can use behaviors: [Play, Learn, Socialize, Work]
|
||||
can use behaviors: [Cry, Sleep, Play, Learn, Socialize, Work]
|
||||
-> Adult when age >= 18
|
||||
}
|
||||
|
||||
Adult {
|
||||
when age >= 18 and age < 65
|
||||
can use behaviors: [Work, Socialize, Train, Manage]
|
||||
can use behaviors: [Cry, Sleep, Work, Socialize, Train, Manage]
|
||||
-> Elder when age >= 65
|
||||
}
|
||||
|
||||
Elder {
|
||||
when age >= 65
|
||||
can use behaviors: [Rest, Socialize, Mentor]
|
||||
can use behaviors: [Cry, Sleep, Rest, Socialize, Mentor]
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user