-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
56 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
43 changes: 43 additions & 0 deletions
43
tests/unit/src/test/scala-3/tests/markdown/FailPositionSuite.scala
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package tests.markdown | ||
|
||
import tests.markdown.StringSyntax._ | ||
import tests.markdown.Compat | ||
|
||
class FailPositionSuite extends BaseMarkdownSuite { | ||
|
||
check( | ||
"position", | ||
"""|```scala mdoc | ||
|extension (x: Int) | ||
| def ===(y: Int) = x == y | ||
|``` | ||
| | ||
|```scala mdoc:fail | ||
|1 === "" | ||
|``` | ||
| | ||
|```scala mdoc:silent | ||
| 1 === 1 | ||
|``` | ||
""".stripMargin, | ||
"""|```scala | ||
|extension (x: Int) | ||
| def ===(y: Int) = x == y | ||
|``` | ||
| | ||
|```scala | ||
|1 === "" | ||
|// error: | ||
|// Found: ("" : String) | ||
|// Required: Int | ||
|// 1 === "" | ||
|// ^^ | ||
|``` | ||
| | ||
|```scala | ||
| 1 === 1 | ||
|``` | ||
""".stripMargin | ||
) | ||
|
||
} |
This file contains 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