Add gethostname to nativesockets (#5443)

This commit is contained in:
Federico Ceratto
2017-03-01 08:44:24 +00:00
committed by Andreas Rumpf
parent 78de355ec6
commit dd4d47c671
3 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
import nativesockets, unittest
suite "nativesockets":
test "getHostname":
let hostname = getHostname()
check hostname.len > 0
check hostname.len < 64