We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2ffefa commit a232364Copy full SHA for a232364
tests/test_vdf.py
@@ -477,6 +477,33 @@ def test_inline_opening_bracker(self):
477
self.assertEqual(vdf.loads(INPUT), EXPECTED)
478
self.assertEqual(vdf.loads(INPUT, escaped=False), EXPECTED)
479
480
+ def test_duplicate_key_with_value_from_str_to_mapper(self):
481
+ INPUT = r'''
482
+ level1
483
+ {
484
+ key1 text1
485
+ key2 text2
486
+ }
487
488
489
+ key2
490
491
+ key3 text3
492
493
494
+ '''
495
+
496
+ EXPECTED = {
497
+ "level1": {
498
+ "key1": "text1",
499
+ "key2": {
500
+ "key3": "text3"
501
502
503
504
505
+ self.assertEqual(vdf.loads(INPUT), EXPECTED)
506
507
class testcase_VDF_other(unittest.TestCase):
508
def test_dumps_pretty_output(self):
509
tests = [
0 commit comments