mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11: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
|
f
|
||||||
"#
|
"#
|
||||||
),
|
),
|
||||||
0xA,
|
0xA,
|
||||||
u8
|
u8
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn character_literal() {
|
|
||||||
assert_evals_to!(
|
|
||||||
indoc!(
|
|
||||||
r#"
|
|
||||||
x = 'A'
|
|
||||||
|
|
||||||
x
|
|
||||||
"#
|
|
||||||
),
|
|
||||||
65,
|
|
||||||
u32
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn dec_float_alias() {
|
fn character_literal() {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
|
indoc!(
|
||||||
|
r#"
|
||||||
|
x = 'A'
|
||||||
|
|
||||||
|
x
|
||||||
|
"#
|
||||||
|
),
|
||||||
|
65,
|
||||||
|
u32
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn dec_float_alias() {
|
||||||
|
assert_evals_to!(
|
||||||
indoc!(
|
indoc!(
|
||||||
r#"
|
r#"
|
||||||
x : Dec
|
x : Dec
|
||||||
|
|
|
@ -1082,9 +1082,8 @@ fn format_category<'b>(
|
||||||
alloc.text(" which was of type:"),
|
alloc.text(" which was of type:"),
|
||||||
),
|
),
|
||||||
Character => (
|
Character => (
|
||||||
alloc.concat(vec![this_is, alloc.text(" a character")
|
alloc.concat(vec![this_is, alloc.text(" a character")]),
|
||||||
]),
|
alloc.text(" of type:"),
|
||||||
alloc.text(" of type:")
|
|
||||||
),
|
),
|
||||||
Lambda => (
|
Lambda => (
|
||||||
alloc.concat(vec![this_is, alloc.text(" an anonymous function")]),
|
alloc.concat(vec![this_is, alloc.text(" an anonymous function")]),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue