blob: e1e49dba014244c98557bb358c1a09d56996d937 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require 'test/unit'
class TestMath < Test::Unit::TestCase
def test_math
assert_equal(2, Math.sqrt(4))
self.class.class_eval {
include Math
}
assert_equal(2, sqrt(4))
end
end
|