Skip to content

Commit 6349ede

Browse files
committed
fix: use bare identifier for package name (Zig 0.15+ compat)
1 parent 3eb11b4 commit 6349ede

12 files changed

Lines changed: 18 additions & 18 deletions

build.zig

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub fn build(b: *std.Build) void {
55
const optimize = b.standardOptimizeOption(.{});
66

77
// Create the main library module
8-
const lib_module = b.addModule("zig-test-framework", .{
8+
const lib_module = b.addModule("zig_test_framework", .{
99
.root_source_file = b.path("src/lib.zig"),
1010
.target = target,
1111
.link_libc = true,
@@ -94,7 +94,7 @@ pub fn build(b: *std.Build) void {
9494
.optimize = optimize,
9595
.link_libc = true,
9696
.imports = &.{
97-
.{ .name = "zig-test-framework", .module = lib_module },
97+
.{ .name = "zig_test_framework", .module = lib_module },
9898
},
9999
}),
100100
});
@@ -156,7 +156,7 @@ pub fn build(b: *std.Build) void {
156156
.optimize = optimize,
157157
.link_libc = true,
158158
.imports = &.{
159-
.{ .name = "zig-test-framework", .module = lib_module },
159+
.{ .name = "zig_test_framework", .module = lib_module },
160160
},
161161
}),
162162
});
@@ -174,7 +174,7 @@ pub fn build(b: *std.Build) void {
174174
.optimize = optimize,
175175
.link_libc = true,
176176
.imports = &.{
177-
.{ .name = "zig-test-framework", .module = lib_module },
177+
.{ .name = "zig_test_framework", .module = lib_module },
178178
},
179179
}),
180180
});
@@ -192,7 +192,7 @@ pub fn build(b: *std.Build) void {
192192
.optimize = optimize,
193193
.link_libc = true,
194194
.imports = &.{
195-
.{ .name = "zig-test-framework", .module = lib_module },
195+
.{ .name = "zig_test_framework", .module = lib_module },
196196
},
197197
}),
198198
});
@@ -223,7 +223,7 @@ pub fn build(b: *std.Build) void {
223223
.optimize = optimize,
224224
.link_libc = true,
225225
.imports = &.{
226-
.{ .name = "zig-test-framework", .module = lib_module },
226+
.{ .name = "zig_test_framework", .module = lib_module },
227227
},
228228
}),
229229
});
@@ -236,7 +236,7 @@ pub fn build(b: *std.Build) void {
236236
.optimize = optimize,
237237
.link_libc = true,
238238
.imports = &.{
239-
.{ .name = "zig-test-framework", .module = lib_module },
239+
.{ .name = "zig_test_framework", .module = lib_module },
240240
},
241241
}),
242242
});

build.zig.zon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.{
22
.fingerprint = 0x26d5202ff2b5e864,
3-
.name = .@"zig-test-framework",
3+
.name = .zig_test_framework,
44
.version = "0.1.1",
55
.paths = .{
66
"build.zig",

examples/advanced_test.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const ztf = @import("zig-test-framework");
2+
const ztf = @import("zig_test_framework");
33

44
pub fn main() !void {
55
var gpa = std.heap.GeneralPurposeAllocator(.{}){};

examples/async_tests.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const zig_test = @import("zig-test");
2+
const zig_test = @import("zig_test");
33

44
/// Example: Basic async test
55
pub fn example_basic_async_test() !void {

examples/basic_test.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const ztf = @import("zig-test-framework");
2+
const ztf = @import("zig_test_framework");
33

44
pub fn main() !void {
55
var gpa = std.heap.GeneralPurposeAllocator(.{}){};

examples/progress_examples.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const zig_test = @import("zig-test");
2+
const zig_test = @import("zig_test");
33

44
/// Example 1: Basic Spinner
55
pub fn example_basic_spinner() !void {

examples/snapshot_examples.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const zig_test = @import("zig-test");
2+
const zig_test = @import("zig_test");
33

44
/// Example 1: Basic String Snapshot
55
pub fn example_basic_string_snapshot() !void {

examples/timeout_examples.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const zig_test = @import("zig-test");
2+
const zig_test = @import("zig_test");
33

44
/// Example 1: Basic per-test timeout
55
pub fn example_per_test_timeout() !void {

tests/comprehensive_mock_test.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const ztf = @import("zig-test-framework");
2+
const ztf = @import("zig_test_framework");
33

44
pub fn main() !void {
55
var gpa = std.heap.GeneralPurposeAllocator(.{}){};

tests/hooks_test.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const std = @import("std");
2-
const ztf = @import("zig-test-framework");
2+
const ztf = @import("zig_test_framework");
33

44
// Global state to track hook execution
55
var hook_execution_log: std.ArrayList([]const u8) = undefined;

0 commit comments

Comments
 (0)