mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
cargo fmt
This commit is contained in:
parent
0e5f82526a
commit
2eefe9ff6d
2 changed files with 22 additions and 23 deletions
|
@ -351,30 +351,30 @@ fn u8_hex_int_alias() {
|
|||
|
||||
f
|
||||
"#
|
||||
),
|
||||
0xA,
|
||||
u8
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn character_literal() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
x = 'A'
|
||||
|
||||
x
|
||||
"#
|
||||
),
|
||||
65,
|
||||
u32
|
||||
),
|
||||
0xA,
|
||||
u8
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn dec_float_alias() {
|
||||
assert_evals_to!(
|
||||
fn character_literal() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
x = 'A'
|
||||
|
||||
x
|
||||
"#
|
||||
),
|
||||
65,
|
||||
u32
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn dec_float_alias() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
x : Dec
|
||||
|
|
|
@ -1082,9 +1082,8 @@ fn format_category<'b>(
|
|||
alloc.text(" which was of type:"),
|
||||
),
|
||||
Character => (
|
||||
alloc.concat(vec![this_is, alloc.text(" a character")
|
||||
]),
|
||||
alloc.text(" of type:")
|
||||
alloc.concat(vec![this_is, alloc.text(" a character")]),
|
||||
alloc.text(" of type:"),
|
||||
),
|
||||
Lambda => (
|
||||
alloc.concat(vec![this_is, alloc.text(" an anonymous function")]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue