518dc52f85
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
25 lines
429 B
Rust
25 lines
429 B
Rust
|
|
|
|
fn main() {
|
|
let a = 1.5e6;
|
|
let b = 1.5E6;
|
|
let c = 1e6;
|
|
let d = 1E6;
|
|
let e = 3.0f32;
|
|
let f = 5.9f64;
|
|
let g = 1.e6f32;
|
|
let h = 1.0e7f64;
|
|
let i = 1.0E7f64;
|
|
let j = 3.1e+9;
|
|
let k = 3.2e-10;
|
|
assert (a == b);
|
|
assert (c < b);
|
|
assert (c == d);
|
|
assert (e < g);
|
|
assert (f < h);
|
|
assert (g == 1000000.0f32);
|
|
assert (h == i);
|
|
assert (j > k);
|
|
assert (k < a);
|
|
}
|