Skip to content

Commit 31ca137

Browse files
Add transpose test cases
1 parent 80c7f7b commit 31ca137

File tree

1 file changed

+206
-0
lines changed

1 file changed

+206
-0
lines changed

transpose.json

Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
{
2+
"#": [
3+
"JSON doesn't allow for multi-line strings, so all multi-line input is ",
4+
"presented here as arrays of strings. It's up to the test generator to join the ",
5+
"lines together with line breaks."
6+
],
7+
"cases": [
8+
{
9+
"description": "empty string",
10+
"input": "",
11+
"expected": ""
12+
},
13+
{
14+
"description": "two characters",
15+
"input": "A1",
16+
"expected": [
17+
"A",
18+
"1"
19+
]
20+
},
21+
{
22+
"description": "simple",
23+
"input": [
24+
"ABC",
25+
"123"
26+
],
27+
"expected": [
28+
"A1",
29+
"B2",
30+
"C3"
31+
]
32+
},
33+
{
34+
"description": "single line",
35+
"input": "Single line.",
36+
"expected": [
37+
"S",
38+
"i",
39+
"n",
40+
"g",
41+
"l",
42+
"e",
43+
" ",
44+
"l",
45+
"i",
46+
"n",
47+
"e",
48+
"."
49+
]
50+
},
51+
{
52+
"description": "two lines",
53+
"input": [
54+
"The first line.",
55+
"The second line."
56+
],
57+
"expected": [
58+
"TT",
59+
"hh",
60+
"ee",
61+
" ",
62+
"fs",
63+
"ie",
64+
"rc",
65+
"so",
66+
"tn",
67+
" d",
68+
"l ",
69+
"il",
70+
"ni",
71+
"en",
72+
".e",
73+
"."
74+
]
75+
},
76+
{
77+
"description": "square",
78+
"input": [
79+
"HEART",
80+
"EMBER",
81+
"ABUSE",
82+
"RESIN",
83+
"TREND"
84+
],
85+
"expected": [
86+
"HEART",
87+
"EMBER",
88+
"ABUSE",
89+
"RESIN",
90+
"TREND"
91+
]
92+
},
93+
{
94+
"description": "rectangle",
95+
"input": [
96+
"FRACTURE",
97+
"OUTLINED",
98+
"BLOOMING",
99+
"SEPTETTE"
100+
],
101+
"expected": [
102+
"FOBS",
103+
"RULE",
104+
"ATOP",
105+
"CLOT",
106+
"TIME",
107+
"UNIT",
108+
"RENT",
109+
"EDGE"
110+
]
111+
},
112+
{
113+
"description": "triangle",
114+
"input": [
115+
"T",
116+
"EE",
117+
"AAA",
118+
"SSSS",
119+
"EEEEE",
120+
"RRRRRR"
121+
],
122+
"expected": [
123+
"TEASER",
124+
"EASER",
125+
"ASER",
126+
"SER",
127+
"ER",
128+
"R"
129+
]
130+
},
131+
{
132+
"description": "many lines",
133+
"input": [
134+
"Chor. Two households, both alike in dignity,",
135+
"In fair Verona, where we lay our scene,",
136+
"From ancient grudge break to new mutiny,",
137+
"Where civil blood makes civil hands unclean.",
138+
"From forth the fatal loins of these two foes",
139+
"A pair of star-cross'd lovers take their life;",
140+
"Whose misadventur'd piteous overthrows",
141+
"Doth with their death bury their parents' strife.",
142+
"The fearful passage of their death-mark'd love,",
143+
"And the continuance of their parents' rage,",
144+
"Which, but their children's end, naught could remove,",
145+
"Is now the two hours' traffic of our stage;",
146+
"The which if you with patient ears attend,",
147+
"What here shall miss, our toil shall strive to mend."
148+
],
149+
"expected": [
150+
"CIFWFAWDTAWITW",
151+
"hnrhr hohnhshh",
152+
"o oeopotedi ea",
153+
"rfmrmash cn t",
154+
".a e ie fthow ",
155+
" ia fr weh,whh",
156+
"Trnco miae ie",
157+
"w ciroitr btcr",
158+
"oVivtfshfcuhhe",
159+
" eeih a uote ",
160+
"hrnl sdtln is",
161+
"oot ttvh tttfh",
162+
"un bhaeepihw a",
163+
"saglernianeoyl",
164+
"e,ro -trsui ol",
165+
"h uofcu sarhu ",
166+
"owddarrdan o m",
167+
"lhg to'egccuwi",
168+
"deemasdaeehris",
169+
"sr als t ists",
170+
",ebk 'phool'h,",
171+
" reldi ffd ",
172+
"bweso tb rtpo",
173+
"oea ileutterau",
174+
"t kcnoorhhnatr",
175+
"hl isvuyee'fi ",
176+
" atv es iisfet",
177+
"ayoior trr ino",
178+
"l lfsoh ecti",
179+
"ion vedpn l",
180+
"kuehtteieadoe ",
181+
"erwaharrar,fas",
182+
" nekt te rh",
183+
"ismdsehphnnosa",
184+
"ncuse ra-tau l",
185+
" et tormsural",
186+
"dniuthwea'g t ",
187+
"iennwesnr hsts",
188+
"g,ycoitkrttet",
189+
"n,l rs'a anr",
190+
"ief 'dgcgdi",
191+
"taol eoe,v",
192+
"yneisl,u;e",
193+
",.sftol ",
194+
"ervdt",
195+
";ie o",
196+
"f,r ",
197+
"eem",
198+
".me",
199+
"on",
200+
"vd",
201+
"e.",
202+
","
203+
]
204+
}
205+
]
206+
}

0 commit comments

Comments
 (0)