@@ -2228,47 +2228,6 @@ mod bigdecimal_tests {
2228
2228
}
2229
2229
}
2230
2230
2231
- #[ test]
2232
- #[ should_panic( expected = "InvalidDigit" ) ]
2233
- fn test_bad_string_nan ( ) {
2234
- BigDecimal :: from_str ( "hello" ) . unwrap ( ) ;
2235
- }
2236
- #[ test]
2237
- #[ should_panic( expected = "Empty" ) ]
2238
- fn test_bad_string_empty ( ) {
2239
- BigDecimal :: from_str ( "" ) . unwrap ( ) ;
2240
- }
2241
- #[ test]
2242
- #[ should_panic( expected = "InvalidDigit" ) ]
2243
- fn test_bad_string_invalid_char ( ) {
2244
- BigDecimal :: from_str ( "12z3.12" ) . unwrap ( ) ;
2245
- }
2246
- #[ test]
2247
- #[ should_panic( expected = "InvalidDigit" ) ]
2248
- fn test_bad_string_nan_exponent ( ) {
2249
- BigDecimal :: from_str ( "123.123eg" ) . unwrap ( ) ;
2250
- }
2251
- #[ test]
2252
- #[ should_panic( expected = "Empty" ) ]
2253
- fn test_bad_string_empty_exponent ( ) {
2254
- BigDecimal :: from_str ( "123.123E" ) . unwrap ( ) ;
2255
- }
2256
- #[ test]
2257
- #[ should_panic( expected = "InvalidDigit" ) ]
2258
- fn test_bad_string_multiple_decimal_points ( ) {
2259
- BigDecimal :: from_str ( "123.12.45" ) . unwrap ( ) ;
2260
- }
2261
- #[ test]
2262
- #[ should_panic( expected = "Empty" ) ]
2263
- fn test_bad_string_only_decimal ( ) {
2264
- BigDecimal :: from_str ( "." ) . unwrap ( ) ;
2265
- }
2266
- #[ test]
2267
- #[ should_panic( expected = "Empty" ) ]
2268
- fn test_bad_string_only_decimal_and_exponent ( ) {
2269
- BigDecimal :: from_str ( ".e4" ) . unwrap ( ) ;
2270
- }
2271
-
2272
2231
#[ test]
2273
2232
fn test_from_i128 ( ) {
2274
2233
let value = BigDecimal :: from_i128 ( -368934881474191032320 ) . unwrap ( ) ;
0 commit comments