From d6d673abd298adf179cd4dcd586990c021154e0c Mon Sep 17 00:00:00 2001 From: byb11 Date: Thu, 22 Apr 2021 14:31:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9json=E4=B8=B2=E5=AF=B9?= =?UTF-8?q?=E6=AF=94=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 04-CustomLibrary/Custometest/JsonDiff.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/04-CustomLibrary/Custometest/JsonDiff.py b/04-CustomLibrary/Custometest/JsonDiff.py index de3b256..f10002c 100644 --- a/04-CustomLibrary/Custometest/JsonDiff.py +++ b/04-CustomLibrary/Custometest/JsonDiff.py @@ -2,5 +2,6 @@ from json_compare import Jcompare def json_diff(a,b): cp=Jcompare() - print(cp.compare(a,b)) - \ No newline at end of file + results = cp.compare(a,b) + + assert results == "True" \ No newline at end of file