diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/json/json_generator_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/json/json_generator_test.rb b/test/json/json_generator_test.rb index d97f0505f7..942802d62f 100755 --- a/test/json/json_generator_test.rb +++ b/test/json/json_generator_test.rb @@ -86,6 +86,10 @@ class JSONGeneratorTest < Test::Unit::TestCase assert_equal '42', dump(42, strict: true) assert_equal 'true', dump(true, strict: true) + + assert_equal '"hello"', dump(:hello, strict: true) + assert_equal '"hello"', :hello.to_json(strict: true) + assert_equal '"World"', "World".to_json(strict: true) end def test_generate_pretty |