Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix documentation typos #838

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading