Reformat for new syntax
This commit is contained in:
parent
0e3ee39c41
commit
df7f21db09
723 changed files with 28622 additions and 31631 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue