diff options
| author | DanielGavin <danielgavin5@hotmail.com> | 2023-05-18 18:10:11 +0200 |
|---|---|---|
| committer | DanielGavin <danielgavin5@hotmail.com> | 2023-05-18 18:10:11 +0200 |
| commit | adfb252f6a0283a565fc5cd801baa1b8c7161d3d (patch) | |
| tree | 7c4808d78c459fcd8089c555f1e7b3f32cb9b330 /src/testing/testing.odin | |
| parent | 2b0dccaa496fd809e36e7d979995e843bca28bfb (diff) | |
Add support for gotos on comp literal fields
Diffstat (limited to 'src/testing/testing.odin')
| -rw-r--r-- | src/testing/testing.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/testing.odin b/src/testing/testing.odin index 0d97870..2e020e1 100644 --- a/src/testing/testing.odin +++ b/src/testing/testing.odin @@ -366,7 +366,7 @@ expect_definition_locations :: proc( for expect_location, i in expect_locations { for location, j in locations { - if location == expect_location { + if location.range == expect_location.range { flags[i] += 1 } } @@ -377,7 +377,7 @@ expect_definition_locations :: proc( testing.errorf( t, "Expected location %v, but received %v", - expect_locations[i], + expect_locations[i].range, locations, ) } |