mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
Add whole number dec test
This commit is contained in:
parent
c5f93e3c54
commit
a5b65cad03
1 changed files with 4 additions and 1 deletions
|
@ -295,8 +295,11 @@ mod test_roc_std {
|
|||
assert_eq!(format!("{example}"), "1000.5678");
|
||||
|
||||
let sample_negative = "-1.234";
|
||||
let example = RocDec::from_str(sample_negative).unwrap().to_str();
|
||||
let example = RocDec::from_str(sample_negative).unwrap();
|
||||
assert_eq!(format!("{example}"), sample_negative);
|
||||
|
||||
let example = RocDec::from_str("1000.000").unwrap();
|
||||
assert_eq!(format!("{example}"), "1000");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue