Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
Format some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
saket committed Dec 28, 2019
1 parent 8d57e22 commit a2efb31
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
input = """
|```▮
""".trimMargin(),
expect ="""
expect = """
|```
|▮
|```
Expand All @@ -24,7 +24,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|```▮
|Batman/Bruce Wayne: In the middle of the day Alfred?
""".trimMargin(),
expect ="""
expect = """
|Alfred: Shall you be taking the Batpod sir?
|```
|▮
Expand All @@ -41,7 +41,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|```kotlin▮
|Batman/Bruce Wayne: In the middle of the day Alfred?
""".trimMargin(),
expect ="""
expect = """
|Alfred: Shall you be taking the Batpod sir?
|```kotlin
|▮
Expand Down Expand Up @@ -103,7 +103,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|
|```▮
""".trimMargin(),
expect ="""
expect = """
|```
|fun someCodeBlock() {}
|```
Expand All @@ -122,7 +122,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|- Milk
|- Bread▮
""".trimMargin(),
expect ="""
expect = """
|# Shopping list
|- Milk
|- Bread
Expand All @@ -136,7 +136,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|+ Milk
|+ Bread▮
""".trimMargin(),
expect ="""
expect = """
|# Shopping list
|+ Milk
|+ Bread
Expand All @@ -150,7 +150,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|* Milk
|* Bread▮
""".trimMargin(),
expect ="""
expect = """
|# Shopping list
|* Milk
|* Bread
Expand Down Expand Up @@ -186,7 +186,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|1. Milk
|2. Bread▮
""".trimMargin(),
expect ="""
expect = """
|# Shopping list
|1. Milk
|2. Bread
Expand All @@ -200,7 +200,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|199. Milk
|200. Bread▮
""".trimMargin(),
expect ="""
expect = """
|# Shopping list
|199. Milk
|200. Bread
Expand Down Expand Up @@ -239,7 +239,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|
|Some other text
""".trimMargin(),
expect ="""
expect = """
|# Shopping list
|- Milk
|- Bread
Expand All @@ -258,7 +258,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|
|Some other text
""".trimMargin(),
expect ="""
expect = """
|# Shopping list
|+ Milk
|+ Bread
Expand All @@ -277,7 +277,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|
|Some other text
""".trimMargin(),
expect ="""
expect = """
|# Shopping list
|* Milk
|* Bread
Expand All @@ -298,7 +298,7 @@ class AutoFormatOnEnterPressTest : BaseApplyMarkdownSyntaxTest() {
|
|Some other text
""".trimMargin(),
expect ="""
expect = """
|# Shopping list
|1. Milk
|2. Bread
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|Batman/Bruce Wayne: In the middle of the day Alfred?
|Alfred: The Lamborghini then? Much more subtle.
""".trimMargin(),
expect ="""
expect = """
|> Alfred: Shall you be taking the Batpod sir?▮
|
|Batman/Bruce Wayne: In the middle of the day Alfred?
Expand All @@ -27,7 +27,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|Batman/Bruce Wayne: In the middle of the day Alfred?▮
|Alfred: The Lamborghini then? Much more subtle.
""".trimMargin(),
expect ="""
expect = """
|Alfred: Shall you be taking the Batpod sir?
|
|> Batman/Bruce Wayne: In the middle of the day Alfred?▮
Expand All @@ -44,7 +44,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|Batman/Bruce Wayne: In the middle of the day Alfred?
|Alfred: The Lamborghini then? Much more subtle.▮
""".trimMargin(),
expect ="""
expect = """
|Alfred: Shall you be taking the Batpod sir?
|Batman/Bruce Wayne: In the middle of the day Alfred?
|
Expand All @@ -61,7 +61,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|
|Alfred: The Lamborghini then? Much more subtle.
""".trimMargin(),
expect ="""
expect = """
|Alfred: Shall you be taking the Batpod sir?
|
|> Batman/Bruce Wayne: In the middle of the day Alfred?▮
Expand All @@ -77,7 +77,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|
|Another line.
""".trimMargin(),
expect ="""
expect = """
|Alfred: Shall you be taking the Batpod sir?
|Batman/Bruce Wayne: In the middle of the day Alfred?
|
Expand All @@ -93,7 +93,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
input = """
|▮
""".trimMargin(),
expect ="""
expect = """
|> ▮
""".trimMargin()
)
Expand All @@ -105,7 +105,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|
|▮
""".trimMargin(),
expect ="""
expect = """
|
|> ▮
""".trimMargin()
Expand All @@ -117,7 +117,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
input = """
|Tell your men they work ▮ for me now. This is my city.
""".trimMargin(),
expect ="""
expect = """
|> Tell your men they work ▮ for me now. This is my city.
""".trimMargin()
)
Expand All @@ -128,7 +128,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
input = """
|Tell your men they work for ▮me▮ now. This is my city.
""".trimMargin(),
expect ="""
expect = """
|> Tell your men they work for ▮me▮ now. This is my city.
""".trimMargin()
)
Expand All @@ -139,7 +139,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
input = """
|▮Tell your men they work for me now. This is my city.▮
""".trimMargin(),
expect ="""
expect = """
|> ▮Tell your men they work for me now. This is my city.▮
""".trimMargin()
)
Expand All @@ -156,7 +156,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|So we'll hunt him. Because he can take it. Because he's not a hero. He's a silent
|guardian. A watchful protector. The Dark Knight.
""".trimMargin(),
expect ="""
expect = """
|> James Gordon: ▮Batman. Batman! Why is he running dad?
|Gordon: Because we have to▮ chase him.
|
Expand All @@ -175,7 +175,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|Tell your men they work for me now. This is my city.
|▮
""".trimMargin(),
expect ="""
expect = """
|Tell your men they work for me now. This is my city.
|
|> ▮
Expand All @@ -189,7 +189,7 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|Tell your men they work for me now. This is my city.
| ▮
""".trimMargin(),
expect ="""
expect = """
|Tell your men they work for me now. This is my city.
|
|> ▮
Expand All @@ -202,15 +202,15 @@ class BlockQuoteSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
input = """
|> Tell your men they work for me now. This is my city.▮
""".trimMargin(),
expect ="""
expect = """
|>> Tell your men they work for me now. This is my city.▮
""".trimMargin()
)
BlockQuoteSyntaxApplier.test(
input = """
|>> Tell your men they work for me now. This is my city.▮
""".trimMargin(),
expect ="""
expect = """
|>>> Tell your men they work for me now. This is my city.▮
""".trimMargin()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ class EmphasisSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
@Test fun `insert at cursor position`() {
EmphasisSyntaxApplier.test(
input = "You think ▮ can last?",
expect ="You think *▮* can last?"
expect = "You think *▮* can last?"
)
}

@Test fun `apply to selection`() {
EmphasisSyntaxApplier.test(
input = "You think ▮this▮ can last?",
expect ="You think ▮*this*▮ can last?"
expect = "You think ▮*this*▮ can last?"
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class FencedCodeBlockSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|John Blake: Blake sir.
|Gordon: You have something you wanna ask me Officer Blake?
""".trimMargin(),
expect ="""
expect = """
|```
|Gordon: What's your name son?▮
|```
Expand All @@ -28,7 +28,7 @@ class FencedCodeBlockSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|John Blake: Blake sir.▮
|Gordon: You have something you wanna ask me Officer Blake?
""".trimMargin(),
expect ="""
expect = """
|Gordon: What's your name son?
|```
|John Blake: Blake sir.▮
Expand All @@ -45,7 +45,7 @@ class FencedCodeBlockSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|John Blake: Blake sir.
|Gordon: You have something you wanna ask me Officer Blake?▮
""".trimMargin(),
expect ="""
expect = """
|Gordon: What's your name son?
|John Blake: Blake sir.
|```
Expand All @@ -60,7 +60,7 @@ class FencedCodeBlockSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
input = """
|▮
""".trimMargin(),
expect ="""
expect = """
|```
|▮
|```
Expand All @@ -74,7 +74,7 @@ class FencedCodeBlockSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|
|▮
""".trimMargin(),
expect ="""
expect = """
|
|```
|▮
Expand All @@ -88,7 +88,7 @@ class FencedCodeBlockSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
input = """
|You have something you ▮ wanna ask me Officer Blake?
""".trimMargin(),
expect ="""
expect = """
|```
|You have something you ▮ wanna ask me Officer Blake?
|```
Expand All @@ -101,7 +101,7 @@ class FencedCodeBlockSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
input = """
|You have something you wanna ▮ask me▮ Officer Blake?
""".trimMargin(),
expect ="""
expect = """
|```
|You have something you wanna ▮ask me▮ Officer Blake?
|```
Expand All @@ -114,7 +114,7 @@ class FencedCodeBlockSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
input = """
|▮You have something you wanna ask me Officer Blake?▮
""".trimMargin(),
expect ="""
expect = """
|```
|▮You have something you wanna ask me Officer Blake?▮
|```
Expand All @@ -128,7 +128,7 @@ class FencedCodeBlockSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|What's your name son?
|▮
""".trimMargin(),
expect ="""
expect = """
|What's your name son?
|```
|▮
Expand All @@ -143,7 +143,7 @@ class FencedCodeBlockSyntaxApplierTest : BaseApplyMarkdownSyntaxTest() {
|What's your name son?
| ▮
""".trimMargin(),
expect ="""
expect = """
|What's your name son?
|```
| ▮
Expand Down
Loading

0 comments on commit a2efb31

Please sign in to comment.