fix: fix check error
@@ -728,7 +728,7 @@ START_TEST(test_002InitWallet_0009InitEthWalletWithNullConfig)
rtnVal = BoatEthWalletInit(NULL, sizeof(BoatEthWalletConfig));
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_null(rtnVal);
+ ck_assert_ptr_eq(rtnVal,NULL);
/* 2-2. verify the global variables that be affected */
}
@@ -743,7 +743,7 @@ START_TEST(test_002InitWallet_0010InitEthWalletWithSmallerSize)
rtnVal = BoatEthWalletInit(&walletConfig, sizeof(BoatEthWalletConfig) - 1);
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_null(rtnVal);
+ ck_assert_ptr_eq(rtnVal,NULL);
/* 2-2. verify the global variables that be affected */
}
@@ -758,7 +758,7 @@ START_TEST(test_002InitWallet_0011InitEthWalletWithBiggerSize)
rtnVal = BoatEthWalletInit(&walletConfig, sizeof(BoatEthWalletConfig) + 1);
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_null(rtnVal);
+ ck_assert_ptr_eq(rtnVal,NULL);
/* 2-2. verify the global variables that be affected */
}
@@ -773,7 +773,7 @@ START_TEST(test_002InitWallet_0012InitEthWalletSuccess)
rtnVal = BoatEthWalletInit(&walletConfig, sizeof(BoatEthWalletConfig));
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_nonnull(rtnVal);
+ ck_assert_ptr_ne(rtnVal,NULL);
/* 2-2. verify the global variables that be affected */
}
@@ -793,7 +793,7 @@ START_TEST(test_002InitWallet_0013InitEthWalletGenerationKey)
rtnVal = BoatEthWalletInit(&walletConfig, sizeof(BoatEthWalletConfig));
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_nonnull(rtnVal);
+ ck_assert_ptr_ne(rtnVal,NULL);
/* 2-2. verify the global variables that be affected */
}
@@ -813,7 +813,7 @@ START_TEST(test_002InitWallet_0014InitEthWalletWithWrongGenMode)
rtnVal = BoatEthWalletInit(&walletConfig, sizeof(BoatEthWalletConfig));
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_null(rtnVal);
+ ck_assert_ptr_eq(rtnVal,NULL);
}
END_TEST
@@ -831,7 +831,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_ne(rtnVal,NULL);
}
END_TEST
@@ -850,7 +850,7 @@ START_TEST(test_002InitWallet_0016InitEthWalletWithWrongType)
rtnVal = BoatEthWalletInit(&walletConfig, sizeof(BoatEthWalletConfig));
/* 2. verify test result */
/* 2-1. verify the return value */
- ck_assert_ptr_null(rtnVal);
+ ck_assert_ptr_eq(rtnVal,NULL);
}
END_TEST
