diff --git a/spec/core_spec.rb b/spec/core_spec.rb index a28710e..2046022 100644 --- a/spec/core_spec.rb +++ b/spec/core_spec.rb @@ -24,4 +24,11 @@ class TestParser < Test::Unit::TestCase { value: 'test', type: :string }], args end + + def test_stringify + assert_equal '∞', + Rpl::Lang.stringify( { value: Float::INFINITY, + base: 10, + type: :numeric } ) + end end