summary refs log tree commit diff stats
path: root/tests/stdlib/uselocks.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/uselocks.nim')
-rw-r--r--tests/stdlib/uselocks.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/stdlib/uselocks.nim b/tests/stdlib/uselocks.nim
index cde9641b2..f87623b5e 100644
--- a/tests/stdlib/uselocks.nim
+++ b/tests/stdlib/uselocks.nim
@@ -1,4 +1,5 @@
 import locks
+import std/assertions
 
 type MyType* [T] = object
   lock: Lock
@@ -9,3 +10,7 @@ proc createMyType*[T]: MyType[T] =
 proc use* (m: var MyType): int =
   withLock m.lock:
     result = 3
+
+block:
+  var l: Lock
+  doAssert $l == "()"