aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.odin
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2024-06-08 18:26:34 +0200
committerDanielGavin <danielgavin5@hotmail.com>2024-06-08 18:26:34 +0200
commit42fefebdd512958b41948abefb2d52c1b4682aff (patch)
tree5ceb18e546f427730fb43d0b1602a3292e329a0b /src/testing/testing.odin
parentd02d49f894b9c0a611b49a9b3e29932ad1870c46 (diff)
Fix issues with selector call expression confusing whether to selector complete or identifier
Diffstat (limited to 'src/testing/testing.odin')
-rw-r--r--src/testing/testing.odin9
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)
}
}