mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 06:13:07 +00:00
Tests with no names are executed when using `zig test` regardless of the `--test-filter` used. Non-named tests should be used when simply importing unit tests from another file. This allows `zig test` to find all the appropriate tests, even when using `--test-filter`.
12 lines
249 B
Zig
12 lines
249 B
Zig
const fixint = @import("fixint.zig").fixint;
|
|
const builtin = @import("builtin");
|
|
|
|
pub fn __fixdfti(a: f64) callconv(.C) i128 {
|
|
@setRuntimeSafety(builtin.is_test);
|
|
return fixint(f64, i128, a);
|
|
}
|
|
|
|
test {
|
|
_ = @import("fixdfti_test.zig");
|
|
}
|