Skip to content

Commit

Permalink
Improve tests for UnescapeInlineCode
Browse files Browse the repository at this point in the history
  • Loading branch information
bravo-kernel committed Apr 16, 2023
1 parent 0cefb98 commit 7a354bf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Private/UnescapeInlineCode.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function UnescapeInlineCode() {
file content. This means we have no way to support `\>` inside inline code.
.LINK
https://regex101.com/r/kBl7v8/1
https://regex101.com/r/80DpiH/1
#>
param(
[Parameter(Mandatory = $True)][System.IO.FileSystemInfo]$MarkdownFile
Expand Down
5 changes: 5 additions & 0 deletions Tests/Integration/UnescapeInlineCode/Expected.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ With leading text `<inlinecode1>` and `<inlinecode2>` with trailing text

`<inlinecode1>` `<inlinecode2>` `<inlinecode3>` `<inlinecode4>`

`<inlinecode1><inlinecode2>`
`<inlinecode1> <inlinecode2> trailing`
`leading <inlinecode1> <inlinecode2>`
`boxed <inlinecode1> <inlinecode2> boxed`

## PARAMETERS

### -Dummy
Expand Down
5 changes: 5 additions & 0 deletions Tests/Integration/UnescapeInlineCode/UnescapeInlineCode.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ function Test-UnescapeInlineCode {
With leading text `<inlinecode1>` and `<inlinecode2>` with trailing text
`<inlinecode1>` `<inlinecode2>` `<inlinecode3>` `<inlinecode4>`
`<inlinecode1><inlinecode2>`
`<inlinecode1> <inlinecode2> trailing`
`leading <inlinecode1> <inlinecode2>`
`boxed <inlinecode1> <inlinecode2> boxed`
#>
[CmdletBinding()]
param(
Expand Down

0 comments on commit 7a354bf

Please sign in to comment.