This commit is contained in:
Arne Döring 2018-11-20 11:28:55 +01:00 • committed by Araq
commit 523ca76c4d
3 changed files with 14 additions and 7 deletions

View file

@ -1,6 +1,12 @@
discard """
disabled: "appveyor"
"""
# diabled on appveyor, because it fails there.
import times, os import times, os
var start = epochTime() var start = epochTime()
os.sleep(1000) os.sleep(1000)
let diff = abs(epochTime() - start - 1.0) let diff = abs(epochTime() - start - 1.0)
doAssert diff < 0.005 doAssert diff < 0.005, $diff

View file

@ -1,9 +1,9 @@
discard """ discard """
output: ''' output: '''
3 100
25 200
40 300
50 400
''' '''
""" """
@ -20,4 +20,4 @@ proc sleepsort(nums: openArray[int]) =
spawn single(nums[i]) spawn single(nums[i])
i += 1 i += 1
sleepsort([50,3,40,25]) sleepsort([400,100,300,200])

View file

@ -1,5 +1,6 @@
discard """ discard """
output: "14" output: "15"
disabled: "appveyor"
""" """
import memfiles import memfiles