2022-10-04 14:12:48 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'minitest/autorun'
|
|
|
|
|
|
|
|
require 'rpl'
|
|
|
|
require 'rpl/types'
|
|
|
|
|
2024-03-27 08:08:43 +01:00
|
|
|
class TesttLanguageLogarithm < Minitest::Test
|
2022-10-04 14:12:48 +02:00
|
|
|
include Types
|
|
|
|
|
|
|
|
def test_e
|
|
|
|
interpreter = Rpl.new
|
2022-10-12 17:04:50 +02:00
|
|
|
interpreter.run! 'e'
|
2022-10-04 14:12:48 +02:00
|
|
|
assert_equal [Types.new_object( RplNumeric, BigMath.E( RplNumeric.precision ) )],
|
|
|
|
interpreter.stack
|
|
|
|
end
|
|
|
|
end
|