| ... | @@ -588,14 +588,7 @@ test parse { | ... | @@ -588,14 +588,7 @@ test parse { |
| 588 | const text = try query.zigTriple(std.testing.allocator); | 588 | const text = try query.zigTriple(std.testing.allocator); |
| 589 | defer std.testing.allocator.free(text); | 589 | defer std.testing.allocator.free(text); |
| 590 | | 590 | |
| 591 | var buf: [256]u8 = undefined; | 591 | try std.testing.expectEqualSlices(u8, "native-native-gnu.2.1.1", text); |
| 592 | const triple = std.fmt.bufPrint( | | |
| 593 | buf[0..], | | |
| 594 | "native-native-{s}.2.1.1", | | |
| 595 | .{@tagName(builtin.target.abi)}, | | |
| 596 | ) catch unreachable; | | |
| 597 | | | |
| 598 | try std.testing.expectEqualSlices(u8, triple, text); | | |
| 599 | } | 592 | } |
| 600 | { | 593 | { |
| 601 | const query = try Query.parse(.{ | 594 | const query = try Query.parse(.{ |