diff options
Diffstat (limited to '')
| -rw-r--r-- | query.zig | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -169,7 +169,7 @@ test "parsed query: query" { | |||
| 169 | 169 | ||
| 170 | inline for (testCases) |tc| { | 170 | inline for (testCases) |tc| { |
| 171 | comptime var parsed_query = ParsedQuery.from(tc.query); | 171 | comptime var parsed_query = ParsedQuery.from(tc.query); |
| 172 | testing.expectEqualStrings(tc.expected_query, parsed_query.getQuery()); | 172 | try testing.expectEqualStrings(tc.expected_query, parsed_query.getQuery()); |
| 173 | } | 173 | } |
| 174 | } | 174 | } |
| 175 | 175 | ||
| @@ -201,12 +201,12 @@ test "parsed query: bind markers types" { | |||
| 201 | inline for (testCases) |tc| { | 201 | inline for (testCases) |tc| { |
| 202 | comptime var parsed_query = ParsedQuery.from(tc.query); | 202 | comptime var parsed_query = ParsedQuery.from(tc.query); |
| 203 | 203 | ||
| 204 | testing.expectEqual(1, parsed_query.nb_bind_markers); | 204 | try testing.expectEqual(1, parsed_query.nb_bind_markers); |
| 205 | 205 | ||
| 206 | const bind_marker = parsed_query.bind_markers[0]; | 206 | const bind_marker = parsed_query.bind_markers[0]; |
| 207 | switch (tc.expected_marker) { | 207 | switch (tc.expected_marker) { |
| 208 | .Typed => |typ| testing.expectEqual(typ, bind_marker.Typed), | 208 | .Typed => |typ| try testing.expectEqual(typ, bind_marker.Typed), |
| 209 | .Untyped => |typ| testing.expectEqual(typ, bind_marker.Untyped), | 209 | .Untyped => |typ| try testing.expectEqual(typ, bind_marker.Untyped), |
| 210 | } | 210 | } |
| 211 | } | 211 | } |
| 212 | } | 212 | } |