test logarithm words (only 'e' for the moment)
This commit is contained in:
parent
36ba5fa297
commit
339b64486e
1 changed files with 18 additions and 0 deletions
18
spec/words_logarithm_spec.rb
Normal file
18
spec/words_logarithm_spec.rb
Normal 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
|
Loading…
Reference in a new issue