diff --git a/src/OSC.jl b/src/OSC.jl index a2ea78a..f7e6970 100644 --- a/src/OSC.jl +++ b/src/OSC.jl @@ -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; diff --git a/test/runtests.jl b/test/runtests.jl index 4524716..e6fb14f 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -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