diff --git a/test/bn_test.cpp b/test/bn_test.cpp index c41494d..a7d67a3 100644 --- a/test/bn_test.cpp +++ b/test/bn_test.cpp @@ -128,6 +128,10 @@ void testMapToG2() if (BN::param.b == 2) { CYBOZU_TEST_EXCEPTION(BN::mapToG2(g, 0), cybozu::Exception); } + Fp x; + x.setMsg("abc"); + BN::mapToG2(g, Fp2(x, 0)); + CYBOZU_TEST_ASSERT(g.isValid()); } void testCyclotomic()