Files
ww/test/wcc/data/r952_frexpf64_exact/case.ww
Hojun-Cho f6628b985e test: migrate 24 residual carriers into the fixture corpus
Audit-driven migrate-and-retire wave (one read-only auditor per
carrier batch, verdicts row-checked through the full corpus gate):
every retired carrier's assertions are now owned by declarative
fixtures or an existing owner. 238 new fixtures land (corpus 1,239 ->
1,477; cells 2,954), covering enum/str/slice/tagged array elements,
inferred-length arrays, global slice/str zero-init and literals,
global array/pointer field reads and stores, struct-literal slice
fields, struct returns, float arithmetic, size/int limits, sort and
log-vstream behavior, place-addressed stores, and append places.
Rejection rows STRENGTHEN the old nonzero-exit checks to required
diagnostic fragments; all byte-id claims fold into the blanket
test-data-byteid sweep (now 1,142 compared, 0 pinned-divergent).
Four carriers were fully redundant with existing fixtures/lang tests
(749, 722, 765, and 771's byteid rows) and retire without new rows.
Native carriers 171 -> 147 (residual 135 -> 111).
2026-08-08 01:29:15 +09:00

23 lines
545 B
Plaintext

//ww:run
package main;
import math;
export fn main() i32 = {
const a = math.frexpf64(8.0);
const am: f64 = a.0;
if (am != 0.5) { return 1; };
if (a.1 != 4i64) { return 2; };
const b = math.frexpf64(1.0);
const bm: f64 = b.0;
if (bm != 0.5) { return 3; };
if (b.1 != 1i64) { return 4; };
const c = math.frexpf64(0.0);
const cm: f64 = c.0;
if (cm != 0.0) { return 5; };
if (c.1 != 0i64) { return 6; };
const d = math.frexpf64(0.75);
const dm: f64 = d.0;
if (dm != 0.75) { return 7; };
if (d.1 != 0i64) { return 8; };
return 0;
};