Sha256: a46a6d176e56d09b2d153e27c63b635dc16a6cd63f1a664116784c8e965a6233

Contents?: true

Size: 314 Bytes

Versions: 4

Compression:

Stored size: 314 Bytes

Contents

require 'minitest_helper'

class TestSigma < TestInterpreterBase
  def setup

  end

  def test_general
    assert_iq_equal(
      '∑[x=0,10] x',
      '55.0'
    )

    assert_iq_equal(
      '∑[x=0, 10] x^2',
      '385.0'
    )

    assert_iq_equal(
      '∑[x=0, 10] x^3',
      '3025.0'
    )
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
qlang-0.0.27182123 test/interpreter/test_sigma.rb
qlang-0.0.27182122 test/interpreter/test_sigma.rb
qlang-0.0.27182121 test/interpreter/test_sigma.rb
qlang-0.0.27182120 test/interpreter/test_sigma.rb