summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorFederico Ceratto <federico.ceratto@gmail.com>2017-03-01 08:44:24 +0000
committerAndreas Rumpf <rumpf_a@web.de>2017-03-01 09:44:24 +0100
commitdd4d47c671827148bdaf478c7a37460931cd242c (patch)
tree7710df57106748763bda35268a6dd8ae05a71c98 /tests/stdlib
parent78de355ec60322ca33c26641d967bcf67571b5d9 (diff)
downloadNim-dd4d47c671827148bdaf478c7a37460931cd242c.tar.gz
Add gethostname to nativesockets (#5443)
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/tnativesockets.nim8
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
+