diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-03-04 12:17:00 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-03-04 12:17:00 +0100 |
| commit | 58287455d64ab16091522bf8a358b079ef05daad (patch) | |
| tree | 7b6655d6d34b5ad6d719523e4938b8002c43d8ab /tests | |
| parent | 63d0bd412a8817445d6dc18e79d5d54c94caf401 (diff) | |
strip colons and update ast to use unions
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 |