From e400a1c0a786ce770af88b5b285264a3cb41471f Mon Sep 17 00:00:00 2001 From: TermiNexus Date: Sat, 15 Aug 2026 13:12:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(JsonTest):=20write=20string=20hello=20?= =?UTF-8?q?=E6=96=AD=E8=A8=80=E6=94=B9=E7=94=A8=20strcmp=EF=BC=88=E8=BF=BD?= =?UTF-8?q?=E5=8A=A014=20=E9=81=97=E7=95=99=EF=BC=8Ci8*=20=3D=3D=20?= =?UTF-8?q?=E6=98=AF=E6=8C=87=E9=92=88=E5=9C=B0=E5=9D=80=E6=AF=94=E8=BE=83?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Test/JsonTest/App/main.vp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Test/JsonTest/App/main.vp b/Test/JsonTest/App/main.vp index a355f17..5d4e581 100644 --- a/Test/JsonTest/App/main.vp +++ b/Test/JsonTest/App/main.vp @@ -153,7 +153,7 @@ def test_write(pool: memhub.MemPool | t.CPtr): # 写字符串 v2: json.JsonValue | t.CPtr = json.string_val(pool, "hello") s2: t.CChar | t.CPtr = json.write(pool, v2, False) - testcheck.check(s2 == '"hello"', "write string hello", "write string hello") + testcheck.check(string.strcmp(s2, '"hello"') == 0, "write string hello", "write string hello") # 写布尔 v3: json.JsonValue | t.CPtr = json.bool_val(pool, True)