add BigDecimal todo
This commit is contained in:
parent
a512979e91
commit
96868a742f
2 changed files with 4 additions and 2 deletions
|
@ -3,5 +3,6 @@
|
|||
https://github.com/louisrubet/rpn/ inspired language in ruby
|
||||
|
||||
# TODO-list
|
||||
* generalize use of BigDecimal in :numeric's
|
||||
* pseudo filesystem: subdir for variables
|
||||
* UI toolkit (based on https://github.com/AndyObtiva/glimmer-dsl-libui ?)
|
||||
|
|
|
@ -57,8 +57,9 @@ class TesttLanguageOperations < Test::Unit::TestCase
|
|||
|
||||
def test_d→r
|
||||
lang = Rpl::Language.new
|
||||
lang.run '30 d→r'
|
||||
assert_equal [{ value: 0.5235987756, type: :numeric, base: 10 }],
|
||||
lang.run '90 d→r'
|
||||
assert_equal [{ value: BigDecimal( 1.57079632679489661923132169168272243847381663981000003, Rpl::Lang::Core.precision ),
|
||||
type: :numeric, base: 10 }],
|
||||
lang.stack
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue