Compare commits

..

No commits in common. "8ab80f07b860b875a1dbd66b0a6f3ecb5b421163" and "90f503f7c0d7c479ee93c1364259d10e344c5312" have entirely different histories.

3 changed files with 2 additions and 3 deletions

2
.vscode/launch.json vendored
View File

@ -23,7 +23,7 @@
"name": "Test", "name": "Test",
"type": "gdb", "type": "gdb",
"request": "launch", "request": "launch",
"target": "${workspaceFolder}/zig-cache/o/acfc38b60cc59a70f8386ac73748d92a/test", "target": "${workspaceFolder}/zig-cache/o/2c2b6e0f85a1dcd7caa00765b05ec679/test",
"arguments": "main.zig", "arguments": "main.zig",
"cwd": "${workspaceRoot}", "cwd": "${workspaceRoot}",
"valuesFormatting": "parseText", "valuesFormatting": "parseText",

View File

@ -39,7 +39,6 @@ pub fn build(builder: *std.build.Builder) void {
tests.addPackage(core_pkg); tests.addPackage(core_pkg);
tests.setTarget(target); tests.setTarget(target);
tests.setBuildMode(mode); tests.setBuildMode(mode);
tests.install();
builder.step("test", "Run unit tests").dependOn(&tests.step); builder.step("test", "Run unit tests").dependOn(&tests.step);
} }
} }

View File

@ -155,7 +155,7 @@ test "Path" {
const joined_component_path = try Path.joined(&.{"path", "to/my", "/file"}); const joined_component_path = try Path.joined(&.{"path", "to/my", "/file"});
const joined_normalized_path = try Path.joined(&.{"path/to/my/file"}); const joined_normalized_path = try Path.joined(&.{"path/to/my/file"});
try testing.expectEqual(joined_component_path.length, joined_normalized_path.length); try testing.expectEqual(empty_path.length, joined_normalized_path.length);
try testing.expect(joined_component_path.equals(joined_normalized_path)); try testing.expect(joined_component_path.equals(joined_normalized_path));
} }