Skip to content

Commit 48d5468

Browse files
committed
Fix
1 parent a178e8f commit 48d5468

File tree

2 files changed

+8
-27
lines changed

2 files changed

+8
-27
lines changed

app/src/main/kotlin/org/example/App.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ fun main() {
4545

4646
println(App().greeting)
4747
}
48+
Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,14 @@
1+
/*
2+
* This source file was generated by the Gradle 'init' task
3+
*/
14
package org.example
25

36
import kotlin.test.Test
4-
import kotlin.test.assertEquals
7+
import kotlin.test.assertNotNull
58

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

0 commit comments

Comments
 (0)