Remove most instances of #[cfg(feature(bigdecimal))] in tests (#910)

This commit is contained in:
Andrew Lamb 2023-07-17 14:19:51 -04:00 committed by GitHub
parent a50671d95d
commit 4efe55dd8a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 28 additions and 90 deletions

View file

@ -97,13 +97,7 @@ fn test_create_macro_default_args() {
MacroArg::new("a"),
MacroArg {
name: Ident::new("b"),
default_expr: Some(Expr::Value(Value::Number(
#[cfg(not(feature = "bigdecimal"))]
5.to_string(),
#[cfg(feature = "bigdecimal")]
bigdecimal::BigDecimal::from(5),
false,
))),
default_expr: Some(Expr::Value(number("5"))),
},
]),
definition: MacroDefinition::Expr(Expr::BinaryOp {