- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2
 
Closed
Labels
backlogbugSomething isn't workingSomething isn't workingprio 1ready for verifyingsuccessfully tested
Description
Topic: Implicitly create a dictionary. Overwrite value of subkey with different kind of syntax.
A) Created in standard syntax; overwritten in ascending dotdict syntax:
${testdict1} : {"subKey1" : {"subKey2" : {"subKey3" : {"subKey4" : 0}}}},
${testdict1.subKey1} : {"subKey2" : {"subKey3" : {"subKey4" : 1}}},
${testdict1.subKey1.subKey2} : {"subKey3" : {"subKey4" : 2}},
${testdict1.subKey1.subKey2.subKey3} : {"subKey4" : 3},
${testdict1.subKey1.subKey2.subKey3.subKey4} : 4
Outcome: subKey4 has value 4 (like expected)
B) Created in dotdict syntax; overwritten in ascending standard syntax:
${testdict2.subKey1.subKey2.subKey3.subKey4} : 5,
${testdict2.subKey1.subKey2.subKey3} : {"subKey4" : 6},
${testdict2.subKey1.subKey2} : {"subKey3" : {"subKey4" : 7}},
${testdict2.subKey1} : {"subKey2" : {"subKey3" : {"subKey4" : 8}}},
${testdict2} : {"subKey1" : {"subKey2" : {"subKey3" : {"subKey4" : 9}}}}
Outcome: subKey4 has value 8! This is astonishing. Expected is  value 9. Why is the last assignment ignored?
C) Cross check:
${testdict3} : {"subKey1" : {"subKey2" : {"subKey3" : {"subKey4" : 10}}}},
"testdict4" : {"subKey1" : {"subKey2" : {"subKey3" : {"subKey4" : 20}}}}
Outcome:
subKey4 of testdict3 has value 10 (like expected)
subKey4 of testdict4 has value 20 (like expected)
Seems that ${testdict} and "testdict" is equivalent.
If this is like specified, the last line in example B) should also work.
Metadata
Metadata
Assignees
Labels
backlogbugSomething isn't workingSomething isn't workingprio 1ready for verifyingsuccessfully tested
Projects
Status
Done