Files
Nim/tests/stdlib/tregistry.nim
ringabout 4fa86422c0 stdlib tests now check refc too (#21664)
* stdlib tests now check refc too

* typo

* fixes line numbers

* disable cpp

* do not touch
2023-04-21 15:37:58 +02:00

17 lines
406 B
Nim

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