From 717e04549e7deb3b7c60928bc7670c34f0e0dd0c Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 9 Feb 2022 16:35:17 +0100 Subject: [PATCH] test core.stringify --- spec/core_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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