mirror of
				https://github.com/ruby/ruby.git
				synced 2022-11-09 12:17:21 -05:00 
			
		
		
		
	* test/ruby/test_unicode_escape.rb (test_basic): windows' echo support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
		
							parent
							
								
									3dd2370e04
								
							
						
					
					
						commit
						6f7e284257
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -45,9 +45,9 @@ EOS | |||
|     assert_equal('\u00fc', "\\" + "u00fc") | ||||
| 
 | ||||
|     # \u in %x strings | ||||
|     assert_equal(`echo "\u0041"`.chop, "A") | ||||
|     assert_equal(%x{echo "\u0041"}.chop, "A") | ||||
|     assert_equal(`echo "\u{FC}"`.force_encoding("utf-8"), "ü\n") | ||||
|     assert_match(/^("?)A\1$/, `echo "\u0041"`) #" | ||||
|     assert_match(/^("?)A\1$/, %x{echo "\u0041"}) #" | ||||
|     assert_match(/^("?)ü\1$/, `echo "\u{FC}"`.force_encoding("utf-8")) #" | ||||
| 
 | ||||
|     # \u in quoted symbols | ||||
|     assert_equal(:A, :"\u0041") | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 usa
						usa