1
Fork 0

Reformat for new syntax

This commit is contained in:
Marijn Haverbeke 2011-07-27 14:19:39 +02:00
parent 0e3ee39c41
commit df7f21db09
723 changed files with 28622 additions and 31631 deletions

View file

@ -5,13 +5,13 @@
// Tests for alt as expressions resulting in structural types
fn test_rec() {
auto rs = alt (true) { case (true) { rec(i=100) } };
assert (rs == rec(i=100));
let rs = alt true { true { {i: 100} } };
assert (rs == {i: 100});
}
fn test_tag() {
tag mood { happy; sad; }
auto rs = alt (true) { case (true) { happy } case (false) { sad } };
let rs = alt true { true { happy } false { sad } };
assert (rs == happy);
}