diff --git a/docs/fixtures.md b/docs/fixtures.md index 71cc69c7..83f8f270 100644 --- a/docs/fixtures.md +++ b/docs/fixtures.md @@ -156,7 +156,7 @@ class MySuite extends munit.FunSuite { ## Ad-hoc suite-local fixtures Override `beforeAll()` and `afterAll()` to add custom logic that should run -before all test cases start runniing and after all tests cases have finished +before all test cases start running and after all tests cases have finished running. For example, use this feature to establish a database connection that should be reused between test cases. diff --git a/docs/tests.md b/docs/tests.md index 9d347d23..ccbc5e2b 100644 --- a/docs/tests.md +++ b/docs/tests.md @@ -125,7 +125,7 @@ class CustomTimeoutSuite extends munit.FunSuite { MUnit uses its own `Printer`s to convert any value into a diff-ready string representation. The resulting string is the actual value being compared, and is also used to generate the clues in case of a failure. -The default printing behaviour can be overriden for a given type by defining a custom `Printer` and overriding `printer`. +The default printing behaviour can be overridden for a given type by defining a custom `Printer` and overriding `printer`. Override `printer` to customize the comparison of two values : diff --git a/munit-diff/shared/src/main/scala/munit/diff/Printer.scala b/munit-diff/shared/src/main/scala/munit/diff/Printer.scala index 25395c3f..7d5e713b 100644 --- a/munit-diff/shared/src/main/scala/munit/diff/Printer.scala +++ b/munit-diff/shared/src/main/scala/munit/diff/Printer.scala @@ -30,7 +30,7 @@ trait Printer { * * trait MySuites extends FunSuite { * override val printer = Printer.apply { - * case Person(name, age, mail) => s"$name:$age:$mail" + * case Person(name, age, mail) => s"\$name:\$age:\$mail" * case m: SomeOtherCaseClass => m.someCustomToString * } * }