Skip to content

Commit

Permalink
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions spec/truffle/tags/core/string/modulo_tags.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
fails:String#% formats single % characters before a newline or NULL as literal %s
fails:String#% raises an ArgumentError for unused arguments when $DEBUG is true
fails:String#% always allows unused arguments when positional argument style is used
fails:String#% replaces trailing absolute argument specifier without type with percent sign
fails:String#% raises an ArgumentError when multiple positional argument tokens are given for one format specifier
fails:String#% raises an ArgumentError when absolute and relative argument numbers are mixed
fails:String#% allows reuse of the one argument multiple via absolute argument numbers
fails:String#% allows positional arguments for width star and precision star arguments
fails:String#% allows negative width to imply '-' flag
fails:String#% ignores negative precision
Original file line number Diff line number Diff line change
@@ -155,7 +155,7 @@ public void exitFormat(PrintfParser.FormatContext ctx) {
final String conversionMethodName = type == 's' ? "to_s" : "inspect";
final FormatNode conversionNode;

if (ctx.ANGLE_KEY() == null) {
if (ctx.ANGLE_KEY() == null && absoluteArgumentIndex == DEFAULT) {
conversionNode = ReadStringNodeGen.create(context, true, conversionMethodName, false, EMPTY_BYTES, new SourceNode());
} else {
conversionNode = ToStringNodeGen.create(context, true, conversionMethodName, false, EMPTY_BYTES, valueNode);

0 comments on commit 05a4666

Please sign in to comment.