Skip to content

Commit ec62346

Browse files
committed
use test_utils::number
1 parent e0660e4 commit ec62346

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

tests/sqlparser_mysql.rs

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3522,10 +3522,9 @@ fn test_variable_assignment_using_colon_equal() {
35223522
span: Span::empty(),
35233523
})),
35243524
op: BinaryOperator::Multiply,
3525-
right: Box::new(Expr::Value(ValueWithSpan {
3526-
value: Value::Number("0.1".to_string(), false),
3527-
span: Span::empty(),
3528-
})),
3525+
right: Box::new(Expr::Value(
3526+
(test_utils::number("0.1")).with_empty_span()
3527+
)),
35293528
}),
35303529
}),
35313530
]
@@ -3540,10 +3539,7 @@ fn test_variable_assignment_using_colon_equal() {
35403539
span: Span::empty(),
35413540
})),
35423541
op: BinaryOperator::Eq,
3543-
right: Box::new(Expr::Value(ValueWithSpan {
3544-
value: Value::Number("1".to_string(), false),
3545-
span: Span::empty(),
3546-
})),
3542+
right: Box::new(Expr::Value((test_utils::number("1")).with_empty_span())),
35473543
})
35483544
);
35493545
}
@@ -3580,10 +3576,9 @@ fn test_variable_assignment_using_colon_equal() {
35803576
span: Span::empty(),
35813577
})),
35823578
op: BinaryOperator::Multiply,
3583-
right: Box::new(Expr::Value(ValueWithSpan {
3584-
value: Value::Number("1.1".to_string(), false),
3585-
span: Span::empty(),
3586-
})),
3579+
right: Box::new(Expr::Value(
3580+
(test_utils::number("1.1")).with_empty_span()
3581+
)),
35873582
}),
35883583
},
35893584
}]

0 commit comments

Comments
 (0)