Skip to content

Commit

Permalink
test unit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
goatpig committed Apr 23, 2014
1 parent c3bc3e9 commit 92f760e
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions cppForSwig/gtest/CppBlockUtilsTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@
#include "../BlockUtils.h"
#include "../EncryptionUtils.h"

#ifdef mlock
#undef mlock
#undef munlock
#endif

#ifdef _MSC_VER
#include "win32_posix.h"
#undef close
Expand Down Expand Up @@ -7465,15 +7470,6 @@ TEST_F(TestCryptoECDSA, SECP256K1MultScalars)
EXPECT_EQ(multRes, testRes);
}

TEST_F(TestCryptoECDSA, InvMod)
{
SecureBinaryData m(READHEX("03")); // 3
SecureBinaryData modulo(READHEX("a0")); // 160
SecureBinaryData testRes = CryptoECDSA().InvMod(m, modulo);

EXPECT_EQ(invModRes, testRes); // Result should be 0x6b, or 107.
}

////////////////////////////////////////////////////////////////////////////////
/* Never got around to finishing this...
class TestMainnetBlkchain: public ::testing::Test
Expand Down

0 comments on commit 92f760e

Please sign in to comment.