some cc driven cleanup

bit anoying that the builtin engine is used
Even it is not as well configurable as preferred reek.
Still, found one minor bug
This commit is contained in:
2019-10-02 17:42:24 +03:00
parent 48e18ac9cd
commit fd8a3e9cc5
9 changed files with 42 additions and 15 deletions

View File

@ -1,5 +1,8 @@
module Minitest
module Assertions
def assert_tos string , object
assert_equal string , object.to_s.gsub("\n",";").gsub(/\s+/," ").gsub("; ",";")
end
def assert_slot_to_reg( slot , array = nil, index = nil , register = nil)
assert_equal Risc::SlotToReg , slot.class
assert_equal( array , slot.array.symbol , "wrong source register") if array