-
Notifications
You must be signed in to change notification settings - Fork 449
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Simon Vergauwen <nomisRev@users.noreply.github.com> Co-authored-by: Francisco Diaz <francisco.d@47deg.com>
- Loading branch information
1 parent
f8c50f3
commit 3d7cb6e
Showing
6 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
arrow-libs/core/arrow-core/src/jvmTest/kotlin/examples/example-raise-dsl-12.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// This file was automatically generated from Raise.kt by Knit tool. Do not edit. | ||
package arrow.core.examples.exampleRaiseDsl12 | ||
|
||
import arrow.core.raise.merge | ||
import io.kotest.matchers.shouldBe | ||
import kotlin.random.Random | ||
|
||
fun test() { | ||
merge { if(Random.nextBoolean()) raise("failed") else "failed" } shouldBe "failed" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters