Skip to content

Commit

Permalink
Fix takebuf_string() deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nalimilan committed Dec 1, 2016
1 parent eb63e31 commit c76285c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion REQUIRE
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
julia 0.5.0-
Compat 0.8.1
Compat 0.9.5
NullableArrays
13 changes: 7 additions & 6 deletions test/06_show.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module TestShow
using Base.Test
using Compat
using CategoricalArrays

pool = CategoricalPool(["c", "b", "a"])
Expand Down Expand Up @@ -40,16 +41,16 @@ module TestShow

b = IOBuffer()
showcompact(b, nv1)
@test takebuf_string(b) == "\"c\""
@test String(take!(b)) == "\"c\""
showcompact(b, nv2)
@test takebuf_string(b) == "\"b\""
@test String(take!(b)) == "\"b\""
showcompact(b, nv3)
@test takebuf_string(b) == "\"a\""
@test String(take!(b)) == "\"a\""

showcompact(b, ov1)
@test takebuf_string(b) == "\"c\""
@test String(take!(b)) == "\"c\""
showcompact(b, ov2)
@test takebuf_string(b) == "\"b\""
@test String(take!(b)) == "\"b\""
showcompact(b, ov3)
@test takebuf_string(b) == "\"a\""
@test String(take!(b)) == "\"a\""
end

0 comments on commit c76285c

Please sign in to comment.