Add gethostname to nativesockets (#5443)
This commit is contained in:
parent
78de355ec6
commit
dd4d47c671
3 changed files with 27 additions and 0 deletions
8
tests/stdlib/tnativesockets.nim
Normal file
8
tests/stdlib/tnativesockets.nim
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
import nativesockets, unittest
|
||||
|
||||
suite "nativesockets":
|
||||
test "getHostname":
|
||||
let hostname = getHostname()
|
||||
check hostname.len > 0
|
||||
check hostname.len < 64
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue