rpl.rb/spec/words_logarithm_spec.rb
2022-10-12 17:04:50 +02:00

18 lines
368 B
Ruby

# coding: utf-8
# 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