Debian Codegraph @

crt/aws-c-sdkutils/tests/resources/test-cases/substring.json

raw symbols SCIP
1 {
2 "version": "1.0",
3 "testCases": [
4 {
5 "documentation": "substring when string is long enough",
6 "params": {
7 "TestCaseId": "1",
8 "Input": "abcdefg"
9 },
10 "expect": {
11 "error": "The value is: `abcd`"
12 }
13 },
14 {
15 "documentation": "substring when string is exactly the right length",
16 "params": {
17 "TestCaseId": "1",
18 "Input": "abcd"
19 },
20 "expect": {
21 "error": "The value is: `abcd`"
22 }
23 },
24 {
25 "documentation": "substring when string is too short",
26 "params": {
27 "TestCaseId": "1",
28 "Input": "abc"
29 },
30 "expect": {
31 "error": "No tests matched"
32 }
33 },
34 {
35 "documentation": "substring when string is too short",
36 "params": {
37 "TestCaseId": "1",
38 "Input": ""
39 },
40 "expect": {
41 "error": "No tests matched"
42 }
43 },
44 {
45 "documentation": "substring on wide characters (ensure that unicode code points are properly counted)",
46 "params": {
47 "TestCaseId": "1",
48 "Input": "\ufdfd"
49 },
50 "expect": {
51 "error": "No tests matched"
52 }
53 },
54 {
55 "documentation": "unicode characters always return `None`",
56 "params": {
57 "TestCaseId": "1",
58 "Input": "abcdef\uD83D\uDC31"
59 },
60 "expect": {
61 "error": "No tests matched"
62 }
63 },
64 {
65 "documentation": "non-ascii cause substring to always return `None`",
66 "params": {
67 "TestCaseId": "1",
68 "Input": "abcdef\u0080"
69 },
70 "expect": {
71 "error": "No tests matched"
72 }
73 },
74 {
75 "documentation": "the full set of ascii is supported, including non-printable characters",
76 "params": {
77 "TestCaseId": "1",
78 "Input": "\u007Fabcdef"
79 },
80 "expect": {
81 "error": "The value is: `\u007Fabc`"
82 }
83 },
84 {
85 "documentation": "substring when string is long enough",
86 "params": {
87 "TestCaseId": "2",
88 "Input": "abcdefg"
89 },
90 "expect": {
91 "error": "The value is: `defg`"
92 }
93 },
94 {
95 "documentation": "substring when string is exactly the right length",
96 "params": {
97 "TestCaseId": "2",
98 "Input": "defg"
99 },
100 "expect": {
101 "error": "The value is: `defg`"
102 }
103 },
104 {
105 "documentation": "substring when string is too short",
106 "params": {
107 "TestCaseId": "2",
108 "Input": "abc"
109 },
110 "expect": {
111 "error": "No tests matched"
112 }
113 },
114 {
115 "documentation": "substring when string is too short",
116 "params": {
117 "TestCaseId": "2",
118 "Input": ""
119 },
120 "expect": {
121 "error": "No tests matched"
122 }
123 },
124 {
125 "documentation": "substring on wide characters (ensure that unicode code points are properly counted)",
126 "params": {
127 "TestCaseId": "2",
128 "Input": "\ufdfd"
129 },
130 "expect": {
131 "error": "No tests matched"
132 }
133 },
134 {
135 "documentation": "substring when string is longer",
136 "params": {
137 "TestCaseId": "3",
138 "Input": "defg"
139 },
140 "expect": {
141 "error": "The value is: `ef`"
142 }
143 },
144 {
145 "documentation": "substring when string is exact length",
146 "params": {
147 "TestCaseId": "3",
148 "Input": "def"
149 },
150 "expect": {
151 "error": "The value is: `ef`"
152 }
153 },
154 {
155 "documentation": "substring when string is too short",
156 "params": {
157 "TestCaseId": "3",
158 "Input": "ab"
159 },
160 "expect": {
161 "error": "No tests matched"
162 }
163 },
164 {
165 "documentation": "substring when string is too short",
166 "params": {
167 "TestCaseId": "3",
168 "Input": ""
169 },
170 "expect": {
171 "error": "No tests matched"
172 }
173 },
174 {
175 "documentation": "substring on wide characters (ensure that unicode code points are properly counted)",
176 "params": {
177 "TestCaseId": "3",
178 "Input": "\ufdfd"
179 },
180 "expect": {
181 "error": "No tests matched"
182 }
183 }
184 ]
185 }