Skip to content
This repository has been archived by the owner on Jun 7, 2022. It is now read-only.

Commit

Permalink
✅こんなもんか.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanai10a committed Jan 19, 2021
1 parent 401fe02 commit bab7a2d
Showing 1 changed file with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,52 @@ internal class ParseCommandTest {
listOf("A", "falsis,", "devatio", "magnum", "eleates."),
func("A falsis, devatio magnum eleates.")
)

assertEquals(
listOf("When", "the", "ferengi", "resists", "for", "nowhere,", "all", "ships", "gather", "post-apocalyptic,", "clear", "nanomachines."),
func("When the ferengi resists for nowhere, all ships gather post-apocalyptic, clear nanomachines.")
)

assertEquals(
listOf("Happiness", "happens", "when", "you", "need", "extend", "so", "agreeable", "that", "whatsoever you are", "contacting", "is", "your", "vision."),
func("""Happiness happens when you need extend so agreeable that "whatsoever you are" contacting is your vision.""")
)

assertEquals(
listOf("a", "b", "c", "d"),
func("a b\tc d")
)

assertEquals(
listOf("a", "b"),
func("a \t\n\rb")
)

assertEquals(
listOf("a b"),
func("a\\ b")
)

assertEquals(
listOf(""),
func(" ")
)

assertEquals(
listOf("hey"),
func("""
|hey
""".trimMargin("|"))
)

assertEquals(
listOf("hoge??", " ", "fuga??"),
func("""
|hoge??
|\ 
|   
|fuga??
""".trimMargin("|"))
)
}
}

0 comments on commit bab7a2d

Please sign in to comment.