From f023f48ddb598efabab7db8c70848636919f1950 Mon Sep 17 00:00:00 2001 From: alingse Date: Wed, 29 May 2019 23:59:04 +0800 Subject: [PATCH] add check --- broken.json | 14 -------------- broken.py => checks/broken.py | 0 gen.py => checks/gen.py | 0 oneline.json => checks/oneline.json | 0 runratio.sh => checks/runratio.sh | 0 runtest.sh => checks/runtest.sh | 2 +- half_json/__init__.py | 0 7 files changed, 1 insertion(+), 15 deletions(-) delete mode 100644 broken.json rename broken.py => checks/broken.py (100%) rename gen.py => checks/gen.py (100%) rename oneline.json => checks/oneline.json (100%) rename runratio.sh => checks/runratio.sh (100%) rename runtest.sh => checks/runtest.sh (60%) create mode 100644 half_json/__init__.py diff --git a/broken.json b/broken.json deleted file mode 100644 index 3f963aa..0000000 --- a/broken.json +++ /dev/null @@ -1,14 +0,0 @@ - -" -{abc":1} -{"abc"1} -{"abc":x"} -{"ab":1} -{"ab":} -{"ab":1 -{"ab":1"c":2} -{"ab":[1} -{"ab":[1,} -} -{ -"a \ No newline at end of file diff --git a/broken.py b/checks/broken.py similarity index 100% rename from broken.py rename to checks/broken.py diff --git a/gen.py b/checks/gen.py similarity index 100% rename from gen.py rename to checks/gen.py diff --git a/oneline.json b/checks/oneline.json similarity index 100% rename from oneline.json rename to checks/oneline.json diff --git a/runratio.sh b/checks/runratio.sh similarity index 100% rename from runratio.sh rename to checks/runratio.sh diff --git a/runtest.sh b/checks/runtest.sh similarity index 60% rename from runtest.sh rename to checks/runtest.sh index 92b9760..62f2739 100755 --- a/runtest.sh +++ b/checks/runtest.sh @@ -1,4 +1,4 @@ #!/bin/bash python gen.py > random.1.json python broken.py random.1.json random.1.broken.json -python clear.py random.1.broken.json random.1.broken.fix.json \ No newline at end of file +jsonfixer random.1.broken.json random.1.broken.fix.json \ No newline at end of file diff --git a/half_json/__init__.py b/half_json/__init__.py new file mode 100644 index 0000000..e69de29