aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-16 16:33:32 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-16 16:33:32 +0200
commit4229f1ef1d1a1fcc0476d2b13472c355d8f7d101 (patch)
treebd73c354d5d153d4a773e18196038266106dcd4a
parent7ed6d8aaa0b175efc7dd6a4ee43cb20c9168a09d (diff)
build(test): not running lexer tests
-rw-r--r--build.zig9
-rw-r--r--src/root.zig2
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