Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/truffle/compiler/pe/core/string_pe.rb
Original file line number Diff line number Diff line change
@@ -23,6 +23,11 @@
example "x = 'abc'; x == x.dup", true
example "x = 'abc'; 'abc' == x.dup", true

example "'A' == String.from_codepoint(65, Encoding::US_ASCII)", true
example "'A' == 65.chr", true

example "'aba'[0] == 'aca'[-1]", true

example "'abc'.ascii_only?", true
example "'こにちわ'.ascii_only?", false

@@ -35,6 +40,3 @@
example "''.empty?", true
example "'abc'.empty?", false
example "'こにちわ'.empty?", false

example "'A' == String.from_codepoint(65, Encoding::US_ASCII)", true
example "'A' == 65.chr", true

0 comments on commit 58b055e

Please sign in to comment.