Skip to content

Commit

Permalink
Merge pull request #96 from JuliaIO/tan/depwarn
Browse files Browse the repository at this point in the history
enable ci on Julia 0.6
  • Loading branch information
tanmaykm committed Jul 21, 2017
2 parents f668e75 + a2fb16a commit d26e3a4
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions test/testcodec.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ end

type TestMaps
d1::Dict{Int,Int}
d2::Dict{Int32,Compat.UTF8String}
d3::Dict{Compat.UTF8String,Compat.UTF8String}
d2::Dict{Int32,String}
d3::Dict{String,String}
TestMaps() = new()
end

Expand Down Expand Up @@ -401,14 +401,14 @@ function test_maps()

testval = TestMaps()
readval = TestMaps()
set_field!(testval, :d2, Dict{Int32,Compat.UTF8String}())
set_field!(testval, :d2, Dict{Int32,String}())
writeproto(pb, testval)
readproto(pb, readval)
@test !isfilled(readval, :d2)

testval = TestMaps()
readval = TestMaps()
set_field!(testval, :d3, Dict{Compat.UTF8String,Compat.UTF8String}())
set_field!(testval, :d3, Dict{String,String}())
writeproto(pb, testval)
readproto(pb, readval)
@test !isfilled(readval, :d3)
Expand All @@ -425,17 +425,17 @@ function test_maps()

testval = TestMaps()
readval = TestMaps()
set_field!(testval, :d2, Dict{Int32,Compat.UTF8String}())
testval.d2[@compat(Int32(1))] = convert(Compat.UTF8String, "One")
testval.d2[@compat(Int32(2))] = convert(Compat.UTF8String, "Two")
set_field!(testval, :d2, Dict{Int32,String}())
testval.d2[@compat(Int32(1))] = convert(String, "One")
testval.d2[@compat(Int32(2))] = convert(String, "Two")
writeproto(pb, testval)
readproto(pb, readval)
@test isfilled(readval, :d2)
assert_equal(testval, readval)

testval = TestMaps()
readval = TestMaps()
set_field!(testval, :d3, Dict{Compat.UTF8String,Compat.UTF8String}())
set_field!(testval, :d3, Dict{String,String}())
testval.d3["1"] = "One"
testval.d3["2"] = "Two"
writeproto(pb, testval)
Expand Down

0 comments on commit d26e3a4

Please sign in to comment.