PageRenderTime 28ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/Examples/test-suite/ruby/li_math_runme.rb

#
Ruby | 13 lines | 6 code | 2 blank | 5 comment | 2 complexity | 9cbeafc2b3060eb67f3104b7a8067422 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #!/usr/bin/env ruby
  2. #
  3. # li_math.i tests
  4. #
  5. #
  6. require 'swig_assert'
  7. require 'li_math'
  8. swig_assert_each_line <<EOF
  9. Li_math.cos(-5) == Math.cos(-5)
  10. Li_math.sin(-5) == Math.sin(-5)
  11. EOF