diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/completions_test.odin | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/tests/completions_test.odin b/tests/completions_test.odin index 9933584..c7b0445 100644 --- a/tests/completions_test.odin +++ b/tests/completions_test.odin @@ -1288,34 +1288,19 @@ ast_index_proc_parameter_completion :: proc(t: ^testing.T) { } @(test) -ast_implicit_completion_in_comp_lit :: proc(t: ^testing.T) { +ast_implicit_completion_in_enum_array_comp_lit :: proc(t: ^testing.T) { source := test.Source { main = `package main main :: proc() { foo :: enum{ one, two } bar := [foo]int{ .one = 1, - .*two = 2, // When adding the '.' here + .*two = 2, } } `, }; - test.expect_completion_details(t, &source, ".", {"Not implemented - waiting for test system to work again"}); -} - - - - -/* - Should be the same, but just check after fixing this: - E :: enum { - A, - B, - C, - } - - x := [E]int { - .B = 1, - } -*/
\ No newline at end of file + //TODO(Add proper completion support, but right now it's just to ensure no crashes) + test.expect_completion_details(t, &source, ".", {}); +}
\ No newline at end of file |