Skip to content

Commit

Permalink
Merge pull request #838 from jnd-au/typos
Browse files Browse the repository at this point in the history
Fix documentation typos
  • Loading branch information
tgodzik authored Oct 7, 2024
2 parents 1472387 + 270eb85 commit e52a63c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/fixtures.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion docs/tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 :

Expand Down
2 changes: 1 addition & 1 deletion munit-diff/shared/src/main/scala/munit/diff/Printer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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
* }
* }
Expand Down

0 comments on commit e52a63c

Please sign in to comment.