mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* string.c (rb_str_succ): use wrapped character as a carry for
ASCII incompatible encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									44cfd58dc5
								
							
						
					
					
						commit
						84fe384383
					
				
					 3 changed files with 19 additions and 2 deletions
				
			
		|  | @ -176,6 +176,14 @@ EOT | |||
|     assert_str_equal(s, s.chomp, "#{encdump s}.chomp") | ||||
|   end | ||||
| 
 | ||||
|   def test_succ | ||||
|     s = "\xff\xff".force_encoding("utf-16be") | ||||
|     assert(s.succ.valid_encoding?, "#{encdump s}.succ.valid_encoding?") | ||||
| 
 | ||||
|     s = "\xdb\xff\xdf\xff".force_encoding("utf-16be") | ||||
|     assert(s.succ.valid_encoding?, "#{encdump s}.succ.valid_encoding?") | ||||
|   end | ||||
| 
 | ||||
|   def test_regexp_union | ||||
|     enccall(Regexp, :union, "aa".force_encoding("utf-16be"), "bb".force_encoding("utf-16be")) | ||||
|   end | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 akr
						akr