File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
exercises/practice/diffie-hellman/src/test/kotlin Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 1
1
import org.junit.Test
2
2
import java.math.BigInteger
3
+ import kotlin.test.Ignore
3
4
import kotlin.test.assertEquals
4
5
import kotlin.test.assertNotEquals
5
6
import kotlin.test.assertTrue
@@ -19,6 +20,7 @@ class DiffieHellmanTest {
19
20
* Due to the nature of randomness, there is always a chance that this test fails.
20
21
* Be sure to check the actual generated values.
21
22
*/
23
+ @Ignore
22
24
@Test
23
25
fun `private key is random` () {
24
26
val prime = 7919 .toBigInteger()
@@ -28,6 +30,7 @@ class DiffieHellmanTest {
28
30
assertNotEquals(privateKeyA, privateKeyB)
29
31
}
30
32
33
+ @Ignore
31
34
@Test
32
35
fun `calculate public key using private key` () {
33
36
val primeA = 23 .toBigInteger()
@@ -39,6 +42,7 @@ class DiffieHellmanTest {
39
42
}
40
43
41
44
45
+ @Ignore
42
46
@Test
43
47
fun `calculate secret using other party's public key` () {
44
48
val prime = 23 .toBigInteger()
@@ -50,6 +54,7 @@ class DiffieHellmanTest {
50
54
}
51
55
52
56
57
+ @Ignore
53
58
@Test
54
59
fun `key exchange` () {
55
60
val primeA = 23 .toBigInteger()
You can’t perform that action at this time.
0 commit comments