]> git.lizzy.rs Git - rust.git/blob - src/test/run-pass/float2.rs
Switch xfail system to use comments embedded in source files.
[rust.git] / src / test / run-pass / float2.rs
1 // xfail-boot
2 fn main() {
3   auto a = 1.5e6;
4   auto b = 1.5E6;
5   auto c = 1e6;
6   auto d = 1E6;
7   auto e = 3.0f32;
8   auto f = 5.9f64;
9   auto g = 1.e6f32;
10   auto h = 1.0e7f64;
11   auto i = 1.0E7f64;
12   auto j = 3.1e+9;
13   auto k = 3.2e-10;
14  
15   check(a == b);
16   check(c < b);
17   check(c == d);
18   check(e < g);
19   check(f < h);
20   check(g == 1000000.0f32);
21   check(h == i);
22   check(j > k);
23   check(k < a);
24 }