Add Telnet regression test suite

This commit is contained in:
2026-09-17 13:33:45 +02:00
parent 5e6d9138c4
commit da967f4d56
6 changed files with 258 additions and 11 deletions
+1 -3
View File
@@ -145,16 +145,15 @@ module MeowClient
text.each_char do |character|
if @pending_cr
if character == "\n" || character == "\0"
records << take_line
@pending_cr = false
next
else
records << take_line
@pending_cr = false
end
end
case character
when "\r"
records << take_line
@pending_cr = true
when "\n"
records << take_line
@@ -177,4 +176,3 @@ module MeowClient
end
end
end