From 399a97961a2410aa69913cb46f462fa817f05c49 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Sun, 26 Mar 2017 14:44:01 +0900 Subject: [PATCH] add test of mapToG2 --- test/bn_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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()