aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/unit/os/time.moon18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/unit/os/time.moon b/test/unit/os/time.moon
deleted file mode 100644
index 465630b1da..0000000000
--- a/test/unit/os/time.moon
+++ /dev/null
@@ -1,18 +0,0 @@
-{time: lua_time} = require 'os'
-{:cimport, :eq} = require 'test.unit.helpers'
-
-time = cimport './src/os/time.h'
-
-describe 'time function', ->
- setup ->
- time.time_init!
-
- describe 'os_delay', ->
- os_delay = (ms) ->
- time.os_delay ms, false
-
- it 'sleeps at least the number of requested milliseconds', ->
- curtime = lua_time!
- os_delay 1000
- ellapsed = lua_time! - curtime
- eq true, ellapsed >= 1 and ellapsed <=2