Skip to content

Commit 50253e4

Browse files
committed
updated the usage of the std.builtin.Type enum
1 parent 23d1998 commit 50253e4

2 files changed

Lines changed: 194 additions & 189 deletions

File tree

build.zig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ pub fn build(b: *std.Build) void {
2424
const check_step = b.step("check", "check if the code compiles");
2525
check_step.dependOn(&check.step);
2626

27+
const lib_unit_tests = b.addTest(.{
28+
.root_source_file = b.path("fluent.zig"),
29+
.target = target,
30+
.optimize = optimize,
31+
});
32+
33+
const run_lib_unit_tests = b.addRunArtifact(lib_unit_tests);
34+
const test_step = b.step("test", "Run unit tests");
35+
test_step.dependOn(&run_lib_unit_tests.step);
36+
2737
_ = b.addModule("Fluent", .{
2838
.root_source_file = b.path("fluent.zig"),
2939
.target = target,

0 commit comments

Comments
 (0)