@@ -1246,13 +1246,21 @@ a_b = {value}
12461246 // Through a string equivalent
12471247 println ! ( "to_string" ) ;
12481248 assert_data_eq ! (
1249- crate :: to_string( & literal) . unwrap_err( ) . to_string( ) ,
1250- str ![ "i128 is not supported" ] . raw( )
1249+ crate :: to_string( & literal) . unwrap( ) ,
1250+ str ![ [ r#"
1251+ a_b = -170141183460469231731687303715884105728
1252+
1253+ "# ] ]
1254+ . raw( )
12511255 ) ;
12521256 println ! ( "to_string_pretty" ) ;
12531257 assert_data_eq ! (
1254- crate :: to_string_pretty( & literal) . unwrap_err( ) . to_string( ) ,
1255- str ![ "i128 is not supported" ] . raw( )
1258+ crate :: to_string_pretty( & literal) . unwrap( ) ,
1259+ str ![ [ r#"
1260+ a_b = -170141183460469231731687303715884105728
1261+
1262+ "# ] ]
1263+ . raw( )
12561264 ) ;
12571265 println ! ( "literal, from_str(toml)" ) ;
12581266 assert_data_eq ! (
@@ -1301,13 +1309,21 @@ a_b = {value}
13011309 // Through a string equivalent
13021310 println ! ( "to_string" ) ;
13031311 assert_data_eq ! (
1304- crate :: to_string( & literal) . unwrap_err( ) . to_string( ) ,
1305- str ![ "i128 is not supported" ] . raw( )
1312+ crate :: to_string( & literal) . unwrap( ) ,
1313+ str ![ [ r#"
1314+ a_b = 170141183460469231731687303715884105727
1315+
1316+ "# ] ]
1317+ . raw( )
13061318 ) ;
13071319 println ! ( "to_string_pretty" ) ;
13081320 assert_data_eq ! (
1309- crate :: to_string_pretty( & literal) . unwrap_err( ) . to_string( ) ,
1310- str ![ "i128 is not supported" ] . raw( )
1321+ crate :: to_string_pretty( & literal) . unwrap( ) ,
1322+ str ![ [ r#"
1323+ a_b = 170141183460469231731687303715884105727
1324+
1325+ "# ] ]
1326+ . raw( )
13111327 ) ;
13121328 println ! ( "literal, from_str(toml)" ) ;
13131329 assert_data_eq ! (
@@ -1356,13 +1372,21 @@ a_b = {value}
13561372 // Through a string equivalent
13571373 println ! ( "to_string" ) ;
13581374 assert_data_eq ! (
1359- crate :: to_string( & literal) . unwrap_err( ) . to_string( ) ,
1360- str ![ "u128 is not supported" ] . raw( )
1375+ crate :: to_string( & literal) . unwrap( ) ,
1376+ str ![ [ r#"
1377+ a_b = 340282366920938463463374607431768211455
1378+
1379+ "# ] ]
1380+ . raw( )
13611381 ) ;
13621382 println ! ( "to_string_pretty" ) ;
13631383 assert_data_eq ! (
1364- crate :: to_string_pretty( & literal) . unwrap_err( ) . to_string( ) ,
1365- str ![ "u128 is not supported" ] . raw( )
1384+ crate :: to_string_pretty( & literal) . unwrap( ) ,
1385+ str ![ [ r#"
1386+ a_b = 340282366920938463463374607431768211455
1387+
1388+ "# ] ]
1389+ . raw( )
13661390 ) ;
13671391 println ! ( "literal, from_str(toml)" ) ;
13681392 assert_data_eq ! (
0 commit comments