You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

24 lines
644 B

require 'test/unit'
require File.dirname(__FILE__) + '/../../brnumeros/lib/brnumeros'
require File.dirname(__FILE__) + '/../lib/brdinheiro'
def tornar_metodos_publicos(clazz)
clazz.class_eval do
private_instance_methods.each { |instance_method| public instance_method }
private_methods.each { |method| public_class_method method }
end
end
def p80 text
p '*'*80
p text
p '*'*80
end
class Test::Unit::TestCase
def assert_false(boolean, message=nil)
assert_block("assert should not be called with a block.") { !block_given? }
assert_block(build_message(message, "<?> is not false.", boolean)) { !boolean }
end
end