summary refs log tree commit diff stats
path: root/tests/stdlib/tregistry.nim
blob: 8bf084f6d585315e49e0617814fa78ea52e5f757 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
discard """
  disabled: "unix"
  matrix: "--gc:refc; --gc:arc"
"""

when defined(windows):
  import std/registry

  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