Sha256: ea543ba1af8589921ea6449dc1216395b59012d83b427542697e24e4955c7c52
Contents?: true
Size: 308 Bytes
Versions: 74
Compression:
Stored size: 308 Bytes
Contents
require 'generator/exercise_case' class HammingCase < Generator::ExerciseCase def workload if raises_error? assert_raises(ArgumentError) { test_case } else assert_equal { test_case } end end private def test_case "Hamming.compute('#{strand1}', '#{strand2}')" end end
Version data entries
74 entries across 74 versions & 1 rubygems