test: migrate 700_e2e rows to corpus fixtures; retire the carrier
136 rows migrated, 0 already owned, 3 wwstage-failing rows held out.
This commit is contained in:
15
test/wcc/data/r700_match_rev_order/case.ww
Normal file
15
test/wcc/data/r700_match_rev_order/case.ww
Normal file
@@ -0,0 +1,15 @@
|
||||
//ww:run-exit 7
|
||||
// Migrated from 700_e2e row 50.
|
||||
package main;
|
||||
fn parse(n: i64) (i64 | i32) = {
|
||||
if (n < 0) { return 7: i32; };
|
||||
return n;
|
||||
};
|
||||
fn main() i32 = {
|
||||
let r: (i64 | i32) = parse(-1);
|
||||
match (r) {
|
||||
case let e: i32 => return e;
|
||||
case let v: i64 => return (v + 1000): i32;
|
||||
};
|
||||
return 0;
|
||||
};
|
||||
Reference in New Issue
Block a user