Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/test/java/org/bouncycastle/pqc/math/ntru/euclid/test/BigIntEuclideanTest.java')
-rw-r--r--core/src/test/java/org/bouncycastle/pqc/math/ntru/euclid/test/BigIntEuclideanTest.java23
1 files changed, 0 insertions, 23 deletions
diff --git a/core/src/test/java/org/bouncycastle/pqc/math/ntru/euclid/test/BigIntEuclideanTest.java b/core/src/test/java/org/bouncycastle/pqc/math/ntru/euclid/test/BigIntEuclideanTest.java
deleted file mode 100644
index 2cb94675..00000000
--- a/core/src/test/java/org/bouncycastle/pqc/math/ntru/euclid/test/BigIntEuclideanTest.java
+++ /dev/null
@@ -1,23 +0,0 @@
-package org.bouncycastle.pqc.math.ntru.euclid.test;
-
-import java.math.BigInteger;
-
-import junit.framework.TestCase;
-import org.bouncycastle.pqc.math.ntru.euclid.BigIntEuclidean;
-
-public class BigIntEuclideanTest
- extends TestCase
-{
- public void testCalculate()
- {
- BigIntEuclidean r = BigIntEuclidean.calculate(BigInteger.valueOf(120), BigInteger.valueOf(23));
- assertEquals(BigInteger.valueOf(-9), r.x);
- assertEquals(BigInteger.valueOf(47), r.y);
- assertEquals(BigInteger.valueOf(1), r.gcd);
-
- r = BigIntEuclidean.calculate(BigInteger.valueOf(126), BigInteger.valueOf(231));
- assertEquals(BigInteger.valueOf(2), r.x);
- assertEquals(BigInteger.valueOf(-1), r.y);
- assertEquals(BigInteger.valueOf(21), r.gcd);
- }
-} \ No newline at end of file