summary refs log blame commit diff stats
path: root/tests/stdlib/tregistry.nim
blob: 25aed8df8cd869392addeef801bcbafd3ff3e846 (plain) (tree)
1
2
3
4
5
6
7
8

                  
                               



                      
                       







                                                      
discard """
  disabled: "unix"
  matrix: "--mm:refc; --mm:orc"
"""

when defined(windows):
  import std/registry
  import std/assertions

  block: # bug #14010
    let path = "Environment"
    let key = "D20210328T202842_key"
    let val = "D20210328T202842_val"
    let handle = HKEY_CURRENT_USER
    setUnicodeValue("Environment", key, val, handle)
    doAssert getUnicodeValue(path, key, handle) == val