diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-01-17 21:48:03 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-01-18 13:55:51 +0000 |
commit | ab2e9953b4759767f25806944f349ef08c25bcef (patch) | |
tree | 4f92daddccc2e5d83468bd21bfbe1fc19eac5ce9 /tests | |
parent | Merge pull request #3091 (diff) | |
download | monero-ab2e9953b4759767f25806944f349ef08c25bcef.tar.xz |
unit_tests: do not ASSERT_TRUE(decodeRct(...))
decodeRct returns the amount, which may be zero
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_tests/ringct.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/unit_tests/ringct.cpp b/tests/unit_tests/ringct.cpp index 6956179c1..f7648648a 100644 --- a/tests/unit_tests/ringct.cpp +++ b/tests/unit_tests/ringct.cpp @@ -177,7 +177,7 @@ TEST(ringct, range_proofs) ASSERT_TRUE(verRct(s)); //decode received amount - ASSERT_TRUE(decodeRct(s, amount_keys[1], 1, mask)); + decodeRct(s, amount_keys[1], 1, mask); // Ring CT with failing MG sig part should not verify! // Since sum of inputs != outputs @@ -194,7 +194,7 @@ TEST(ringct, range_proofs) ASSERT_FALSE(verRct(s)); //decode received amount - ASSERT_TRUE(decodeRct(s, amount_keys[1], 1, mask)); + decodeRct(s, amount_keys[1], 1, mask); } TEST(ringct, range_proofs_with_fee) @@ -241,7 +241,7 @@ TEST(ringct, range_proofs_with_fee) ASSERT_TRUE(verRct(s)); //decode received amount - ASSERT_TRUE(decodeRct(s, amount_keys[1], 1, mask)); + decodeRct(s, amount_keys[1], 1, mask); // Ring CT with failing MG sig part should not verify! // Since sum of inputs != outputs @@ -258,7 +258,7 @@ TEST(ringct, range_proofs_with_fee) ASSERT_FALSE(verRct(s)); //decode received amount - ASSERT_TRUE(decodeRct(s, amount_keys[1], 1, mask)); + decodeRct(s, amount_keys[1], 1, mask); } TEST(ringct, simple) @@ -316,7 +316,7 @@ TEST(ringct, simple) ASSERT_TRUE(verRctSimple(s)); //decode received amount corresponding to output pubkey index 1 - ASSERT_TRUE(decodeRctSimple(s, amount_keys[1], 1, mask)); + decodeRctSimple(s, amount_keys[1], 1, mask); } static rct::rctSig make_sample_rct_sig(int n_inputs, const uint64_t input_amounts[], int n_outputs, const uint64_t output_amounts[], bool last_is_fee) |