comparison src/test/kotlin/name/blackcap/passman/ShplitterTest.kt @ 20:4391afcf6bd0

Fix more bugs, correct more bad tests.
author David Barts <n5jrn@me.com>
date Sun, 30 Jun 2024 22:28:52 -0700
parents 7d80cbcb67bb
children
comparison
equal deleted inserted replaced
19:7d80cbcb67bb 20:4391afcf6bd0
89 TestDatum("foo\\ x\\x\\\"\"\"", arrayOf<String>("foo xx\"")), 89 TestDatum("foo\\ x\\x\\\"\"\"", arrayOf<String>("foo xx\"")),
90 TestDatum("\"foo\\ x\\x\"", arrayOf<String>("foo xx")), 90 TestDatum("\"foo\\ x\\x\"", arrayOf<String>("foo xx")),
91 TestDatum("\"foo\\ x\\x\\\\\"", arrayOf<String>("foo xx\\")), 91 TestDatum("\"foo\\ x\\x\\\\\"", arrayOf<String>("foo xx\\")),
92 TestDatum("\"foo\\ x\\x\\\\\"\"foobar\"", arrayOf<String>("foo xx\\foobar")), 92 TestDatum("\"foo\\ x\\x\\\\\"\"foobar\"", arrayOf<String>("foo xx\\foobar")),
93 TestDatum("\"foo\\ x\\x\\\\\"\\'\"foobar\"", arrayOf<String>("foo xx\\'foobar")), 93 TestDatum("\"foo\\ x\\x\\\\\"\\'\"foobar\"", arrayOf<String>("foo xx\\'foobar")),
94 TestDatum("\"foo\\ x\\x\\\\\"\\'\"fo'obar\" 'don'\\''t'", arrayOf<String>("foo xx\\'foobar\" don\\t")), 94 TestDatum("\"foo\\ x\\x\\\\\"\\'\"fo'obar\" 'don'\\''t'", arrayOf<String>("foo xx\\'fo'obar", "don't")),
95 TestDatum("'foo\\ bar'", arrayOf<String>("foo\\ bar")), 95 TestDatum("'foo\\ bar'", arrayOf<String>("foo\\ bar")),
96 TestDatum("'foo\\\\ bar'", arrayOf<String>("foo\\\\ bar")), 96 TestDatum("'foo\\\\ bar'", arrayOf<String>("foo\\\\ bar")),
97 TestDatum("foo\\ bar", arrayOf<String>("foo bar")), 97 TestDatum("foo\\ bar", arrayOf<String>("foo bar")),
98 TestDatum("foo#bar\\nbaz", arrayOf<String>("foo#barnbaz")), 98 TestDatum("foo#bar\\nbaz", arrayOf<String>("foo#barnbaz")),
99 TestDatum(":-) ;-)", arrayOf<String>(":-)", ":-)")), 99 TestDatum(":-) ;-)", arrayOf<String>(":-)", ";-)")),
100 TestDatum("áéíóú", arrayOf<String>("áéíóú")) 100 TestDatum("áéíóú", arrayOf<String>("áéíóú"))
101 ) 101 )
102 102
103 fun runArray(testData: Array<TestDatum>) { 103 fun runArray(testData: Array<TestDatum>) {
104 for (testDatum in testData) { 104 for (testDatum in testData) {