Advertisement
VladNitu

Teste obj value ctor

Mar 17th, 2024 (edited)
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. #
  2. # Dictionary construction when it exists
  3. #
  4.  
  5. {a}
  6. {"a":1}
  7. {"a":1}
  8.  
  9. {(.d):2}
  10. {"a":1, "b":2, "c":3, "d":"c"}
  11. {"c" : 2}
  12.  
  13. {(.d):.a}
  14. {"a":1, "b":2, "c":3, "d":"c"}
  15. {"c" : 1}
  16.  
  17. {a,b,(.d):.a}
  18. {"a":1, "b":2, "c":3, "d":"c"}
  19. {"a": 1,"b": 2,"c": 1}
  20.  
  21. {e:.b}
  22. {"a":1, "b":2, "c":3, "d":"c"}
  23. {"e" : 2}
  24.  
  25. #
  26. # actual test
  27. #
  28.  
  29. {a,b,(.d):.a,e:.b}
  30. {"a":1, "b":2, "c":3, "d":"c"}
  31. {"a":1, "b":2, "c":1, "e":2}
  32.  
  33.  
  34. {a,b,(.d):.a,e:.b}
  35. {"a":1, "b":2, "c":3, "d":"c"}
  36. {"a":1, "b":2, "c":1, "e":2}
  37.  
  38. {"a",b,"a$2"}
  39. {"a":1, "b":2, "c":3, "a$2":4}
  40. {"a":1, "b":2, "a$2":4}
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement