blob: c5ddbbdb0575a5245271295c9ad433119e498ebd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require 'test/unit'
$KCODE = 'none'
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
|