Sha256: b12587d6b90ecae4e77768b93df92e7a10070f6a29581922df3326fdfdfad5d7

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

require 'minitest_helper'

class TestIntegral < TestInterpreterBase
  def setup

  end

  def test_general
    assert_iq_equal(
      'S( log(x)dx )[0..1]',
      '-oo'
    )

    assert_iq_equal(
      'S( sin(x)dx )[0..pi]',
      '2.0'
    )

    assert_iq_equal(
      'S( cos(x)dx )[0..pi]',
      '0.0'
    )

    assert_iq_equal(
      'S( cos(x)dx )[0..pi]',
      '0.0'
    )

    assert_iq_equal(
      'S(2pi dx)[0..1]',
      '6.28318531'
    )

    assert_iq_equal(
      'S(xx dx)[0..1]',
      '0.33333333'
    )
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
qlang-0.0.27182123 test/interpreter/test_integral.rb
qlang-0.0.27182122 test/interpreter/test_integral.rb
qlang-0.0.27182121 test/interpreter/test_integral.rb
qlang-0.0.27182120 test/interpreter/test_integral.rb
qlang-0.0.27182110 test/interpreter/test_integral.rb
qlang-0.0.27182100 test/interpreter/test_integral.rb