mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
alignment in single element tag unions
This commit is contained in:
parent
1e4f0e8b07
commit
ccd2e0ecf4
5 changed files with 66 additions and 7 deletions
|
@ -853,6 +853,7 @@ mod gen_records {
|
|||
(i64, bool, u8)
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn blue_and_present() {
|
||||
assert_evals_to!(
|
||||
|
|
|
@ -758,4 +758,15 @@ mod gen_tags {
|
|||
i64
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn alignment_in_single_tag() {
|
||||
assert_evals_to!(indoc!("Three (1 == 1) 32"), (32i64, true), (i64, bool));
|
||||
|
||||
assert_evals_to!(
|
||||
indoc!("Three (1 == 1) (if True then Red else if True then Green else Blue) 32"),
|
||||
(32i64, true, 2u8),
|
||||
(i64, bool, u8)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue