@@ -387,7 +387,7 @@ static mp_obj_t extra_coverage(void) {
387
387
mp_printf (& mp_plat_print , "# str\n" );
388
388
389
389
// intern string
390
- mp_printf (& mp_plat_print , "%d\n" , mp_obj_is_qstr (mp_obj_str_intern (mp_obj_new_str ("intern me" , 9 ))));
390
+ mp_printf (& mp_plat_print , "%d\n" , mp_obj_is_qstr (mp_obj_str_intern (mp_obj_new_str_0 ("intern me" ))));
391
391
}
392
392
393
393
// bytearray
@@ -463,12 +463,12 @@ static mp_obj_t extra_coverage(void) {
463
463
// call mp_call_function_1_protected
464
464
mp_call_function_1_protected (MP_OBJ_FROM_PTR (& mp_builtin_abs_obj ), MP_OBJ_NEW_SMALL_INT (1 ));
465
465
// call mp_call_function_1_protected with invalid args
466
- mp_call_function_1_protected (MP_OBJ_FROM_PTR (& mp_builtin_abs_obj ), mp_obj_new_str ("abc" , 3 ));
466
+ mp_call_function_1_protected (MP_OBJ_FROM_PTR (& mp_builtin_abs_obj ), mp_obj_new_str_0 ("abc" ));
467
467
468
468
// call mp_call_function_2_protected
469
469
mp_call_function_2_protected (MP_OBJ_FROM_PTR (& mp_builtin_divmod_obj ), MP_OBJ_NEW_SMALL_INT (1 ), MP_OBJ_NEW_SMALL_INT (1 ));
470
470
// call mp_call_function_2_protected with invalid args
471
- mp_call_function_2_protected (MP_OBJ_FROM_PTR (& mp_builtin_divmod_obj ), mp_obj_new_str ("abc" , 3 ), mp_obj_new_str ("abc" , 3 ));
471
+ mp_call_function_2_protected (MP_OBJ_FROM_PTR (& mp_builtin_divmod_obj ), mp_obj_new_str_0 ("abc" ), mp_obj_new_str_0 ("abc" ));
472
472
473
473
// mp_obj_int_get_uint_checked with non-negative small-int
474
474
mp_printf (& mp_plat_print , "%d\n" , (int )mp_obj_int_get_uint_checked (MP_OBJ_NEW_SMALL_INT (1 )));
@@ -722,7 +722,7 @@ static mp_obj_t extra_coverage(void) {
722
722
// mp_obj_is_integer accepts ints and booleans
723
723
mp_printf (& mp_plat_print , "%d %d\n" , mp_obj_is_integer (MP_OBJ_NEW_SMALL_INT (1 )), mp_obj_is_integer (mp_obj_new_int_from_ll (1 )));
724
724
mp_printf (& mp_plat_print , "%d %d\n" , mp_obj_is_integer (mp_const_true ), mp_obj_is_integer (mp_const_false ));
725
- mp_printf (& mp_plat_print , "%d %d\n" , mp_obj_is_integer (mp_obj_new_str ("1" , 1 )), mp_obj_is_integer (mp_const_none ));
725
+ mp_printf (& mp_plat_print , "%d %d\n" , mp_obj_is_integer (mp_obj_new_str_0 ("1" )), mp_obj_is_integer (mp_const_none ));
726
726
727
727
// mp_obj_is_int accepts small int and object ints
728
728
mp_printf (& mp_plat_print , "%d %d\n" , mp_obj_is_int (MP_OBJ_NEW_SMALL_INT (1 )), mp_obj_is_int (mp_obj_new_int_from_ll (1 )));
0 commit comments