Skip to content

Commit

Permalink
Update tjson.nim
Browse files Browse the repository at this point in the history
Update tjson.nim -  applied camelCase to the test vars to fit the conventions
  • Loading branch information
siriuslee69 authored Sep 8, 2024
1 parent cdd2950 commit c363d93
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/stdlib/tjson.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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"}"""



Expand Down

0 comments on commit c363d93

Please sign in to comment.