-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more failing compilation tests for pdec!()
- Loading branch information
Showing
40 changed files
with
195 additions
and
5 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
radix-engine-tests/tests/dec_macros/src/dec_err_too_many_decimal_places.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!(1.0000000000000000000000000); | ||
const X: Decimal = dec!(1.0000000000000000001); | ||
} |
4 changes: 2 additions & 2 deletions
4
radix-engine-tests/tests/dec_macros/src/dec_err_too_many_decimal_places.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
error: A decimal cannot have more than eighteen decimal places. | ||
--> src/dec_err_too_many_decimal_places.rs:4:29 | ||
| | ||
4 | const X: Decimal = dec!(1.0000000000000000000000000); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
4 | const X: Decimal = dec!(1.0000000000000000001); | ||
| ^^^^^^^^^^^^^^^^^^^^^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_empty_fractional_part_1.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: PreciseDecimal = pdec!(1.); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_empty_fractional_part_1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: If there is a decimal point, the number must include at least one digit after it. | ||
--> src/pdec_err_empty_fractional_part_1.rs:4:37 | ||
| | ||
4 | const X: PreciseDecimal = pdec!(1.); | ||
| ^^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_empty_fractional_part_2.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!("1."); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_empty_fractional_part_2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: If there is a decimal point, the number must include at least one digit after it. | ||
--> src/pdec_err_empty_fractional_part_2.rs:4:29 | ||
| | ||
4 | const X: Decimal = dec!("1."); | ||
| ^^^^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_empty_integral_part.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: PreciseDecimal = pdec!(".0"); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_empty_integral_part.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: If there is a decimal point, the number must include at least one digit before it. Use a 0 if necessary. | ||
--> src/pdec_err_empty_integral_part.rs:4:37 | ||
| | ||
4 | const X: PreciseDecimal = pdec!(".0"); | ||
| ^^^^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_expected_expr.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!(.1); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_expected_expr.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: expected expression | ||
--> src/pdec_err_expected_expr.rs:4:29 | ||
| | ||
4 | const X: Decimal = dec!(.1); | ||
| ^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_expr_not_supported.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!(a); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_expr_not_supported.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: This macro only supports string, integer and float literals. | ||
--> src/pdec_err_expr_not_supported.rs:4:29 | ||
| | ||
4 | const X: Decimal = dec!(a); | ||
| ^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_expr_unary_op_not_supported.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!(!1); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_expr_unary_op_not_supported.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: This macro only supports string, integer and float literals. | ||
--> src/pdec_err_expr_unary_op_not_supported.rs:4:29 | ||
| | ||
4 | const X: Decimal = dec!(!1); | ||
| ^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_float_suffix.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!(11.12f64); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_float_suffix.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: No suffix is allowed. Remove the f64. | ||
--> src/pdec_err_float_suffix.rs:4:29 | ||
| | ||
4 | const X: Decimal = dec!(11.12f64); | ||
| ^^^^^^^^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_int_suffix.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!(11_i64); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_int_suffix.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: No suffix is allowed. Remove the i64. | ||
--> src/pdec_err_int_suffix.rs:4:29 | ||
| | ||
4 | const X: Decimal = dec!(11_i64); | ||
| ^^^^^^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_invalid_digit.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!(11.12e3); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_invalid_digit.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: There is an invalid character. | ||
--> src/pdec_err_invalid_digit.rs:4:29 | ||
| | ||
4 | const X: Decimal = dec!(11.12e3); | ||
| ^^^^^^^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_literal_not_supported.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!('a'); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_literal_not_supported.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: This macro only supports string, integer and float literals. | ||
--> src/pdec_err_literal_not_supported.rs:4:29 | ||
| | ||
4 | const X: Decimal = dec!('a'); | ||
| ^^^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_more_than_one_decimal_point.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!("1.000.0"); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_more_than_one_decimal_point.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: A decimal cannot have more than one decimal point. | ||
--> src/pdec_err_more_than_one_decimal_point.rs:4:29 | ||
| | ||
4 | const X: Decimal = dec!("1.000.0"); | ||
| ^^^^^^^^^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_multiple_negations.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!(--1); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_multiple_negations.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: This macro only supports string, integer and float literals. | ||
--> src/pdec_err_multiple_negations.rs:4:30 | ||
| | ||
4 | const X: Decimal = dec!(--1); | ||
| ^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_negation_and_string.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!(-"112.3"); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_negation_and_string.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: This macro only supports string, integer and float literals. | ||
--> src/pdec_err_negation_and_string.rs:4:30 | ||
| | ||
4 | const X: Decimal = dec!(-"112.3"); | ||
| ^^^^^^^ |
6 changes: 6 additions & 0 deletions
6
radix-engine-tests/tests/dec_macros/src/pdec_err_overflow_1.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: PreciseDecimal = | ||
pdec!(-57896044618658097711785492504343953926634.992332820282019728792003956564819969); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_overflow_1.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: The number being too large to fit in a precise decimal | ||
--> src/pdec_err_overflow_1.rs:5:16 | ||
| | ||
5 | pdec!(-57896044618658097711785492504343953926634.992332820282019728792003956564819969); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_overflow_2.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!("-3138550867693340381917894711603833208051.177722232017256449"); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_overflow_2.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: The number is too large to fit in a decimal. | ||
--> src/pdec_err_overflow_2.rs:4:29 | ||
| | ||
4 | const X: Decimal = dec!("-3138550867693340381917894711603833208051.177722232017256449"); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
6 changes: 6 additions & 0 deletions
6
radix-engine-tests/tests/dec_macros/src/pdec_err_overflow_3.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: PreciseDecimal = | ||
pdec!(57896044618658097711785492504343953926634.992332820282019728792003956564819968); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_overflow_3.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: The number being too large to fit in a precise decimal | ||
--> src/pdec_err_overflow_3.rs:5:15 | ||
| | ||
5 | pdec!(57896044618658097711785492504343953926634.992332820282019728792003956564819968); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
6 changes: 6 additions & 0 deletions
6
radix-engine-tests/tests/dec_macros/src/pdec_err_overflow_4.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: PreciseDecimal = | ||
pdec!("57896044618658097711785492504343953926634.992332820282019728792003956564819968"); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_overflow_4.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: The number being too large to fit in a precise decimal | ||
--> src/pdec_err_overflow_4.rs:5:15 | ||
| | ||
5 | pdec!("57896044618658097711785492504343953926634.992332820282019728792003956564819968"); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_too_many_decimal_places.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: PreciseDecimal = pdec!(1.0000000000000000000000000000000000001); | ||
} |
5 changes: 5 additions & 0 deletions
5
radix-engine-tests/tests/dec_macros/src/pdec_err_too_many_decimal_places.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
error: A precise decimal cannot have more than thirty-six decimal places. | ||
--> src/pdec_err_too_many_decimal_places.rs:4:37 | ||
| | ||
4 | const X: PreciseDecimal = pdec!(1.0000000000000000000000000000000000001); | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
use radix_engine_interface::prelude::*; | ||
|
||
fn main() { | ||
const X: Decimal = dec!("1"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters