diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/completions_test.odin | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/completions_test.odin b/tests/completions_test.odin index f9e93da..5fda923 100644 --- a/tests/completions_test.odin +++ b/tests/completions_test.odin @@ -1349,6 +1349,26 @@ ast_new_completion :: proc(t: ^testing.T) { } @(test) +ast_new_clone_completion :: proc(t: ^testing.T) { + source := test.Source { + main = `package main + new_clone :: proc(data: $T) -> (^T, Allocator_Error) #optional_second { + } + + Foo :: struct {} + + main :: proc() { + adzz := new_clone(Foo{}); + adzz* + } + + `, + }; + + test.expect_completion_details(t, &source, "", {"test.adzz: Foo"}); +} + +@(test) ast_rawtr_cast_completion :: proc(t: ^testing.T) { source := test.Source { main = `package main |