mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Merge pull request #3081 from rtfeldman/issue-2845-dec-literal
Issue 2845 dec literal
This commit is contained in:
commit
222967d749
6 changed files with 37 additions and 21 deletions
|
@ -3331,6 +3331,20 @@ fn dec_float_suffix() {
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
fn dec_no_decimal() {
|
||||
assert_evals_to!(
|
||||
indoc!(
|
||||
r#"
|
||||
3dec
|
||||
"#
|
||||
),
|
||||
RocDec::from_str_to_i128_unsafe("3.0"),
|
||||
i128
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||
fn ceiling_to_u32() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue