rust/src/test/run-pass/floatlits.rs
Graydon Hoare d08b443fff Revert "Use different syntax for checks that matter to typestate"
This reverts commit aa25f22f19. It broke stage2, not sure why yet.
2011-05-02 17:35:33 -07:00

9 lines
162 B
Rust

// xfail-boot
fn main() {
auto f = 4.999999999999;
check (f > 4.90);
check (f < 5.0);
auto g = 4.90000000001e-10;
check(g > 5e-11);
check(g < 5e-9);
}