From 3c531d4bbc754cc1dac6a050b30c3851eb7a2223 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Thu, 11 Jul 2024 22:07:03 -0500 Subject: chore(everything): Changed up some small stuff, comments and the like. totally not me forgetting what i put in this commit noooo... --- build.zig | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'build.zig') diff --git a/build.zig b/build.zig index 052d68b..5627e43 100644 --- a/build.zig +++ b/build.zig @@ -31,8 +31,16 @@ pub fn build(b: *std.Build) void { .optimize = optimize, }); + const token_unit_tests = b.addTest(.{ + .root_source_file = b.path("src/tokenize.zig"), + .target = target, + .optimize = optimize, + }); + const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); + const run_token_unit_tests = b.addRunArtifact(token_unit_tests); const test_step = b.step("test", "Run unit tests"); test_step.dependOn(&run_exe_unit_tests.step); + test_step.dependOn(&run_token_unit_tests.step); } -- cgit v1.2.3