aboutsummaryrefslogtreecommitdiff
path: root/lib/std/SemanticVersion.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/SemanticVersion.zig')
-rw-r--r--lib/std/SemanticVersion.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/SemanticVersion.zig b/lib/std/SemanticVersion.zig
index 6078661bd6..bde3e906d8 100644
--- a/lib/std/SemanticVersion.zig
+++ b/lib/std/SemanticVersion.zig
@@ -166,7 +166,7 @@ pub fn format(
const expect = std.testing.expect;
const expectError = std.testing.expectError;
-test "SemanticVersion format" {
+test format {
// Many of these test strings are from https://github.com/semver/semver.org/issues/59#issuecomment-390854010.
// Valid version strings should be accepted.
@@ -277,7 +277,7 @@ test "SemanticVersion format" {
if (parse(big_invalid)) |ver| std.debug.panic("expected error, found {}", .{ver}) else |_| {}
}
-test "SemanticVersion precedence" {
+test "precedence" {
// SemVer 2 spec 11.2 example: 1.0.0 < 2.0.0 < 2.1.0 < 2.1.1.
try expect(order(try parse("1.0.0"), try parse("2.0.0")) == .lt);
try expect(order(try parse("2.0.0"), try parse("2.1.0")) == .lt);