1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-21 00:19:42 +02:00

add test for strings ending with colon

This commit is contained in:
Kelly Brazil
2022-05-22 09:13:32 -07:00
parent d30edb2dae
commit cfb71c7dad

View File

@ -230,6 +230,7 @@ class MyTests(unittest.TestCase):
{},
[],
'',
{'ipv6': 'fe80::5a37:f41:1076:ba24:'}, # test for colon at the end
{"key1": "value1", "key2": 2, "key3": None, "key4": 3.14, "key5": True},
]
@ -238,6 +239,7 @@ class MyTests(unittest.TestCase):
'--- {}',
'--- []',
"--- ''",
"---\nipv6: 'fe80::5a37:f41:1076:ba24:'",
'---\nkey1: value1\nkey2: 2\nkey3:\nkey4: 3.14\nkey5: true'
]