This commit is contained in:
Arne Döring
2018-11-20 11:28:55 +01:00
committed by Araq
parent 6946116272
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
var start = epochTime()
os.sleep(1000)
let diff = abs(epochTime() - start - 1.0)
doAssert diff < 0.005
doAssert diff < 0.005, $diff

View File

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

View File

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