aboutsummaryrefslogtreecommitdiffstats
path: root/test/bls_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/bls_test.cpp')
-rw-r--r--test/bls_test.cpp7
1 files changed, 7 insertions, 0 deletions
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
@@ -89,6 +89,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
can recover