tracks/ruby/lib/grains_cases.rb in trackler-2.0.6.11 vs tracks/ruby/lib/grains_cases.rb in trackler-2.0.6.12
- old
+ new
@@ -1,5 +1,7 @@
+require 'exercise_cases'
+
class GrainsCase < OpenStruct
def test_name
'test_%s' % description.downcase.tr_s(' ', '_')
end
@@ -12,10 +14,10 @@
end
private
def underscore_format(number)
- number.to_s.reverse.gsub(/...(?=.)/,'\&_').reverse
+ number.to_s.reverse.gsub(/...(?=.)/, '\&_').reverse
end
end
class GrainsCase::SquareMethod < GrainsCase
def workload