Fix v0.6 Regression

This commit is contained in:
fundamental 2017-02-22 13:13:06 -05:00
parent c7a349625c
commit 8fbbf127f4
2 changed files with 2 additions and 2 deletions

View File

@ -310,7 +310,7 @@ function show(io::IO, msg::OscMsg)
end
function showField(io::IO, msg::OscMsg, arg_id)
map = ['i' Int32;
map = Any['i' Int32;
'f' Float32;
's' String;
'b' :Blob;

View File

@ -116,7 +116,7 @@ function test_it_osc_spec()
osc = OscMsg("/foo", "iisff", Int32(1000), Int32(-1), "hello", Float32(1.234), Float32(5.678))
println(string(map(x->(hex(x,2)), osc.data)...))
println(string(map(x->(hex(x,2)), message_two)...))
println(string(map(x->(isprint(Char(x&0x7f)) ? string(Char(x&0x7f)," ") : ". "), osc.data)...))
println(string(map(x->(isprint(Char(x&0x7f)) ? string(Char(x&0x7f)," ") : ". "), osc.data)...))
println(string(map(x->(isprint(Char(x&0x7f)) ? string(Char(x&0x7f)," ") : ". "), message_two)...))
@test length(osc.data) == length(message_two)
@test osc.data == message_two