diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-29 00:08:24 -0400 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-10-29 00:08:24 -0400 |
| commit | 0f0d35c0b52ea666fc2adae7ecbcf0d013152ec7 (patch) | |
| tree | 66df59b63754265076ebffa9bc42547f2acfff62 /tests | |
| parent | e8b2b18f24973c4bde9e235cb083043a896fb705 (diff) | |
Display hover information for untyped complex numbers and quaternions correctly
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index bd7abe6..c3d6729 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -1,6 +1,5 @@ package tests -import "core:fmt" import "core:testing" import test "src:testing" @@ -5322,6 +5321,32 @@ ast_hover_proc_arg_generic_bit_set :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.foo :: proc($T: typeid/bit_set[$F; $E])") } + +@(test) +ast_hover_complex_number_literal :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + main :: proc() { + f{*}oo := 1 + 1i + } + + `, + } + test.expect_hover(t, &source, "test.foo: complex") +} + +@(test) +ast_hover_quaternion_literal :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + main :: proc() { + f{*}oo := 1 + 2i + 3j + 4k + } + + `, + } + test.expect_hover(t, &source, "test.foo: quaternion") +} /* Waiting for odin fix |