#!/usr/bin/ruby # This software is in the public domain, furnished "as is", without technical # support, and with no warranty, express or implied, as to its usefulness for # any purpose. $:.unshift File.dirname(__FILE__)+'/..' require 'test/unit' require 'global' require 'formula' require 'utils' # NOTE duplicated in unittest.rb (we need to refactor the tests anyway) def nostdout if ARGV.include? '-V' yield end begin require 'stringio' tmpo=$stdout tmpe=$stderr $stdout=StringIO.new yield ensure $stdout=tmpo end end class FormulaNames