Files
Nim/tests/stdlib/tregistry.nim
ringabout 3d2f0e2c7c make more standard libraries work with nimPreviewSlimSystem (#20343)
* make more standard libraries work with `nimPreviewSlimSystem`

* typo

* part two

* Delete specutils.nim

* fixes more tests

* more fixes

* fixes tests

* fixes three more tests

* add formatfloat import

* fix

* last
2022-09-27 20:06:23 +02:00

17 lines
406 B
Nim

discard """
disabled: "unix"
matrix: "--gc:refc; --gc:arc"
"""
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