Merge pull request #3081 from rtfeldman/issue-2845-dec-literal

Issue 2845 dec literal
This commit is contained in:
Ayaz 2022-05-16 20:01:59 -04:00 committed by GitHub
commit 222967d749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 37 additions and 21 deletions

View file

@ -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() {