aboutsummaryrefslogtreecommitdiff
path: root/tests/completions_test.odin
diff options
context:
space:
mode:
Diffstat (limited to 'tests/completions_test.odin')
-rw-r--r--tests/completions_test.odin25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/completions_test.odin b/tests/completions_test.odin
index 6e1eba6..033813b 100644
--- a/tests/completions_test.odin
+++ b/tests/completions_test.odin
@@ -5233,7 +5233,32 @@ ast_completion_proc_arg_default_enum_alias :: proc(t: ^testing.T) {
main :: proc() {
foo(.{*})
}
+ `,
+ }
+ test.expect_completion_docs(t, &source, "", {"A", "B"})
+}
+
+@(test)
+ast_completion_proc_group_bitset :: proc(t: ^testing.T) {
+ source := test.Source {
+ main = `package test
+ Foo :: enum {
+ A,
+ B,
+ }
+
+ Foos :: bit_set[Foo]
+ foo_one :: proc(i: int, foos: Foos) {}
+ foo_two :: proc(s: string, foos: Foos) {}
+ foo :: proc {
+ foo_one,
+ foo_two,
+ }
+
+ main :: proc() {
+ foo(1, {.{*}})
+ }
`,
}
test.expect_completion_docs(t, &source, "", {"A", "B"})