Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions core-tests/jvm/src/test/scala/zio/PlatformSpec.scala

This file was deleted.

22 changes: 22 additions & 0 deletions core-tests/jvm/src/test/scala/zio/platform/PlatformSpec.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package zio.platform

import zio.ZIOBaseSpec
import zio.test.Assertion._
import zio.test._
import zio.test.mock.EnvironmentSpec.Platform

object PlatformSpec
extends ZIOBaseSpec(
suite("PlatformSpec")(
suite("PlatformLive fatal:")(
test("Platform.fatal should identify a nonFatal exception") {
val nonFatal = new Exception
assert(Platform.fatal(nonFatal), isFalse)
},
test("Platform.fatal should identify a fatal exception") {
val fatal = new OutOfMemoryError
assert(Platform.fatal(fatal), isTrue)
}
)
)
)