Permalink
Browse files

Add examples for parallel

  • Loading branch information...
1 parent 187ff9a commit 230f17fab8fb0aaafaa89f873d914ecf32d3676f @txus committed Aug 2, 2011
Showing with 25 additions and 0 deletions.
  1. +13 −0 examples/large_suite_parallel.rb
  2. +12 −0 examples/large_suite_serial.rb
@@ -0,0 +1,13 @@
+$: << 'lib'
+
+require 'fastest'
+require 'fastest/parallel'
+
+class ParallelTestCase < A
+ 100.times do |i|
+ define_method("test_#{i}") do
+ a 3
+ sleep "0.#{i}".to_f
+ end
+ end
+end
@@ -0,0 +1,12 @@
+$: << 'lib'
+
+require 'fastest'
+
+class ParallelTestCase < A
+ 100.times do |i|
+ define_method("test_#{i}") do
+ a 3
+ sleep "0.#{i}".to_f
+ end
+ end
+end

0 comments on commit 230f17f

Please sign in to comment.