finally pass d→r test
This commit is contained in:
parent
36283d6d4b
commit
3158851685
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -58,7 +58,7 @@ class TesttLanguageOperations < Test::Unit::TestCase
|
|||
def test_d→r
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue