File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11const Builder = @import ("std" ).build .Builder ;
22
33pub fn build (b : * Builder ) void {
4+ const target = b .standardTargetOptions (.{});
45 const mode = b .standardReleaseOptions ();
5- const lib = b .addStaticLibrary ("zig-boyer-moore" , "src/main.zig" );
6- lib .setBuildMode (mode );
7- lib .install ();
86
97 var main_tests = b .addTest ("src/main.zig" );
8+ main_tests .setTarget (target );
109 main_tests .setBuildMode (mode );
1110
1211 const test_step = b .step ("test" , "Run library tests" );
Original file line number Diff line number Diff line change 1+ const std = @import ("std" );
2+
13pub const bitap = @import ("bitap.zig" );
24pub const boyer_moore = @import ("boyer_moore.zig" );
35
4- test "" {
5- _ = @import ("bitap.zig" );
6- _ = @import ("boyer_moore.zig" );
6+ test {
7+ std .testing .refAllDeclsRecursive (@This ());
78}
You can’t perform that action at this time.
0 commit comments