diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stdlib/tnativesockets.nim | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/stdlib/tnativesockets.nim b/tests/stdlib/tnativesockets.nim new file mode 100644 index 000000000..c683647bc --- /dev/null +++ b/tests/stdlib/tnativesockets.nim @@ -0,0 +1,8 @@ +import nativesockets, unittest + +suite "nativesockets": + test "getHostname": + let hostname = getHostname() + check hostname.len > 0 + check hostname.len < 64 + |