From bb6ef0647425cdf22401ad189aaf2802380e1ce1 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Wed, 10 Aug 2016 09:58:02 +0900 Subject: test of having same value --- test/bls_test.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/bls_test.cpp b/test/bls_test.cpp index 1dd3b65..074117f 100644 --- a/test/bls_test.cpp +++ b/test/bls_test.cpp @@ -88,6 +88,13 @@ CYBOZU_TEST_AUTO(k_of_n) } } } + { + prvVec[0] = allPrvVec[0]; + prvVec[1] = allPrvVec[1]; + prvVec[2] = allPrvVec[0]; // same of prvVec[0] + bls::PrivateKey prv; + CYBOZU_TEST_EXCEPTION_MESSAGE(prv.recover(prvVec), std::exception, "same id"); + } { /* n-out-of-n -- cgit v1.2.3