aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2024-07-29 12:57:25 +0200
committerGitHub <noreply@github.com>2024-07-29 12:57:25 +0200
commit9a33cc2fbe7e2dbc82a281af60f56e8232fe03d5 (patch)
tree87671e8933453d586e151c610a3e316ac0f2e7c0 /tests
parent03dfdacae8ef216d36bffe933ba7e6d0d2be6431 (diff)
parent75add788487b2a4a1b5069484b97818142555ed0 (diff)
Merge pull request #452 from thetarnav/correct-collecting-array-symbols
Correct collecting symbols for array types
Diffstat (limited to 'tests')
-rw-r--r--tests/hover_test.odin23
-rw-r--r--tests/objc_test.odin2
2 files changed, 23 insertions, 2 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin
index dcf3a57..f74f02a 100644
--- a/tests/hover_test.odin
+++ b/tests/hover_test.odin
@@ -53,7 +53,7 @@ ast_hover_parameter :: proc(t: ^testing.T) {
packages = {},
}
- test.expect_hover(t, &source, "cool: int")
+ test.expect_hover(t, &source, "test.cool: int")
}
@(test)
@@ -223,3 +223,24 @@ ast_hover_struct_field_selector_completion :: proc(t: ^testing.T) {
test.expect_hover(t, &source, "my_package.My_Struct: struct")
}
+
+/*
+TODO: Allow for testing multiple files
+*/
+// @(test)
+// ast_hover_array_type_multiple_files_hover :: proc(t: ^testing.T) {
+// source := test.Source {
+// main = \
+// `package test
+
+// Vec :: [2]f32
+// `,
+// another_file = \
+// `package test
+
+// v: Ve{*}c
+// `
+// }
+
+// test.expect_hover(t, &source, "test.Vec: [2]f32")
+// }
diff --git a/tests/objc_test.odin b/tests/objc_test.odin
index 9c69afb..915a3b1 100644
--- a/tests/objc_test.odin
+++ b/tests/objc_test.odin
@@ -141,7 +141,7 @@ objc_hover_chained_selector :: proc(t: ^testing.T) {
test.expect_hover(
t,
&source,
- "Window.initWithContentRect: proc(self: ^Window, contentRect: Rect, styleMask: WindowStyleMask, backing: BackingStoreType, doDefer: BOOL)",
+ "Window.initWithContentRect: proc(self: ^Window, contentRect: Rect, styleMask: WindowStyleMask, backing: BackingStoreType, doDefer: BOOL) -> ^Window",
)
}