Skip to content

Commit

Permalink
move package tests to root.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
ianic committed Feb 13, 2024
1 parent c871a56 commit fcd2b00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/flate.zig
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,6 @@ pub const store = struct {
}
};

test "flate" {
_ = @import("deflate.zig");
_ = @import("inflate.zig");
}

/// Container defines header/footer arround deflate bit stream. Gzip and zlib
/// compression algorithms are containers arround deflate bit stream body.
const Container = @import("container.zig").Container;
Expand Down
5 changes: 5 additions & 0 deletions src/root.zig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ pub const flate = @import("flate.zig");
pub const gzip = @import("gzip.zig");
pub const zlib = @import("zlib.zig");

test "flate" {
_ = @import("deflate.zig");
_ = @import("inflate.zig");
}

test "flate public interface" {
const plain_data = [_]u8{ 'H', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', 0x0a };

Expand Down

0 comments on commit fcd2b00

Please sign in to comment.