Software >
Ruby > Ruby testing >
(Included with Ruby 1.9)
See also:
-
Check out
mini-unit
Ruby 1.9's minitest ∞
require 'minitest/autorun' class Test_Markup < MiniTest::Unit::TestCase def test() assert_equal( ( 'asdfghjkl' ), ( 'asdfgajkl' ), ) end end
Hacking it to make it more friendly ∞
You can edit ~/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/minitest/unit.rb
within `def assert_equal`, change `msg = message(msg)` msg = message(msg) { " Expected #{mu_pp(exp)} not #{mu_pp(act)} " }
Also, within def mu_pp obj
you can change s
s = pp(obj)
Last updated 2022-04-07 at 01:57:00
split off from other pages