File tree Expand file tree Collapse file tree 3 files changed +24
-7
lines changed
Expand file tree Collapse file tree 3 files changed +24
-7
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,8 @@ task :typecheck_test => :compile do
139139end
140140
141141task :raap => :compile do
142- sh %q[ruby test/raap.rb | xargs bundle exec raap -r digest/bubblebabble --library digest --allow-private]
142+ sh "ruby test/raap/core.rb"
143+ sh "ruby test/raap/digest.rb"
143144end
144145
145146task :rubocop do
Original file line number Diff line number Diff line change 1+ require 'raap'
2+
3+ argv = [
4+ '--size-by' , '2' ,
5+ '--allow-private'
6+ ]
7+
8+ argv << 'Set[Integer]'
9+ argv << 'Enumerable[Integer]#to_set'
10+
11+ RaaP ::CLI . new ( argv ) . load . run
Original file line number Diff line number Diff line change 1- # Specify the class/module and method names to be executed by RaaP.
2- # By prefixing with `!`, you can skip testing a method.
1+ require 'raap'
32
4- puts 'Set[Integer]'
5- puts 'Enumerable[Integer]#to_set'
3+ argv = [
4+ '-r' , 'digest/bubblebabble' ,
5+ '--library' , 'digest' ,
6+ '--size-by' , '2' ,
7+ '--allow-private'
8+ ]
69
710%w[
811 MD5
1821 digest
1922 hexdigest
2023 ] . each do |singleton_method |
21- puts "Digest::#{ klass } .#{ singleton_method } "
24+ argv << "Digest::#{ klass } .#{ singleton_method } "
2225 end
2326
2427 %w[
4750 finish
4851 initialize_copy
4952 ] . each do |instance_method |
50- puts "Digest::#{ klass } ##{ instance_method } "
53+ argv << "Digest::#{ klass } ##{ instance_method } "
5154 end
5255end
56+
57+ RaaP ::CLI . new ( argv ) . load . run
You can’t perform that action at this time.
0 commit comments