From 4229f1ef1d1a1fcc0476d2b13472c355d8f7d101 Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Thu, 16 Apr 2026 16:33:32 +0200 Subject: build(test): not running lexer tests --- build.zig | 9 ++------- src/root.zig | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/build.zig b/build.zig index 5d8295b..d7721ed 100644 --- a/build.zig +++ b/build.zig @@ -2,7 +2,7 @@ const std = @import("std"); pub fn build(b: *std.Build) void { const target = b.standardTargetOptions(.{}); - //const optimize = b.standardOptimizeOption(.{}); + //const optimize = b.standardOptimizeOption(.{}); const mod = b.addModule("typdown", .{ .root_source_file = b.path("src/root.zig"), @@ -20,25 +20,20 @@ pub fn build(b: *std.Build) void { // }, // }), //}); - //b.installArtifact(exe); //const run_step = b.step("run", "Run the app"); - //const run_cmd = b.addRunArtifact(exe); - //run_step.dependOn(&run_cmd.step); - //run_cmd.step.dependOn(b.getInstallStep()); //if (b.args) |args| { // run_cmd.addArgs(args); //} - + const mod_tests = b.addTest(.{ .root_module = mod, }); - const run_mod_tests = b.addRunArtifact(mod_tests); //const exe_tests = b.addTest(.{ diff --git a/src/root.zig b/src/root.zig index 8e90eb0..00ba5a5 100644 --- a/src/root.zig +++ b/src/root.zig @@ -1,5 +1,5 @@ const std = @import("std"); -const lexer = @import("lexer/lexer.zig"); +pub const lexer = @import("lexer/lexer.zig"); pub fn bufferedPrint() !void { // Stdout is for the actual output of your application, for example if you -- cgit v1.2.3