Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Heptazhou committed May 3, 2024
1 parent 1f2ffeb commit 4f055ea
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 10 deletions.
2 changes: 1 addition & 1 deletion data/jsonchecker/fail27.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
["line
break"]
break"]
2 changes: 1 addition & 1 deletion data/jsonchecker/fail28.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
["line\
break"]
break"]
2 changes: 1 addition & 1 deletion data/jsonchecker/readme.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Test suite from http://json.org/JSON_checker/.
Test suite from https://json.org/JSON_checker/

If the JSON_checker is working correctly, it must accept all of the pass*.json files and reject all of the fail*.json files.
4 changes: 3 additions & 1 deletion test/async.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
using JSON
using JSON5
using Test
using Distributed: RemoteChannel
using Sockets

const JSON = JSON5

@isdefined(a) || include("json-samples.jl")

finished_async_tests = RemoteChannel()
Expand Down
4 changes: 3 additions & 1 deletion test/lowering.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
module TestLowering

using JSON
using JSON5
using Test
using Dates
using FixedPointNumbers: Fixed

const JSON = JSON5

@test JSON.json(Date(2016, 8, 3)) == "\"2016-08-03\""

@test JSON.json(:x) == "\"x\""
Expand Down
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using JSON
using JSON5
using Test
using Dates
using Distributed: RemoteChannel
using OffsetArrays

import DataStructures
using DataStructures: DataStructures

const JSON = JSON5

include("json-samples.jl")

Expand Down
8 changes: 5 additions & 3 deletions test/serializer.jl
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
module TestSerializer

using JSON
using JSON5
using Test

# to define a new serialization behaviour, import these first
import JSON.Serializations: CommonSerialization, StandardSerialization
import JSON: StructuralContext
using JSON5.Serializations: CommonSerialization, StandardSerialization
using JSON5: StructuralContext

const JSON = JSON5

# those names are long so we can define some type aliases
const CS = CommonSerialization
Expand Down

0 comments on commit 4f055ea

Please sign in to comment.