Skip to content

Instantly share code, notes, and snippets.

@dacr
Last active May 13, 2023 11:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dacr/224d5b639f4a32ac434cf16590bfc9cc to your computer and use it in GitHub Desktop.
Save dacr/224d5b639f4a32ac434cf16590bfc9cc to your computer and use it in GitHub Desktop.
Simplest scalatest test framework usage. / published by https://github.com/dacr/code-examples-manager #d24d8cb3-45c0-4d88-b033-7fae2325607b/e6bda58d8e18415ea4b3834825a841f35c0ab949
// summary : Simplest scalatest test framework usage.
// keywords : scala, scalatest, pi, @testable
// publish : gist
// authors : David Crosson
// license : Apache NON-AI License Version 2.0 (https://raw.githubusercontent.com/non-ai-licenses/non-ai-licenses/main/NON-AI-APACHE2)
// id : d24d8cb3-45c0-4d88-b033-7fae2325607b
// created-on : 2020-05-31T19:54:52Z
// managed-by : https://github.com/dacr/code-examples-manager
// run-with : scala-cli $file
// ---------------------
//> using scala "3.2.2"
//> using dep "org.scalatest::scalatest:3.2.15"
// ---------------------
import org.scalatest.*, matchers.should.Matchers.*
math.Pi shouldBe 3.14d +- 0.01d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment