test logarithm words (only 'e' for the moment)

This commit is contained in:
Gwenhael Le Moine 2022-10-04 14:12:48 +02:00
parent 36ba5fa297
commit 339b64486e
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -0,0 +1,18 @@
# 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