From 42fefebdd512958b41948abefb2d52c1b4682aff Mon Sep 17 00:00:00 2001 From: DanielGavin Date: Sat, 8 Jun 2024 18:26:34 +0200 Subject: Fix issues with selector call expression confusing whether to selector complete or identifier --- src/testing/testing.odin | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/testing/testing.odin') 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) } } -- cgit v1.2.3