From 81aa36ec3b5b786d78ce219a305a7d51e94d7670 Mon Sep 17 00:00:00 2001 From: MITSUNARI Shigeo Date: Thu, 4 Aug 2016 16:38:13 +0900 Subject: [PATCH] add test --- test/bn_test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/bn_test.cpp b/test/bn_test.cpp index a48f9a0..4510097 100644 --- a/test/bn_test.cpp +++ b/test/bn_test.cpp @@ -95,6 +95,17 @@ CYBOZU_TEST_AUTO(naive) CYBOZU_BENCH("finalExp", BN::finalExp, e1, e1); // 1.3Mclk } +CYBOZU_TEST_AUTO(HashMapToG1) +{ + mcl::bn::HashMapToG1 hash; + + for (int i = 0; i < 10; i++) { + G1 g; + hash.calc(g, i, 2); + std::cout << i << ':' << g << std::endl; + } +} + int main(int argc, char *argv[]) try {