Skip to content

Commit 338a290

Browse files
committed
Fix
1 parent 48d5468 commit 338a290

File tree

1 file changed

+27
-7
lines changed

1 file changed

+27
-7
lines changed
Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,34 @@
1-
/*
2-
* This source file was generated by the Gradle 'init' task
3-
*/
41
package org.example
52

63
import kotlin.test.Test
7-
import kotlin.test.assertNotNull
4+
import kotlin.test.assertEquals
5+
import kotlin.test.assertTrue
86

97
class AppTest {
10-
@Test fun appHasAGreeting() {
11-
val classUnderTest = App()
12-
assertNotNull(classUnderTest.greeting, "app should have a greeting")
8+
9+
private val zkCoinJoin = ZKCoinJoin()
10+
11+
@Test
12+
fun testAddParticipant() {
13+
val result = zkCoinJoin.addParticipant("Alice")
14+
assertEquals("Participant Alice added to the CoinJoin.", result, "Failed to add participant to CoinJoin")
15+
}
16+
17+
@Test
18+
fun testGenerateProof() {
19+
val result = zkCoinJoin.generateProof("Alice")
20+
assertEquals("Generated Zero-Knowledge proof for Alice.", result, "Failed to generate Zero-Knowledge proof")
21+
}
22+
23+
@Test
24+
fun testPerformCoinJoin() {
25+
val result = zkCoinJoin.performCoinJoin()
26+
assertEquals("CoinJoin completed using Zero-Knowledge proofs.", result, "Failed to perform CoinJoin process")
27+
}
28+
29+
@Test
30+
fun testGreeting() {
31+
val app = App()
32+
assertEquals("Hello World!", app.greeting, "Greeting did not match expected output")
1333
}
1434
}

0 commit comments

Comments
 (0)