diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2024-06-08 18:26:34 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2024-06-08 18:26:34 +0200 |
| commit | 42fefebdd512958b41948abefb2d52c1b4682aff (patch) | |
| tree | 5ceb18e546f427730fb43d0b1602a3292e329a0b /src/testing | |
| parent | d02d49f894b9c0a611b49a9b3e29932ad1870c46 (diff) | |
Fix issues with selector call expression confusing whether to selector complete or identifier
Diffstat (limited to 'src/testing')
| -rw-r--r-- | src/testing/testing.odin | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/testing/testing.odin b/src/testing/testing.odin index 22440cd..e499db5 100644 --- a/src/testing/testing.odin +++ b/src/testing/testing.odin @@ -387,12 +387,13 @@ expect_definition_locations :: proc( expect_symbol_location :: proc( t: ^testing.T, src: ^Source, + flag: server.ResolveReferenceFlag, expect_locations: []common.Location, ) { setup(src) defer teardown(src) - symbol_and_nodes := server.resolve_entire_file(src.document, .None) + symbol_and_nodes := server.resolve_entire_file(src.document, flag) ok := true @@ -405,14 +406,14 @@ expect_symbol_location :: proc( } if !match { ok = false - testing.errorf(t, "Failed to match with location: %v", location) + log.errorf("Failed to match with location: %v", location) } } if !ok { - testing.error(t, "Received:") + log.error("Received:") for k, v in symbol_and_nodes { - testing.errorf(t, "%v \n", v.symbol) + log.errorf("%v \n", v.symbol) } } |