added a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test too · Entire
added a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test tooadded a proper utf8 test too
8798c52→main·
Soph·1mo ago·1 file·+22 added/-0 removed
Sessions
dd5b7466cf9cView transcript
[?
ENTIRE_TOKEN Security and Validation FixesClaude Code·1 step](/content/gh/entireio/cli/session/05fedc75-9ca1-4638-9894-01560fe3498a#timeline-dd5b7466cf9c/index.html)
Changes
1
cmd/entire/cli
Mlabs_test.go+22
164 unmodified lines
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
164 unmodified lines
}
}
func TestRenderExperimentalCommands_MultiByteInvocationAligns(t *testing.T) {
t.Parallel()
// "entire ▶▶" is 9 runes but 13 bytes (each ▶ is 3 bytes). The longest
// invocation below is 12 runes, so the column width is 12. With byte-based
// padding, len("entire ▶▶") == 13 >= 12 would skip padding and misalign the
// row; rune-based padding correctly adds 3 spaces.
commands := []experimentalCommandInfo{
{Name: "long", Invocation: "entire aaaaa", Summary: "first"},
{Name: "multibyte", Invocation: "entire ▶▶", Summary: "second"},
}
if got := len("entire ▶▶"); got < 12 {
t.Fatalf("test precondition broken: byte length %d should exceed column width 12", got)
}
cols := summaryColumns(t, commands)
if cols[0] != cols[1] {
t.Fatalf("multi-byte invocation summary misaligned: %v", cols)
}
}
func TestLabsRegistryCommandsExistAtCanonicalPaths(t *testing.T) {
t.Parallel()