ref: 19248d9673c0da5c189bf81e7c89a339cf99e405
dir: /lib/std/test/fltbits.myr/
use std use testr const main = { testr.run([ [.name = "isnan", .fn = isnan01], ][:]) } const isnan01 = {c testr.check(c, std.isnan(std.flt64nan()), "std.flt64nan() should give a NaN") testr.check(c, std.isnan(std.flt32nan()), "std.flt32nan() should give a NaN") testr.check(c, std.isnan(std.flt64frombits(0xfff0000500000000ul)), "0xfff0000500000000 should be a NaN") testr.check(c, !std.isnan(std.flt64frombits(0xfff0000000000000ul)), "Infinities should not be NaNs") }