You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/tags/core/string/modulo_tags.txt
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,3 +2,21 @@ fails:String#% output's encoding is the same as the format string if passed valu
2
2
fails:String#% output's encoding negotiates a compatible encoding if necessary
3
3
fails:String#% output's encoding raises if a compatible encoding can't be found
4
4
fails:String#% raises an error if single % appears at the end
5
+
fails:String#% returns a String in the same encoding as the format String if compatible
6
+
fails:String#% returns a String in the argument's encoding if format encoding is more restrictive
7
+
fails:String#% raises Encoding::CompatibilityError if both encodings are ASCII compatible and there ano not ASCII characters
8
+
fails:String#% other formats c raises ArgumentError if argument is an empty string
9
+
fails:String#% other formats c supports Unicode characters
10
+
fails:String#% other formats s does not try to convert with to_str
11
+
fails:String#% other formats % alone raises an ArgumentError
12
+
fails:String#% flags (digit)$ raises exception if argument number is bigger than actual arguments list
13
+
fails:String#% flags # applies to format o does nothing for negative argument
14
+
fails:String#% flags # applies to formats bBxX does nothing for zero argument
15
+
fails:String#% flags # applies to formats aAeEfgG forces a decimal point to be added, even if no digits follow
16
+
fails:String#% flags # applies to gG does not remove trailing zeros
17
+
fails:String#% flags - left-justifies the result of conversion if width is specified
18
+
fails:String#% flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified uses radix-1 when displays negative argument as a two's complement
19
+
fails:String#% flags * left-justifies the result if width is negative
20
+
fails:String#% flags * left-justifies the result if specified with $ argument is negative
21
+
fails:String#% precision string formats determines the maximum number of characters to be copied from the string
22
+
fails:String#% reference by name %{name} style supports flags, width and precision
0 commit comments