aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Gavin <danielgavin5@hotmail.com>2021-04-28 00:28:21 +0200
committerDaniel Gavin <danielgavin5@hotmail.com>2021-04-28 00:28:21 +0200
commit4a7b6a78eb3f3cdec003dfd6d0495c313eb4d925 (patch)
tree6c789aefa4a0983c328efe7cf341b19e6a172dbe /tests
parentfc742ab3b8fde5a70fa314c5ed2a1c94e503e877 (diff)
more work on the new symbols
Diffstat (limited to 'tests')
-rw-r--r--tests/completions_test.odin22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/completions_test.odin b/tests/completions_test.odin
index 987f43f..2b0abe3 100644
--- a/tests/completions_test.odin
+++ b/tests/completions_test.odin
@@ -169,6 +169,28 @@ ast_range_array :: proc(t: ^testing.T) {
test.expect_completion_details(t, &source, ".", {"My_Struct.one: int", "My_Struct.two: int", "My_Struct.three: int"});
}
+@(test)
+index_completion_in_comp_lit_type :: proc(t: ^testing.T) {
+
+ source := test.Source {
+ main = `package test
+
+ My_Struct :: struct {
+ one: int,
+ two: int,
+ three: int,
+ }
+
+ main :: proc() {
+ my_comp := M* {
+ };
+ }
+ `,
+ source_packages = {},
+ };
+
+ //test.expect_completion_details(t, &source, "", {"My_Struct: struct"});
+}