B
Brian Buckley
------=_Part_269_8476087.1115384678989
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hello all,=20
In the code below the first test by itself passes. However, when I add a=20
second test called "test_bad_data", the first test fails. The method count=
=20
on BigDecimal apppears to change from 82 to 86.
I've noticed that if I give "test_bad_data" a different test name (but stil=
l=20
starting with "test_") all works as expected.
What's happening?
Brian
-----------------------------------------
require 'test/unit'
require 'bigdecimal'
class TestBigDecimal < Test::Unit::TestCase
def test_method_count
assert_equal 82, BigDecimal.methods.size
end
def test_bad_data
assert_equal "", "0.0" #causes first test to fail
end
end
------=_Part_269_8476087.1115384678989--
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline
Hello all,=20
In the code below the first test by itself passes. However, when I add a=20
second test called "test_bad_data", the first test fails. The method count=
=20
on BigDecimal apppears to change from 82 to 86.
I've noticed that if I give "test_bad_data" a different test name (but stil=
l=20
starting with "test_") all works as expected.
What's happening?
Brian
-----------------------------------------
require 'test/unit'
require 'bigdecimal'
class TestBigDecimal < Test::Unit::TestCase
def test_method_count
assert_equal 82, BigDecimal.methods.size
end
def test_bad_data
assert_equal "", "0.0" #causes first test to fail
end
end
------=_Part_269_8476087.1115384678989--