alignment in single element tag unions

This commit is contained in:
Folkert 2020-11-24 22:01:57 +01:00
parent 1e4f0e8b07
commit ccd2e0ecf4
5 changed files with 66 additions and 7 deletions

View file

@ -853,6 +853,7 @@ mod gen_records {
(i64, bool, u8)
);
}
#[test]
fn blue_and_present() {
assert_evals_to!(

View file

@ -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)
);
}
}