test: add platon test case test_004ParametersInit_0007TxInitSuccessGasLimitHexNullOx
fix the issue
teambition task id
@@ -194,6 +194,23 @@ START_TEST(test_004ParametersInit_0006TxInitFailureGasLimitErrorHexFormat)
}
END_TEST
+START_TEST(test_004ParametersInit_0007TxInitSuccessGasLimitHexNullOx)
+{
+ BSINT32 rtnVal;
+ BoatPlatONTx tx_ptr;
+
+ BoatIotSdkInit();
+
+ rtnVal = platonWalletPrepare();
+ ck_assert_int_eq(rtnVal, BOAT_SUCCESS);
+
+ rtnVal = BoatPlatONTxInit(g_platon_wallet_ptr, &tx_ptr, TEST_IS_SYNC_TX, TEST_GAS_PRICE,
+ "333333", TEST_RECIPIENT_ADDRESS, hrp);
+ ck_assert(rtnVal == BOAT_ERROR_COMMON_INVALID_ARGUMENT);
+ BoatIotSdkDeInit();
+}
+END_TEST
+
Suite *make_parameters_suite(void)
{
/* Create Suite */
@@ -214,6 +231,7 @@ Suite *make_parameters_suite(void)
tcase_add_test(tc_param_api, test_004ParametersInit_0004TxInitFailureErrorGasPriceHexFormat);
tcase_add_test(tc_param_api, test_004ParametersInit_0005TxInitSuccessGasPriceHexNullOx);
tcase_add_test(tc_param_api, test_004ParametersInit_0006TxInitFailureGasLimitErrorHexFormat);
+ tcase_add_test(tc_param_api, test_004ParametersInit_0007TxInitSuccessGasLimitHexNullOx);
return s_param;
}
\ No newline at end of file
