From c363d93f9bc698b3504e164781a4dcf44658be59 Mon Sep 17 00:00:00 2001 From: HeWhoWalksBehind <84110044+siriuslee69@users.noreply.github.com> Date: Sun, 8 Sep 2024 18:44:55 +0200 Subject: [PATCH] Update tjson.nim Update tjson.nim - applied camelCase to the test vars to fit the conventions --- tests/stdlib/tjson.nim | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/stdlib/tjson.nim b/tests/stdlib/tjson.nim index dc4a6130cffd..590cd72cd8c8 100644 --- a/tests/stdlib/tjson.nim +++ b/tests/stdlib/tjson.nim @@ -174,16 +174,16 @@ doAssert($ %*[] == "[]") doAssert($ %*{} == "{}") #issue #24082 for more info -block test_tuple: +block testTuple: let - test_tuple_named: tuple = (a1: 10, a2: "foo") #tuple with field names = named tuple - test_tuple_anon: tuple = (10, "foo") #tuple without field names = anonymous tuple + testTupleNamed: tuple = (a1: 10, a2: "foo") #tuple with field names = named tuple + testTupleAnon: tuple = (10, "foo") #tuple without field names = anonymous tuple - doAssert $(% test_tuple_named) == """{"a1":10,"a2":"foo"}""" - doAssert $(% test_tuple_anon) == """{"Field0":10,"Field1":"foo"}""" + doAssert $(% testTupleNamed) == """{"a1":10,"a2":"foo"}""" + doAssert $(% testTupleAnon) == """{"Field0":10,"Field1":"foo"}""" - doAssert $(%* test_tuple_named) == """{"a1":10,"a2":"foo"}""" - doAssert $(%* test_tuple_anon) == """{"Field0":10,"Field1":"foo"}""" + doAssert $(%* testTupleNamed) == """{"a1":10,"a2":"foo"}""" + doAssert $(%* testTupleAnon) == """{"Field0":10,"Field1":"foo"}"""