def test_conn_1p_0110
@conn.disconnect
cha = get_conn_headers()
cha["heart-beat"] = "0,0"
conn = nil
conn = Stomp::Connection.open(user, passcode, host, port, false, 5, cha)
good_data = [
"\x41\xc3\xb1\x42",
"\xc2\x80",
"\xc2\xbf",
"\xdf\x80",
"\xdf\xbf",
"\xe0\xa0\x80",
"\xe0\xbf\x80",
"\xe0\xa0\xbf",
"\xe0\xbf\xbf",
"\xf1\x80\x80\x80",
"\xf1\xbf\xbf\xbf",
"\xf2\x80\x80\x80",
"\xf2\xbf\xbf\xbf",
"\xf3\x80\x80\x80",
"\xf3\xbf\xbf\xbf",
]
good_data.each do |string|
assert conn.valid_utf8?(string), "good unicode specs 01: #{string}"
end
conn.disconnect
end