From 600a40bb11f9c82d5a4590cb61de99460dd0f17b Mon Sep 17 00:00:00 2001 From: Fengyang Wang Date: Thu, 30 Nov 2017 23:22:43 -0500 Subject: [PATCH] Use Nullables (#227) --- REQUIRE | 1 + src/Parser.jl | 1 + src/Writer.jl | 1 + test/standard-serializer.jl | 2 ++ 4 files changed, 5 insertions(+) diff --git a/REQUIRE b/REQUIRE index 8aee958..0d9397e 100644 --- a/REQUIRE +++ b/REQUIRE @@ -1,2 +1,3 @@ julia 0.6 Compat 0.37.0 +Nullables 0.0.1 diff --git a/src/Parser.jl b/src/Parser.jl index fc7b3ec..b75c09c 100644 --- a/src/Parser.jl +++ b/src/Parser.jl @@ -2,6 +2,7 @@ module Parser # JSON using Compat using Compat.Mmap +using Nullables using ..Common """ diff --git a/src/Writer.jl b/src/Writer.jl index 7bf4905..9c00c90 100644 --- a/src/Writer.jl +++ b/src/Writer.jl @@ -1,6 +1,7 @@ module Writer using Compat.Dates +using Nullables using ..Common using ..Serializations: Serialization, StandardSerialization, CommonSerialization diff --git a/test/standard-serializer.jl b/test/standard-serializer.jl index a5b846a..3f1bd2b 100644 --- a/test/standard-serializer.jl +++ b/test/standard-serializer.jl @@ -1,3 +1,5 @@ +using Nullables + @testset "Symbol" begin symtest = Dict(:symbolarray => [:apple, :pear], :symbolsingleton => :hello) @test (JSON.json(symtest) == "{\"symbolarray\":[\"apple\",\"pear\"],\"symbolsingleton\":\"hello\"}"