518dc52f85
This changes the indexing syntax from .() to [], the vector syntax from ~[] to [] and the extension syntax from #fmt() to #fmt[]
21 lines
535 B
Rust
21 lines
535 B
Rust
|
|
|
|
fn main() {
|
|
if 1 == 2 {
|
|
assert (false);
|
|
} else if 2 == 3 {
|
|
assert (false);
|
|
} else if 3 == 4 { assert (false); } else { assert (true); }
|
|
if 1 == 2 { assert (false); } else if 2 == 2 { assert (true); }
|
|
if 1 == 2 {
|
|
assert (false);
|
|
} else if 2 == 2 {
|
|
if 1 == 1 {
|
|
assert (true);
|
|
} else { if 2 == 1 { assert (false); } else { assert (false); } }
|
|
}
|
|
if 1 == 2 {
|
|
assert (false);
|
|
} else { if 1 == 2 { assert (false); } else { assert (true); } }
|
|
}
|