Sha256: ac783f30d46d83c199eea3914d3d8f99c0ea9fb25fc586e2d00a297cc2337d2d

Contents?: true

Size: 537 Bytes

Versions: 11

Compression:

Stored size: 537 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

11 entries across 11 versions & 2 rubygems

Version Path
hilbert-0.0.2700420 test/interpreter/test_integral.rb
hilbert-0.0.2700410 test/interpreter/test_integral.rb
hilbert-0.0.2700400 test/interpreter/test_integral.rb
hilbert-0.0.2700320 test/interpreter/test_integral.rb
hilbert-0.0.2700300 test/interpreter/test_integral.rb
hilbert-0.0.2700210 test/interpreter/test_integral.rb
hilbert-0.0.2700110 test/interpreter/test_integral.rb
hilbert-0.0.2700100 test/interpreter/test_integral.rb
hilbert-0.0.2700001 test/interpreter/test_integral.rb
hilbert-0.0.2700000 test/interpreter/test_integral.rb
qlang-0.0.27182124 test/interpreter/test_integral.rb