test: Fix test case false expectations
issue
@@ -513,7 +513,7 @@ START_TEST(test_002InitWallet_0014InitEthWalletWithWrongGenMode)
rtnVal = BoatEthWalletInit(&walletConfig, sizeof(BoatEthWalletConfig));
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_nonnull(rtnVal);
+ ck_assert_ptr_null(rtnVal);
/* 2-2. verify the global variables that be affected */
}
@@ -533,7 +533,7 @@ START_TEST(test_002InitWallet_0015InitEthWalletWithWrongKeyFormat)
rtnVal = BoatEthWalletInit(&walletConfig, sizeof(BoatEthWalletConfig));
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_nonnull(rtnVal);
+ ck_assert_ptr_null(rtnVal);
/* 2-2. verify the global variables that be affected */
}
@@ -554,7 +554,7 @@ START_TEST(test_002InitWallet_0016InitEthWalletWithWrongType)
rtnVal = BoatEthWalletInit(&walletConfig, sizeof(BoatEthWalletConfig));
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_nonnull(rtnVal);
+ ck_assert_ptr_null(rtnVal);
/* 2-2. verify the global variables that be affected */
}
