test_schedule.rb in rrschedule-0.3.0 vs test_schedule.rb in rrschedule-0.3.1

- old
+ new

@@ -31,5 +31,37 @@ ], :cycles => 3, :shuffle => true, :start_date => Date.parse("2010/10/13") ).generate + +require 'rubygems' +require 'active_support/all' +require './lib/rrschedule.rb' +include RRSchedule +schedule=RRSchedule::Schedule.new( + :teams => [ + %w(A1 A2 A3 A4 A5 A6 A7 A8), + %w(B1 B2 B3 B4 B5 B6 B7 B8), + %w(C1 C2 C3 C4 C5 C6 C7 C8), + %w(D1 D2 D3 D4 D5 D6 D7 D8), + %w(E1 E2 E3 E4 E5 E6 E7 E8), + ], + + :rules => [ + RRSchedule::Rule.new( + :wday => 1, + :gt => ["7:00 PM"], + :ps => ["1","2","3","4"], + ), + RRSchedule::Rule.new( + :wday => 3, + :gt => ["7:00 PM","9:00 PM"], + :ps => ["1","2","3","4","5","6","7","8"], + ) + + ], + :cycles => 1, + :start_date => Date.parse("2010/10/13"), + :balanced_gt => false, + :balanced_ps => true + ).generate