summary refs log tree commit diff stats
path: root/tests/parallel
diff options
context:
space:
mode:
authornarimiran <narimiran@disroot.org>2019-01-23 09:19:42 +0100
committernarimiran <narimiran@disroot.org>2019-01-23 09:19:42 +0100
commitf1a841c605870711c4b046ee8f8c0a5bbf479bf2 (patch)
treeafd0d10a2b98a986d9fe2df9b606804589f7b0a1 /tests/parallel
parent0d480bfe22651edc9bdf7c5976668b47eb61b0a5 (diff)
downloadNim-f1a841c605870711c4b046ee8f8c0a5bbf479bf2.tar.gz
remove `tdont_be_stupid`, fixes #10386
Diffstat (limited to 'tests/parallel')
-rw-r--r--tests/parallel/tdont_be_stupid.nim23
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])