diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -72,12 +72,13 @@ pub fn build(b: *std.Build) void { | |||
| 72 | 72 | ||
| 73 | // Tests | 73 | // Tests |
| 74 | const exe_unit_tests = b.addTest(.{ | 74 | const exe_unit_tests = b.addTest(.{ |
| 75 | .root_source_file = .{ .path = "src/display_width.zig" }, | 75 | .root_source_file = .{ .path = "src/Grapheme.zig" }, |
| 76 | .target = target, | 76 | .target = target, |
| 77 | .optimize = optimize, | 77 | .optimize = optimize, |
| 78 | }); | 78 | }); |
| 79 | exe_unit_tests.root_module.addImport("CodePoint", code_point); | 79 | exe_unit_tests.root_module.addImport("CodePoint", code_point); |
| 80 | exe_unit_tests.root_module.addImport("Grapheme", grapheme); | 80 | exe_unit_tests.root_module.addImport("Grapheme", grapheme); |
| 81 | exe_unit_tests.root_module.addAnonymousImport("gbp", .{ .root_source_file = gbp_gen_out }); | ||
| 81 | exe_unit_tests.root_module.addAnonymousImport("dwp", .{ .root_source_file = dwp_gen_out }); | 82 | exe_unit_tests.root_module.addAnonymousImport("dwp", .{ .root_source_file = dwp_gen_out }); |
| 82 | 83 | ||
| 83 | const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); | 84 | const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); |