diff options
author | narimiran <narimiran@disroot.org> | 2019-01-23 09:19:42 +0100 |
---|---|---|
committer | narimiran <narimiran@disroot.org> | 2019-01-23 09:19:42 +0100 |
commit | f1a841c605870711c4b046ee8f8c0a5bbf479bf2 (patch) | |
tree | afd0d10a2b98a986d9fe2df9b606804589f7b0a1 /tests/parallel | |
parent | 0d480bfe22651edc9bdf7c5976668b47eb61b0a5 (diff) | |
download | Nim-f1a841c605870711c4b046ee8f8c0a5bbf479bf2.tar.gz |
remove `tdont_be_stupid`, fixes #10386
Diffstat (limited to 'tests/parallel')
-rw-r--r-- | tests/parallel/tdont_be_stupid.nim | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/parallel/tdont_be_stupid.nim b/tests/parallel/tdont_be_stupid.nim deleted file mode 100644 index d765c11a9..000000000 --- a/tests/parallel/tdont_be_stupid.nim +++ /dev/null @@ -1,23 +0,0 @@ -discard """ -output: ''' -100 -200 -300 -400 -''' -""" - -import threadpool, os - -proc single(time: int) = - sleep time - echo time - -proc sleepsort(nums: openArray[int]) = - parallel: - var i = 0 - while i <= len(nums) + -1: - spawn single(nums[i]) - i += 1 - -sleepsort([400,100,300,200]) |