rpl.rb/spec/words_logarithm_spec.rb

18 lines
352 B
Ruby
Raw Normal View History

# frozen_string_literal: true
require 'minitest/autorun'
require 'rpl'
require 'rpl/types'
class TesttLanguageLogarithm < Minitest::Test
include Types
def test_e
interpreter = Rpl.new
interpreter.run! 'e'
assert_equal [Types.new_object( RplNumeric, BigMath.E( RplNumeric.precision ) )],
interpreter.stack
end
end