We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65e28a3 commit 7d41075Copy full SHA for 7d41075
dsc_lib/src/functions/int.rs
@@ -75,12 +75,19 @@ mod tests {
75
}
76
77
#[test]
78
- fn incomplete_float() {
+ fn incomplete_float_missing_digit() {
79
let mut parser = Statement::new().unwrap();
80
let err = parser.parse_and_execute("[int(.2)]", &Context::new()).unwrap_err();
81
assert!(matches!(err, DscError::Parser(_)));
82
83
84
+ #[test]
85
+ fn incomplete_float_missing_decimal() {
86
+ let mut parser = Statement::new().unwrap();
87
+ let err = parser.parse_and_execute("[int(2.)]", &Context::new()).unwrap_err();
88
+ assert!(matches!(err, DscError::Parser(_)));
89
+ }
90
+
91
92
fn nested() {
93
0 commit comments