aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2024-10-03 19:24:17 +0200
committerDanielGavin <danielgavin5@hotmail.com>2024-10-03 19:24:17 +0200
commit28982c543bf43eb3378cc47b7aa33c405f7bc6b2 (patch)
treef1364500555b6fa6b259c9c2d612d6b99731bc17 /tests
parent0c2c02a3ee5018f757b92209add22042e0b1f00a (diff)
Make sure not to return $ for identifiers.
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin24
1 files changed, 19 insertions, 5 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index e116b34..e4b75ee 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -132,11 +132,7 @@ ast_hover_procedure_with_default_comp_lit :: proc(t: ^testing.T) {
`,
}
- test.expect_hover(
- t,
- &source,
- "test.fa: proc(color_: Color = {255, 255, 255, 255})",
- )
+ test.expect_hover(t, &source, "test.fa: proc(color_: Color = {255, 255, 255, 255})")
}
@(test)
@@ -310,6 +306,24 @@ ast_hover_struct_field_selector_completion :: proc(t: ^testing.T) {
}
/*
+Issue in `core:odin/parser` it sets the wrong column and end offset for line 2.
+
+@(test)
+ast_hover_consecutive_non_mutable :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+a :: int
+{*}b :: int
+ `,
+ packages = {},
+ }
+
+ test.expect_hover(t, &source, "test.a: boffol")
+}
+*/
+
+
+/*
TODO: Allow for testing multiple files
*/
// @(test)