mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-27 01:34:02 +00:00
Add gethostname to nativesockets (#5443)
This commit is contained in:
committed by
Andreas Rumpf
parent
78de355ec6
commit
dd4d47c671
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
|
||||
|
||||
Reference in New Issue
Block a user