aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_math.rb
blob: 15537159a330c1ba74e9e35c62290c965bafee5b (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(Math.sqrt(4) == 2)
    
    self.class.class_eval {
      include Math
    }
    assert(sqrt(4) == 2)
  end
end