finally pass d→r test

This commit is contained in:
Gwenhael Le Moine 2022-02-09 10:58:13 +01:00
parent 36283d6d4b
commit 3158851685
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
2 changed files with 2 additions and 2 deletions

View file

@ -76,7 +76,7 @@ module Rpl
# convert degrees to radians
def degrees_to_radians( stack, dictionary )
Rpl::Lang.eval( stack, dictionary, '𝛑 180 / *' )
Rpl::Lang.eval( stack, dictionary, '180 / 𝛑 *' )
end
# convert radians to degrees

View file

@ -58,7 +58,7 @@ class TesttLanguageOperations < Test::Unit::TestCase
def test_dr
lang = Rpl::Language.new
lang.run '90 d→r'
assert_equal [{ value: BigDecimal( 1.57079632679489661923132169168272243847381663981000003, Rpl::Lang.precision ),
assert_equal [{ value: BigMath.PI( Rpl::Lang.precision ) / 2,
type: :numeric, base: 10 }],
lang.stack
end