summaryrefslogtreecommitdiff
path: root/tests/json_parser_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #483 from notEthan/unicode_mixedHiroshi SHIBATA2022-06-141-0/+4
|\ | | | | bugfix json/pure mixing escaped with literal unicode raises Encoding::CompatibilityError
| * test parsing of unicode, mixing literal characters with escapedEthan2022-02-081-0/+4
| |
* | Fix parser bug for empty string allocationAndrew Bromwich2022-04-201-0/+1
|/ | | | | | | | When `HAVE_RB_ENC_INTERNED_STR` is enabled it is possible to pass through a null pointer to `rb_enc_interned_str` resulting in a segfault Fixes #495
* test/json/json_parser_test.rb: suppress warningsYusuke Endoh2020-11-121-2/+2
| | | | | | | | http://rubyci.s3.amazonaws.com/ubuntu/ruby-master/log/20201021T123003Z.log.html.gz ``` /home/chkbuild/chkbuild/tmp/build/20201021T123003Z/ruby/test/json/json_parser_test.rb:227: warning: ambiguous first argument; put parentheses or a space even after `-' operator /home/chkbuild/chkbuild/tmp/build/20201021T123003Z/ruby/test/json/json_parser_test.rb:228: warning: ambiguous first argument; put parentheses or a space even after `-' operator ```
* strip trailing spaces [ci skip]Nobuyoshi Nakada2020-11-121-1/+1
|
* Implement a freeze: parser optionJean Boussier2020-09-151-0/+21
| | | | | | | If set to true all parsed objects will be immediately frozen, and strings will be deduplicated if the Ruby implementation allows it.
* Add an option to escape forward slash characterJean Boussier2020-07-041-0/+4
| | | | | | | | | | | | | | | | Squashed commit of the following: commit 26d181059989279a79c433cedcd893b4f52e42ee Author: Francois Chagnon <francois.chagnon@jadedpixel.com> Date: Tue Sep 15 21:17:34 2015 +0000 add config options for escape_slash commit fa282334051b16df91ca097dd7304b46f3bc7719 Author: Francois Chagnon <francois.chagnon@jadedpixel.com> Date: Mon Feb 9 21:09:33 2015 +0000 add forward slash to escape character
* Fix JSON::Parser against bigdecimal updatesmrkn2019-10-311-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Ignore warnings about ambiguous first argument with the negative integer.Hiroshi SHIBATA2019-10-311-12/+12
|
* Added missing bigdecimal for its testSHIBATA Hiroshi2017-06-161-0/+1
|
* Actually test BigDecimal parsing.Xuân Baldauf2017-03-191-0/+5
|
* Fix issue #296 when parsing frozen stringsFlorian Frank2016-07-261-0/+7
|
* Test parsing some simple singular valuesFlorian Frank2016-07-071-1/+12
|
* And stay thereFlorian Frank2016-06-221-1/+0
|
* Add frozen_string_literal: falseNobuyoshi Nakada2016-06-211-0/+1
| | | | When you change this to true, you may need to add more tests.
* Exception encodingNobuyoshi Nakada2016-06-211-0/+10
| | | | Raise with messages in UTF-8 encoding.
* Use assert_raise consistentlyNobuyoshi Nakada2016-06-211-25/+25
|
* Remove quirks modeFlorian Frank2016-06-021-1/+1
|
* Declare encodingFlorian Frank2016-06-021-0/+2
|
* Disallow usage of symbolize_names and create_additionsFlorian Frank2015-06-151-0/+3
|
* Refactor tests and make pure parser greenFlorian Frank2015-06-151-0/+433