Sha256: 75737c160baf2cfd31466d2673298557f43a2b361331757d97e05c323b065333

Contents?: true

Size: 347 Bytes

Versions: 4

Compression:

Stored size: 347 Bytes

Contents

#!/bin/env ruby
# encoding: utf-8
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 & 2 rubygems

Version Path
hilbert-0.0.2700100 test/interpreter/test_sigma.rb
hilbert-0.0.2700001 test/interpreter/test_sigma.rb
hilbert-0.0.2700000 test/interpreter/test_sigma.rb
qlang-0.0.27182124 test/interpreter/test_sigma.rb