Created
October 16, 2019 16:53
-
-
Save joyoyoyoyoyo/12d448a1f192e0a78d042c23bce2cff9 to your computer and use it in GitHub Desktop.
coderpad example
This file contains hidden or 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
| # sbt | |
| # (may want to keep parts of 'project') | |
| bin/ | |
| project/ | |
| target/ | |
| build/ | |
| # eclipse | |
| build | |
| .classpath | |
| .project | |
| .settings | |
| .worksheet | |
| # intellij idea | |
| *.log | |
| *.iml | |
| *.ipr | |
| *.iws | |
| .idea | |
| # mac | |
| .DS_Store | |
| # other? | |
| .history | |
| .scala_dependencies | |
| .cache | |
| .cache-main | |
| #general | |
| *.class | |
| dist/* | |
| target/ | |
| lib_managed/ | |
| src_managed/ | |
| project/boot/ | |
| project/plugins/project/ | |
| .history | |
| .cache | |
| .lib/ | |
| # User-specific stuff | |
| .idea/**/workspace.xml | |
| .idea/**/tasks.xml | |
| .idea/**/usage.statistics.xml | |
| .idea/**/dictionaries | |
| .idea/**/shelf | |
| # Generated files | |
| .idea/**/contentModel.xml | |
| # Sensitive or high-churn files | |
| .idea/**/dataSources/ | |
| .idea/**/dataSources.ids | |
| .idea/**/dataSources.local.xml | |
| .idea/**/sqlDataSources.xml | |
| .idea/**/dynamic.xml | |
| .idea/**/uiDesigner.xml | |
| .idea/**/dbnavigator.xml | |
| # Gradle | |
| .idea/**/gradle.xml | |
| .idea/**/libraries | |
| # Gradle and Maven with auto-import | |
| # When using Gradle or Maven with auto-import, you should exclude module files, | |
| # since they will be recreated, and may cause churn. Uncomment if using | |
| # auto-import. | |
| # .idea/modules.xml | |
| # .idea/*.iml | |
| # .idea/modules | |
| # *.iml | |
| # *.ipr | |
| # CMake | |
| cmake-build-*/ | |
| # Mongo Explorer plugin | |
| .idea/**/mongoSettings.xml | |
| # File-based project format | |
| *.iws | |
| # IntelliJ | |
| out/ | |
| # mpeltonen/sbt-idea plugin | |
| .idea_modules/ | |
| # JIRA plugin | |
| atlassian-ide-plugin.xml | |
| # Cursive Clojure plugin | |
| .idea/replstate.xml | |
| # Crashlytics plugin (for Android Studio and IntelliJ) | |
| com_crashlytics_export_strings.xml | |
| crashlytics.properties | |
| crashlytics-build.properties | |
| fabric.properties | |
| # Editor-based Rest Client | |
| .idea/httpRequests | |
| # Android studio 3.1+ serialized cache file | |
| .idea/caches/build_file_checksums.ser | |
| .gradle | |
| /build/ | |
| # Ignore Gradle GUI config | |
| gradle-app.setting | |
| # Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored) | |
| !gradle-wrapper.jar | |
| # Cache of project | |
| .gradletasknamecache | |
| # # Work around https://youtrack.jetbrains.com/issue/IDEA-116898 | |
| # gradle/wrapper/gradle-wrapper.properties |
This file contains hidden or 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
| sbt.version = 1.3.3 |
This file contains hidden or 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
| name := "coderpads" | |
| version := "0.1" | |
| scalaVersion := "2.12.10" | |
| libraryDependencies ++= Seq ( | |
| "com.chuusai" %% "shapeless" % "2.3.2", | |
| "org.scalacheck" %% "scalacheck" % "1.13.4", | |
| "org.scalactic" %% "scalactic" % "3.0.1", | |
| "org.scalamock" %% "scalamock-scalatest-support" % "3.5.0", | |
| "org.scalatest" %% "scalatest" % "3.0.1", | |
| "org.scalaz" %% "scalaz-core" % "7.2.12", | |
| "org.typelevel" %% "cats" % "0.9.0", | |
| "com.google.guava" % "guava" % "28.1-jre", | |
| // "org.junit.jupiter" % "junit-jupiter-api" % "5.5.2" % Test, | |
| "org.junit" % "junit" % "5.3.1" % Test, | |
| "org.jmock" % "jmock-junit5" % "2.11.0" % Test, | |
| ) | |
| resolvers ++= Seq( | |
| "snapshots" at "http://oss.sonatype.org/content/repositories/snapshots", | |
| "releases" at "http://oss.sonatype.org/content/repositories/releases" | |
| ) |
This file contains hidden or 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
| import org.scalacheck.util.Testable | |
| import org.scalatest.{FunSuite, Matchers} | |
| object Solution extends App { | |
| new Testable().execute(); | |
| } | |
| class Testable extends FunSuite with Matchers { | |
| test("check boolean") { | |
| assert(true, "boolean value is true") | |
| } | |
| test("compare numbers") { | |
| assert(2 === 2) | |
| } | |
| test("compare lists") { | |
| assert(Seq(1, 2, 3) === Seq(1,2,3)) | |
| } | |
| } | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment