Skip to content

Commit

Permalink
Resolve cherry-pick conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
DLochmelis33 committed May 8, 2024
1 parent 6f4d4f4 commit 1797f58
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ class LitmusTestScope<S : Any>(
}
}

fun <S : Any> litmusTest(stateProducer: () -> S, setup: LitmusTestScope<S>.() -> Unit) =
fun <S : Any> litmusTest(stateProducer: () -> S, setup: LitmusTestScope<S>.() -> Unit): LitmusTest<*> =
LitmusTestScope(stateProducer).apply(setup).build()
19 changes: 0 additions & 19 deletions testsuite/src/commonMain/kotlin/org/jetbrains/litmuskt/tests/SB.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,25 +28,6 @@ object SB {
}
}

// a sample of infix syntax
val infix = litmusTest {
object : LitmusIIOutcome() {
var x = 0
var y = 0
}
} thread {
x = 1
r1 = y
} thread {
y = 1
r2 = x
} spec {
accept(0, 1)
accept(1, 0)
accept(1, 1)
interesting(0, 0)
}

val volatile = litmusTest({
object : LitmusIIOutcome() {
@Volatile
Expand Down

0 comments on commit 1797f58

Please sign in to comment.