Skip to content

Commit

Permalink
Initial version - no effects yet
Browse files Browse the repository at this point in the history
  • Loading branch information
OndrejSpanel committed Mar 15, 2023
0 parents commit 8b4b657
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/target/
/project/target/
/.idea/
/.bsp/
12 changes: 12 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
ThisBuild / version := "0.1.0-SNAPSHOT"

ThisBuild / scalaVersion := "2.13.10"

lazy val root = (project in file("."))
.settings(
name := "ScalaTestCheck",
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.11" % Test,
libraryDependencies += "org.scalacheck" %% "scalacheck" % "1.16.0" % Test,
libraryDependencies += "org.typelevel" %% "scalacheck-effect" % "1.0.4" % Test,
libraryDependencies += "org.scalatestplus" %% "scalacheck-1-15" % "3.2.11.0" % Test,
)
1 change: 1 addition & 0 deletions project/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sbt.version = 1.8.2
5 changes: 5 additions & 0 deletions src/main/scala/Main.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
object Main {
def main(args: Array[String]): Unit = {
println("Hello world!")
}
}
14 changes: 14 additions & 0 deletions src/test/scala/MainTest.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import org.scalatest.flatspec.AsyncFlatSpec
import org.scalatest.matchers.should.Matchers
import org.scalacheck._
import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks

class MainTest extends AsyncFlatSpec with Matchers with ScalaCheckPropertyChecks {
behavior of "Main"

it should "perform computations" in {
forAll(Gen.oneOf(0 until 10)) { i =>
assert(i < 5) // intentional fail - we want to see how the failure is reported
}
}
}

0 comments on commit 8b4b657

Please sign in to comment.