aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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",
)
}