Skip to content

Commit 29c2d43

Browse files
committed
Enable tests for ANSI wrap behavior that now pass with the corrected carry-over logic
1 parent 17ad390 commit 29c2d43

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/unit/wrap/wrap_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,22 +211,22 @@
211211
expect(val).to eq("\e[32mone\e[0m\n\e[33mtwo\e[0m")
212212
end
213213

214-
xit "splits ANSI codes matching wrap width" do
214+
it "splits ANSI codes matching wrap width" do
215215
str = "\e[32mone\e[0m\e[33mtwo\e[0m"
216216

217217
val = Strings::Wrap.wrap(str, 3)
218218

219219
expect(val).to eq("\e[32mone\e[0m\n\e[33mtwo\e[0m")
220220
end
221221

222-
xit "wraps deeply nested ANSI codes correctly" do
222+
it "wraps deeply nested ANSI codes correctly" do
223223
str = "\e[32mone\e[33mtwo\e[0m\e[0m"
224224

225225
val = Strings::Wrap.wrap(str, 3)
226226

227227
expect(val).to eq([
228228
"\e[32mone\e[0m",
229-
"\e[33mtwo\e[0m",
229+
"\e[32m\e[33mtwo\e[0m\e[0m",
230230
].join("\n"))
231231
end
232232
end

0 commit comments

Comments
 (0)