rpl.rb/spec/words_logarithm_spec.rb
Gwenhael Le Moine 650d15b830
s/MiniTest/Minitest/g
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2024-03-27 08:08:43 +01:00

17 lines
352 B
Ruby

# 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