fixing most of the mom tests

This commit is contained in:
2019-08-23 15:31:04 +03:00
parent 89f32ed74a
commit 50c172915e
30 changed files with 110 additions and 192 deletions

11
test/support/output.rb Normal file
View File

@ -0,0 +1,11 @@
module Output
def class_list(all)
str = all.join(", ").gsub("Risc::","").to_s
str = str.split(",").each_slice(5).collect { |line| line.join(",") + ","}
str[0] = "[#{str[0]}"
str[-1] = "#{str[-1]}]"
ret = ""
str.each_with_index { |line,index| ret += " #{line} ##{index*5 + 5}\n"}
ret
end
end