opal 1.6.1 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/build.yml +17 -0
  3. data/CHANGELOG.md +35 -1
  4. data/Gemfile +1 -0
  5. data/HACKING.md +47 -26
  6. data/benchmark/benchmarks +415 -103
  7. data/benchmark/bm_call_overhead.yml +28 -0
  8. data/benchmark/run.rb +61 -40
  9. data/docs/cdp_common.json +3364 -0
  10. data/docs/cdp_common.md +18 -0
  11. data/docs/{headless_chrome.md → headless_browsers.md} +31 -12
  12. data/lib/opal/ast/builder.rb +1 -1
  13. data/lib/opal/builder.rb +6 -1
  14. data/lib/opal/builder_processors.rb +5 -3
  15. data/lib/opal/cache.rb +1 -7
  16. data/lib/opal/cli_options.rb +72 -58
  17. data/lib/opal/cli_runners/chrome.rb +47 -9
  18. data/lib/opal/cli_runners/chrome_cdp_interface.rb +238 -112
  19. data/lib/opal/cli_runners/compiler.rb +146 -13
  20. data/lib/opal/cli_runners/deno.rb +32 -0
  21. data/lib/opal/cli_runners/firefox.rb +350 -0
  22. data/lib/opal/cli_runners/firefox_cdp_interface.rb +212 -0
  23. data/lib/opal/cli_runners/node_modules/.bin/chrome-remote-interface.cmd +17 -0
  24. data/lib/opal/cli_runners/node_modules/.bin/chrome-remote-interface.ps1 +28 -0
  25. data/lib/opal/cli_runners/node_modules/.package-lock.json +41 -0
  26. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/LICENSE +1 -1
  27. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/README.md +322 -182
  28. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/bin/client.js +99 -114
  29. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/chrome-remote-interface.js +1 -11
  30. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/index.js +16 -11
  31. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/api.js +41 -33
  32. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/chrome.js +224 -214
  33. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/devtools.js +71 -191
  34. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/external-request.js +26 -6
  35. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/protocol.json +20788 -9049
  36. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/websocket-wrapper.js +10 -3
  37. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/package.json +59 -123
  38. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/webpack.config.js +25 -32
  39. data/lib/opal/cli_runners/node_modules/commander/History.md +298 -0
  40. data/lib/opal/cli_runners/node_modules/commander/LICENSE +22 -0
  41. data/lib/opal/cli_runners/node_modules/commander/Readme.md +217 -61
  42. data/lib/opal/cli_runners/node_modules/commander/index.js +431 -145
  43. data/lib/opal/cli_runners/node_modules/commander/package.json +16 -79
  44. data/lib/opal/cli_runners/node_modules/ws/README.md +334 -98
  45. data/lib/opal/cli_runners/node_modules/ws/browser.js +8 -0
  46. data/lib/opal/cli_runners/node_modules/ws/index.js +5 -10
  47. data/lib/opal/cli_runners/node_modules/ws/lib/buffer-util.js +129 -0
  48. data/lib/opal/cli_runners/node_modules/ws/lib/constants.js +10 -0
  49. data/lib/opal/cli_runners/node_modules/ws/lib/event-target.js +184 -0
  50. data/lib/opal/cli_runners/node_modules/ws/lib/extension.js +223 -0
  51. data/lib/opal/cli_runners/node_modules/ws/lib/limiter.js +55 -0
  52. data/lib/opal/cli_runners/node_modules/ws/lib/permessage-deflate.js +518 -0
  53. data/lib/opal/cli_runners/node_modules/ws/lib/receiver.js +607 -0
  54. data/lib/opal/cli_runners/node_modules/ws/lib/sender.js +409 -0
  55. data/lib/opal/cli_runners/node_modules/ws/lib/stream.js +180 -0
  56. data/lib/opal/cli_runners/node_modules/ws/lib/validation.js +104 -0
  57. data/lib/opal/cli_runners/node_modules/ws/lib/websocket-server.js +447 -0
  58. data/lib/opal/cli_runners/node_modules/ws/lib/websocket.js +1195 -0
  59. data/lib/opal/cli_runners/node_modules/ws/package.json +40 -106
  60. data/lib/opal/cli_runners/package-lock.json +62 -0
  61. data/lib/opal/cli_runners/package.json +1 -1
  62. data/lib/opal/cli_runners.rb +26 -4
  63. data/lib/opal/nodes/args/prepare_post_args.rb +2 -2
  64. data/lib/opal/nodes/def.rb +8 -8
  65. data/lib/opal/nodes/iter.rb +12 -12
  66. data/lib/opal/nodes/logic.rb +1 -1
  67. data/lib/opal/nodes/masgn.rb +2 -2
  68. data/lib/opal/parser/with_ruby_lexer.rb +1 -1
  69. data/lib/opal/paths.rb +14 -0
  70. data/lib/opal/rewriter.rb +2 -0
  71. data/lib/opal/rewriters/forward_args.rb +52 -4
  72. data/lib/opal/rewriters/targeted_patches.rb +94 -0
  73. data/lib/opal/version.rb +1 -1
  74. data/opal/corelib/basic_object.rb +1 -1
  75. data/opal/corelib/boolean.rb +2 -2
  76. data/opal/corelib/class.rb +11 -0
  77. data/opal/corelib/constants.rb +3 -3
  78. data/opal/corelib/enumerable.rb +4 -0
  79. data/opal/corelib/enumerator.rb +1 -1
  80. data/opal/corelib/hash.rb +2 -2
  81. data/opal/corelib/helpers.rb +1 -1
  82. data/opal/corelib/kernel.rb +3 -3
  83. data/opal/corelib/method.rb +1 -1
  84. data/opal/corelib/module.rb +29 -8
  85. data/opal/corelib/proc.rb +7 -5
  86. data/opal/corelib/runtime.js +141 -78
  87. data/opal/corelib/set.rb +252 -0
  88. data/opal/corelib/string.rb +2 -1
  89. data/opal/corelib/time.rb +2 -2
  90. data/opal/opal.rb +1 -0
  91. data/opal.gemspec +1 -0
  92. data/spec/filters/bugs/array.rb +22 -13
  93. data/spec/filters/bugs/base64.rb +5 -5
  94. data/spec/filters/bugs/basicobject.rb +16 -8
  95. data/spec/filters/bugs/bigdecimal.rb +161 -160
  96. data/spec/filters/bugs/binding.rb +10 -10
  97. data/spec/filters/bugs/class.rb +8 -8
  98. data/spec/filters/bugs/complex.rb +2 -1
  99. data/spec/filters/bugs/date.rb +79 -81
  100. data/spec/filters/bugs/datetime.rb +29 -29
  101. data/spec/filters/bugs/delegate.rb +1 -3
  102. data/spec/filters/bugs/encoding.rb +69 -69
  103. data/spec/filters/bugs/enumerable.rb +22 -20
  104. data/spec/filters/bugs/enumerator.rb +88 -85
  105. data/spec/filters/bugs/exception.rb +46 -40
  106. data/spec/filters/bugs/file.rb +32 -32
  107. data/spec/filters/bugs/float.rb +26 -21
  108. data/spec/filters/bugs/freeze.rb +88 -0
  109. data/spec/filters/bugs/hash.rb +39 -38
  110. data/spec/filters/bugs/integer.rb +57 -44
  111. data/spec/filters/bugs/io.rb +1 -1
  112. data/spec/filters/bugs/kernel.rb +349 -269
  113. data/spec/filters/bugs/language.rb +220 -188
  114. data/spec/filters/bugs/main.rb +5 -3
  115. data/spec/filters/bugs/marshal.rb +38 -38
  116. data/spec/filters/bugs/math.rb +2 -1
  117. data/spec/filters/bugs/method.rb +73 -62
  118. data/spec/filters/bugs/module.rb +163 -143
  119. data/spec/filters/bugs/numeric.rb +6 -6
  120. data/spec/filters/bugs/objectspace.rb +16 -16
  121. data/spec/filters/bugs/openstruct.rb +1 -1
  122. data/spec/filters/bugs/pack_unpack.rb +51 -51
  123. data/spec/filters/bugs/pathname.rb +7 -7
  124. data/spec/filters/bugs/proc.rb +63 -63
  125. data/spec/filters/bugs/random.rb +7 -6
  126. data/spec/filters/bugs/range.rb +12 -9
  127. data/spec/filters/bugs/rational.rb +8 -7
  128. data/spec/filters/bugs/regexp.rb +49 -48
  129. data/spec/filters/bugs/ruby-32.rb +56 -0
  130. data/spec/filters/bugs/set.rb +30 -30
  131. data/spec/filters/bugs/singleton.rb +4 -4
  132. data/spec/filters/bugs/string.rb +187 -99
  133. data/spec/filters/bugs/stringio.rb +7 -0
  134. data/spec/filters/bugs/stringscanner.rb +68 -68
  135. data/spec/filters/bugs/struct.rb +11 -9
  136. data/spec/filters/bugs/symbol.rb +1 -1
  137. data/spec/filters/bugs/time.rb +78 -63
  138. data/spec/filters/bugs/trace_point.rb +4 -4
  139. data/spec/filters/bugs/unboundmethod.rb +32 -17
  140. data/spec/filters/bugs/warnings.rb +8 -12
  141. data/spec/filters/unsupported/array.rb +24 -107
  142. data/spec/filters/unsupported/basicobject.rb +12 -12
  143. data/spec/filters/unsupported/bignum.rb +27 -52
  144. data/spec/filters/unsupported/class.rb +1 -2
  145. data/spec/filters/unsupported/delegator.rb +3 -3
  146. data/spec/filters/unsupported/enumerable.rb +2 -9
  147. data/spec/filters/unsupported/enumerator.rb +2 -11
  148. data/spec/filters/unsupported/file.rb +1 -1
  149. data/spec/filters/unsupported/float.rb +28 -47
  150. data/spec/filters/unsupported/hash.rb +8 -14
  151. data/spec/filters/unsupported/integer.rb +75 -91
  152. data/spec/filters/unsupported/kernel.rb +17 -35
  153. data/spec/filters/unsupported/language.rb +11 -19
  154. data/spec/filters/unsupported/marshal.rb +22 -41
  155. data/spec/filters/unsupported/matchdata.rb +28 -52
  156. data/spec/filters/unsupported/math.rb +1 -1
  157. data/spec/filters/unsupported/privacy.rb +229 -285
  158. data/spec/filters/unsupported/range.rb +1 -5
  159. data/spec/filters/unsupported/regexp.rb +40 -66
  160. data/spec/filters/unsupported/set.rb +2 -2
  161. data/spec/filters/unsupported/singleton.rb +4 -4
  162. data/spec/filters/unsupported/string.rb +305 -508
  163. data/spec/filters/unsupported/struct.rb +3 -4
  164. data/spec/filters/unsupported/symbol.rb +15 -18
  165. data/spec/filters/unsupported/thread.rb +1 -7
  166. data/spec/filters/unsupported/time.rb +159 -202
  167. data/spec/filters/unsupported/usage_of_files.rb +170 -259
  168. data/spec/lib/builder_spec.rb +4 -4
  169. data/spec/lib/rewriters/forward_args_spec.rb +32 -12
  170. data/spec/mspec-opal/runner.rb +2 -0
  171. data/spec/ruby_specs +4 -0
  172. data/stdlib/deno/base.rb +28 -0
  173. data/stdlib/deno/file.rb +340 -0
  174. data/stdlib/{headless_chrome.rb → headless_browser/base.rb} +1 -1
  175. data/stdlib/headless_browser/file.rb +15 -0
  176. data/stdlib/headless_browser.rb +4 -0
  177. data/stdlib/native.rb +1 -1
  178. data/stdlib/nodejs/file.rb +5 -0
  179. data/stdlib/opal/platform.rb +8 -6
  180. data/stdlib/opal-platform.rb +14 -8
  181. data/stdlib/set.rb +1 -258
  182. data/tasks/benchmarking.rake +62 -19
  183. data/tasks/performance.rake +1 -1
  184. data/tasks/testing.rake +5 -3
  185. data/test/nodejs/test_file.rb +29 -10
  186. data/test/opal/http_server.rb +28 -11
  187. data/test/opal/unsupported_and_bugs.rb +2 -1
  188. metadata +89 -50
  189. data/lib/opal/cli_runners/node_modules/ultron/LICENSE +0 -22
  190. data/lib/opal/cli_runners/node_modules/ultron/index.js +0 -138
  191. data/lib/opal/cli_runners/node_modules/ultron/package.json +0 -112
  192. data/lib/opal/cli_runners/node_modules/ws/SECURITY.md +0 -33
  193. data/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.fallback.js +0 -56
  194. data/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.js +0 -15
  195. data/lib/opal/cli_runners/node_modules/ws/lib/ErrorCodes.js +0 -28
  196. data/lib/opal/cli_runners/node_modules/ws/lib/EventTarget.js +0 -158
  197. data/lib/opal/cli_runners/node_modules/ws/lib/Extensions.js +0 -69
  198. data/lib/opal/cli_runners/node_modules/ws/lib/PerMessageDeflate.js +0 -339
  199. data/lib/opal/cli_runners/node_modules/ws/lib/Receiver.js +0 -520
  200. data/lib/opal/cli_runners/node_modules/ws/lib/Sender.js +0 -438
  201. data/lib/opal/cli_runners/node_modules/ws/lib/Validation.fallback.js +0 -9
  202. data/lib/opal/cli_runners/node_modules/ws/lib/Validation.js +0 -17
  203. data/lib/opal/cli_runners/node_modules/ws/lib/WebSocket.js +0 -705
  204. data/lib/opal/cli_runners/node_modules/ws/lib/WebSocketServer.js +0 -336
  205. data/spec/filters/bugs/boolean.rb +0 -3
  206. data/spec/filters/bugs/matrix.rb +0 -3
  207. data/spec/filters/unsupported/fixnum.rb +0 -15
  208. data/spec/filters/unsupported/freeze.rb +0 -102
  209. data/spec/filters/unsupported/pathname.rb +0 -4
  210. data/spec/filters/unsupported/proc.rb +0 -4
  211. data/spec/filters/unsupported/random.rb +0 -5
  212. data/spec/filters/unsupported/taint.rb +0 -162
@@ -1,262 +1,173 @@
1
1
  # NOTE: run bin/format-filters after changing this file
2
2
  opal_filter "Specs that use temporary files" do
3
- fails "A Symbol literal inherits the encoding of the magic comment and can have a binary encoding"
4
- fails "Kernel.printf formatting io is not specified faulty key raises a KeyError"
5
- fails "Kernel.printf formatting io is not specified faulty key sets the Hash as the receiver of KeyError"
6
- fails "Kernel.printf formatting io is not specified faulty key sets the unmatched key as the key of KeyError"
7
- fails "Kernel.printf formatting io is not specified flags # applies to format o does nothing for negative argument"
8
- fails "Kernel.printf formatting io is not specified flags # applies to format o increases the precision until the first digit will be `0' if it is not formatted as complements"
9
- fails "Kernel.printf formatting io is not specified flags # applies to formats aAeEfgG changes format from dd.dddd to exponential form for gG"
10
- fails "Kernel.printf formatting io is not specified flags # applies to formats aAeEfgG forces a decimal point to be added, even if no digits follow"
11
- fails "Kernel.printf formatting io is not specified flags # applies to formats bBxX does nothing for zero argument"
12
- fails "Kernel.printf formatting io is not specified flags # applies to formats bBxX prefixes the result with 0x, 0X, 0b and 0B respectively for non-zero argument"
13
- fails "Kernel.printf formatting io is not specified flags # applies to gG does not remove trailing zeros"
14
- fails "Kernel.printf formatting io is not specified flags (digit)$ ignores '-' sign"
15
- fails "Kernel.printf formatting io is not specified flags (digit)$ raises ArgumentError exception when absolute and relative argument numbers are mixed"
16
- fails "Kernel.printf formatting io is not specified flags (digit)$ raises exception if argument number is bigger than actual arguments list"
17
- fails "Kernel.printf formatting io is not specified flags (digit)$ specifies the absolute argument number for this field"
18
- fails "Kernel.printf formatting io is not specified flags * left-justifies the result if specified with $ argument is negative"
19
- fails "Kernel.printf formatting io is not specified flags * left-justifies the result if width is negative"
20
- fails "Kernel.printf formatting io is not specified flags * raises ArgumentError when is mixed with width"
21
- fails "Kernel.printf formatting io is not specified flags * uses the previous argument as the field width"
22
- fails "Kernel.printf formatting io is not specified flags * uses the specified argument as the width if * is followed by a number and $"
23
- fails "Kernel.printf formatting io is not specified flags + applies to numeric formats bBdiouxXaAeEfgG adds a leading plus sign to non-negative numbers"
24
- fails "Kernel.printf formatting io is not specified flags + applies to numeric formats bBdiouxXaAeEfgG does not use two's complement form for negative numbers for formats bBoxX"
25
- fails "Kernel.printf formatting io is not specified flags - left-justifies the result of conversion if width is specified"
26
- fails "Kernel.printf formatting io is not specified flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified pads with zeros, not spaces"
27
- fails "Kernel.printf formatting io is not specified flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified uses radix-1 when displays negative argument as a two's complement"
28
- fails "Kernel.printf formatting io is not specified flags space applies to numeric formats bBdiouxXeEfgGaA does not leave a space at the start of negative numbers"
29
- fails "Kernel.printf formatting io is not specified flags space applies to numeric formats bBdiouxXeEfgGaA leaves a space at the start of non-negative numbers"
30
- fails "Kernel.printf formatting io is not specified flags space applies to numeric formats bBdiouxXeEfgGaA prevents converting negative argument to two's complement form"
31
- fails "Kernel.printf formatting io is not specified flags space applies to numeric formats bBdiouxXeEfgGaA treats several white spaces as one"
32
- fails "Kernel.printf formatting io is not specified float formats A converts floating point argument as [-]0xh.hhhhp[+-]dd and use uppercase X and P"
33
- fails "Kernel.printf formatting io is not specified float formats A displays Float::INFINITY as Inf"
34
- fails "Kernel.printf formatting io is not specified float formats A displays Float::NAN as NaN"
35
- fails "Kernel.printf formatting io is not specified float formats E converts argument into exponential notation [-]d.dddddde[+-]dd"
36
- fails "Kernel.printf formatting io is not specified float formats E cuts excessive digits and keeps only 6 ones"
37
- fails "Kernel.printf formatting io is not specified float formats E displays Float::INFINITY as Inf"
38
- fails "Kernel.printf formatting io is not specified float formats E displays Float::NAN as NaN"
39
- fails "Kernel.printf formatting io is not specified float formats E rounds the last significant digit to the closest one"
40
- fails "Kernel.printf formatting io is not specified float formats G displays Float::INFINITY as Inf"
41
- fails "Kernel.printf formatting io is not specified float formats G displays Float::NAN as NaN"
42
- fails "Kernel.printf formatting io is not specified float formats G otherwise converts a floating point number in dd.dddd form"
43
- fails "Kernel.printf formatting io is not specified float formats G otherwise cuts excessive digits in fractional part and keeps only 4 ones"
44
- fails "Kernel.printf formatting io is not specified float formats G otherwise cuts fraction part to have only 6 digits at all"
45
- fails "Kernel.printf formatting io is not specified float formats G otherwise rounds the last significant digit to the closest one in fractional part"
46
- fails "Kernel.printf formatting io is not specified float formats G the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form"
47
- fails "Kernel.printf formatting io is not specified float formats G the exponent is less than -4 converts a floating point number using exponential form"
48
- fails "Kernel.printf formatting io is not specified float formats a converts floating point argument as [-]0xh.hhhhp[+-]dd"
49
- fails "Kernel.printf formatting io is not specified float formats a displays Float::INFINITY as Inf"
50
- fails "Kernel.printf formatting io is not specified float formats a displays Float::NAN as NaN"
51
- fails "Kernel.printf formatting io is not specified float formats converts argument into Float"
52
- fails "Kernel.printf formatting io is not specified float formats e converts argument into exponential notation [-]d.dddddde[+-]dd"
53
- fails "Kernel.printf formatting io is not specified float formats e cuts excessive digits and keeps only 6 ones"
54
- fails "Kernel.printf formatting io is not specified float formats e displays Float::INFINITY as Inf"
55
- fails "Kernel.printf formatting io is not specified float formats e displays Float::NAN as NaN"
56
- fails "Kernel.printf formatting io is not specified float formats e rounds the last significant digit to the closest one"
57
- fails "Kernel.printf formatting io is not specified float formats f converts floating point argument as [-]ddd.dddddd"
58
- fails "Kernel.printf formatting io is not specified float formats f cuts excessive digits and keeps only 6 ones"
59
- fails "Kernel.printf formatting io is not specified float formats f displays Float::INFINITY as Inf"
60
- fails "Kernel.printf formatting io is not specified float formats f displays Float::NAN as NaN"
61
- fails "Kernel.printf formatting io is not specified float formats f rounds the last significant digit to the closest one"
62
- fails "Kernel.printf formatting io is not specified float formats g displays Float::INFINITY as Inf"
63
- fails "Kernel.printf formatting io is not specified float formats g displays Float::NAN as NaN"
64
- fails "Kernel.printf formatting io is not specified float formats g otherwise converts a floating point number in dd.dddd form"
65
- fails "Kernel.printf formatting io is not specified float formats g otherwise cuts excessive digits in fractional part and keeps only 4 ones"
66
- fails "Kernel.printf formatting io is not specified float formats g otherwise cuts fraction part to have only 6 digits at all"
67
- fails "Kernel.printf formatting io is not specified float formats g otherwise rounds the last significant digit to the closest one in fractional part"
68
- fails "Kernel.printf formatting io is not specified float formats g the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form"
69
- fails "Kernel.printf formatting io is not specified float formats g the exponent is less than -4 converts a floating point number using exponential form"
70
- fails "Kernel.printf formatting io is not specified float formats raises TypeError exception if cannot convert to Float"
71
- fails "Kernel.printf formatting io is not specified integer formats B collapse negative number representation if it equals 1"
72
- fails "Kernel.printf formatting io is not specified integer formats B converts argument as a binary number"
73
- fails "Kernel.printf formatting io is not specified integer formats B displays negative number as a two's complement prefixed with '..1'"
74
- fails "Kernel.printf formatting io is not specified integer formats X collapse negative number representation if it equals F"
75
- fails "Kernel.printf formatting io is not specified integer formats X converts argument as a hexadecimal number with uppercase letters"
76
- fails "Kernel.printf formatting io is not specified integer formats X displays negative number as a two's complement prefixed with '..f'"
77
- fails "Kernel.printf formatting io is not specified integer formats b collapse negative number representation if it equals 1"
78
- fails "Kernel.printf formatting io is not specified integer formats b converts argument as a binary number"
79
- fails "Kernel.printf formatting io is not specified integer formats b displays negative number as a two's complement prefixed with '..1'"
80
- fails "Kernel.printf formatting io is not specified integer formats converts String argument with Kernel#Integer"
81
- fails "Kernel.printf formatting io is not specified integer formats converts argument into Integer with to_i if to_int isn't available"
82
- fails "Kernel.printf formatting io is not specified integer formats converts argument into Integer with to_int"
83
- fails "Kernel.printf formatting io is not specified integer formats d converts argument as a decimal number"
84
- fails "Kernel.printf formatting io is not specified integer formats d works well with large numbers"
85
- fails "Kernel.printf formatting io is not specified integer formats i converts argument as a decimal number"
86
- fails "Kernel.printf formatting io is not specified integer formats i works well with large numbers"
87
- fails "Kernel.printf formatting io is not specified integer formats o collapse negative number representation if it equals 7"
88
- fails "Kernel.printf formatting io is not specified integer formats o converts argument as an octal number"
89
- fails "Kernel.printf formatting io is not specified integer formats o displays negative number as a two's complement prefixed with '..7'"
90
- fails "Kernel.printf formatting io is not specified integer formats raises TypeError exception if cannot convert to Integer"
91
- fails "Kernel.printf formatting io is not specified integer formats u converts argument as a decimal number"
92
- fails "Kernel.printf formatting io is not specified integer formats u works well with large numbers"
93
- fails "Kernel.printf formatting io is not specified integer formats x collapse negative number representation if it equals f"
94
- fails "Kernel.printf formatting io is not specified integer formats x converts argument as a hexadecimal number"
95
- fails "Kernel.printf formatting io is not specified integer formats x displays negative number as a two's complement prefixed with '..f'"
96
- fails "Kernel.printf formatting io is not specified other formats % alone raises an ArgumentError"
97
- fails "Kernel.printf formatting io is not specified other formats % is escaped by %"
98
- fails "Kernel.printf formatting io is not specified other formats c displays character if argument is a numeric code of character"
99
- fails "Kernel.printf formatting io is not specified other formats c displays character if argument is a single character string"
100
- fails "Kernel.printf formatting io is not specified other formats c raises ArgumentError if argument is a string of several characters"
101
- fails "Kernel.printf formatting io is not specified other formats c raises ArgumentError if argument is an empty string"
102
- fails "Kernel.printf formatting io is not specified other formats c supports Unicode characters"
103
- fails "Kernel.printf formatting io is not specified other formats p displays argument.inspect value"
104
- fails "Kernel.printf formatting io is not specified other formats s converts argument to string with to_s"
105
- fails "Kernel.printf formatting io is not specified other formats s does not try to convert with to_str"
106
- fails "Kernel.printf formatting io is not specified other formats s substitute argument passes as a string"
107
- fails "Kernel.printf formatting io is not specified precision float types controls the number of decimal places displayed in fraction part"
108
- fails "Kernel.printf formatting io is not specified precision float types does not affect G format"
109
- fails "Kernel.printf formatting io is not specified precision integer types controls the number of decimal places displayed"
110
- fails "Kernel.printf formatting io is not specified precision string formats determines the maximum number of characters to be copied from the string"
111
- fails "Kernel.printf formatting io is not specified reference by name %<name>s style allows to place name in any position"
112
- fails "Kernel.printf formatting io is not specified reference by name %<name>s style cannot be mixed with unnamed style"
113
- fails "Kernel.printf formatting io is not specified reference by name %<name>s style supports flags, width, precision and type"
114
- fails "Kernel.printf formatting io is not specified reference by name %<name>s style uses value passed in a hash argument"
115
- fails "Kernel.printf formatting io is not specified reference by name %{name} style cannot be mixed with unnamed style"
116
- fails "Kernel.printf formatting io is not specified reference by name %{name} style converts value to String with to_s"
117
- fails "Kernel.printf formatting io is not specified reference by name %{name} style does not support type style"
118
- fails "Kernel.printf formatting io is not specified reference by name %{name} style raises KeyError when there is no matching key"
119
- fails "Kernel.printf formatting io is not specified reference by name %{name} style supports flags, width and precision"
120
- fails "Kernel.printf formatting io is not specified reference by name %{name} style uses value passed in a hash argument"
121
- fails "Kernel.printf formatting io is not specified width is ignored if argument's actual length is greater"
122
- fails "Kernel.printf formatting io is not specified width specifies the minimum number of characters that will be written to the result"
123
- fails "Kernel.printf formatting io is specified faulty key raises a KeyError"
124
- fails "Kernel.printf formatting io is specified faulty key sets the Hash as the receiver of KeyError"
125
- fails "Kernel.printf formatting io is specified faulty key sets the unmatched key as the key of KeyError"
126
- fails "Kernel.printf formatting io is specified flags # applies to format o does nothing for negative argument"
127
- fails "Kernel.printf formatting io is specified flags # applies to format o increases the precision until the first digit will be `0' if it is not formatted as complements"
128
- fails "Kernel.printf formatting io is specified flags # applies to formats aAeEfgG changes format from dd.dddd to exponential form for gG"
129
- fails "Kernel.printf formatting io is specified flags # applies to formats aAeEfgG forces a decimal point to be added, even if no digits follow"
130
- fails "Kernel.printf formatting io is specified flags # applies to formats bBxX does nothing for zero argument"
131
- fails "Kernel.printf formatting io is specified flags # applies to formats bBxX prefixes the result with 0x, 0X, 0b and 0B respectively for non-zero argument"
132
- fails "Kernel.printf formatting io is specified flags # applies to gG does not remove trailing zeros"
133
- fails "Kernel.printf formatting io is specified flags (digit)$ ignores '-' sign"
134
- fails "Kernel.printf formatting io is specified flags (digit)$ raises ArgumentError exception when absolute and relative argument numbers are mixed"
135
- fails "Kernel.printf formatting io is specified flags (digit)$ raises exception if argument number is bigger than actual arguments list"
136
- fails "Kernel.printf formatting io is specified flags (digit)$ specifies the absolute argument number for this field"
137
- fails "Kernel.printf formatting io is specified flags * left-justifies the result if specified with $ argument is negative"
138
- fails "Kernel.printf formatting io is specified flags * left-justifies the result if width is negative"
139
- fails "Kernel.printf formatting io is specified flags * raises ArgumentError when is mixed with width"
140
- fails "Kernel.printf formatting io is specified flags * uses the previous argument as the field width"
141
- fails "Kernel.printf formatting io is specified flags * uses the specified argument as the width if * is followed by a number and $"
142
- fails "Kernel.printf formatting io is specified flags + applies to numeric formats bBdiouxXaAeEfgG adds a leading plus sign to non-negative numbers"
143
- fails "Kernel.printf formatting io is specified flags + applies to numeric formats bBdiouxXaAeEfgG does not use two's complement form for negative numbers for formats bBoxX"
144
- fails "Kernel.printf formatting io is specified flags - left-justifies the result of conversion if width is specified"
145
- fails "Kernel.printf formatting io is specified flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified pads with zeros, not spaces"
146
- fails "Kernel.printf formatting io is specified flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified uses radix-1 when displays negative argument as a two's complement"
147
- fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA does not leave a space at the start of negative numbers"
148
- fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA leaves a space at the start of non-negative numbers"
149
- fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA prevents converting negative argument to two's complement form"
150
- fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA treats several white spaces as one"
151
- fails "Kernel.printf formatting io is specified float formats A converts floating point argument as [-]0xh.hhhhp[+-]dd and use uppercase X and P"
152
- fails "Kernel.printf formatting io is specified float formats A displays Float::INFINITY as Inf"
153
- fails "Kernel.printf formatting io is specified float formats A displays Float::NAN as NaN"
154
- fails "Kernel.printf formatting io is specified float formats E converts argument into exponential notation [-]d.dddddde[+-]dd"
155
- fails "Kernel.printf formatting io is specified float formats E cuts excessive digits and keeps only 6 ones"
156
- fails "Kernel.printf formatting io is specified float formats E displays Float::INFINITY as Inf"
157
- fails "Kernel.printf formatting io is specified float formats E displays Float::NAN as NaN"
158
- fails "Kernel.printf formatting io is specified float formats E rounds the last significant digit to the closest one"
159
- fails "Kernel.printf formatting io is specified float formats G displays Float::INFINITY as Inf"
160
- fails "Kernel.printf formatting io is specified float formats G displays Float::NAN as NaN"
161
- fails "Kernel.printf formatting io is specified float formats G otherwise converts a floating point number in dd.dddd form"
162
- fails "Kernel.printf formatting io is specified float formats G otherwise cuts excessive digits in fractional part and keeps only 4 ones"
163
- fails "Kernel.printf formatting io is specified float formats G otherwise cuts fraction part to have only 6 digits at all"
164
- fails "Kernel.printf formatting io is specified float formats G otherwise rounds the last significant digit to the closest one in fractional part"
165
- fails "Kernel.printf formatting io is specified float formats G the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form"
166
- fails "Kernel.printf formatting io is specified float formats G the exponent is less than -4 converts a floating point number using exponential form"
167
- fails "Kernel.printf formatting io is specified float formats a converts floating point argument as [-]0xh.hhhhp[+-]dd"
168
- fails "Kernel.printf formatting io is specified float formats a displays Float::INFINITY as Inf"
169
- fails "Kernel.printf formatting io is specified float formats a displays Float::NAN as NaN"
170
- fails "Kernel.printf formatting io is specified float formats converts argument into Float"
171
- fails "Kernel.printf formatting io is specified float formats e converts argument into exponential notation [-]d.dddddde[+-]dd"
172
- fails "Kernel.printf formatting io is specified float formats e cuts excessive digits and keeps only 6 ones"
173
- fails "Kernel.printf formatting io is specified float formats e displays Float::INFINITY as Inf"
174
- fails "Kernel.printf formatting io is specified float formats e displays Float::NAN as NaN"
175
- fails "Kernel.printf formatting io is specified float formats e rounds the last significant digit to the closest one"
176
- fails "Kernel.printf formatting io is specified float formats f converts floating point argument as [-]ddd.dddddd"
177
- fails "Kernel.printf formatting io is specified float formats f cuts excessive digits and keeps only 6 ones"
178
- fails "Kernel.printf formatting io is specified float formats f displays Float::INFINITY as Inf"
179
- fails "Kernel.printf formatting io is specified float formats f displays Float::NAN as NaN"
180
- fails "Kernel.printf formatting io is specified float formats f rounds the last significant digit to the closest one"
181
- fails "Kernel.printf formatting io is specified float formats g displays Float::INFINITY as Inf"
182
- fails "Kernel.printf formatting io is specified float formats g displays Float::NAN as NaN"
183
- fails "Kernel.printf formatting io is specified float formats g otherwise converts a floating point number in dd.dddd form"
184
- fails "Kernel.printf formatting io is specified float formats g otherwise cuts excessive digits in fractional part and keeps only 4 ones"
185
- fails "Kernel.printf formatting io is specified float formats g otherwise cuts fraction part to have only 6 digits at all"
186
- fails "Kernel.printf formatting io is specified float formats g otherwise rounds the last significant digit to the closest one in fractional part"
187
- fails "Kernel.printf formatting io is specified float formats g the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form"
188
- fails "Kernel.printf formatting io is specified float formats g the exponent is less than -4 converts a floating point number using exponential form"
189
- fails "Kernel.printf formatting io is specified float formats raises TypeError exception if cannot convert to Float"
190
- fails "Kernel.printf formatting io is specified integer formats B collapse negative number representation if it equals 1"
191
- fails "Kernel.printf formatting io is specified integer formats B converts argument as a binary number"
192
- fails "Kernel.printf formatting io is specified integer formats B displays negative number as a two's complement prefixed with '..1'"
193
- fails "Kernel.printf formatting io is specified integer formats X collapse negative number representation if it equals F"
194
- fails "Kernel.printf formatting io is specified integer formats X converts argument as a hexadecimal number with uppercase letters"
195
- fails "Kernel.printf formatting io is specified integer formats X displays negative number as a two's complement prefixed with '..f'"
196
- fails "Kernel.printf formatting io is specified integer formats b collapse negative number representation if it equals 1"
197
- fails "Kernel.printf formatting io is specified integer formats b converts argument as a binary number"
198
- fails "Kernel.printf formatting io is specified integer formats b displays negative number as a two's complement prefixed with '..1'"
199
- fails "Kernel.printf formatting io is specified integer formats converts String argument with Kernel#Integer"
200
- fails "Kernel.printf formatting io is specified integer formats converts argument into Integer with to_i if to_int isn't available"
201
- fails "Kernel.printf formatting io is specified integer formats converts argument into Integer with to_int"
202
- fails "Kernel.printf formatting io is specified integer formats d converts argument as a decimal number"
203
- fails "Kernel.printf formatting io is specified integer formats d works well with large numbers"
204
- fails "Kernel.printf formatting io is specified integer formats i converts argument as a decimal number"
205
- fails "Kernel.printf formatting io is specified integer formats i works well with large numbers"
206
- fails "Kernel.printf formatting io is specified integer formats o collapse negative number representation if it equals 7"
207
- fails "Kernel.printf formatting io is specified integer formats o converts argument as an octal number"
208
- fails "Kernel.printf formatting io is specified integer formats o displays negative number as a two's complement prefixed with '..7'"
209
- fails "Kernel.printf formatting io is specified integer formats raises TypeError exception if cannot convert to Integer"
210
- fails "Kernel.printf formatting io is specified integer formats u converts argument as a decimal number"
211
- fails "Kernel.printf formatting io is specified integer formats u works well with large numbers"
212
- fails "Kernel.printf formatting io is specified integer formats x collapse negative number representation if it equals f"
213
- fails "Kernel.printf formatting io is specified integer formats x converts argument as a hexadecimal number"
214
- fails "Kernel.printf formatting io is specified integer formats x displays negative number as a two's complement prefixed with '..f'"
215
- fails "Kernel.printf formatting io is specified other formats % alone raises an ArgumentError"
216
- fails "Kernel.printf formatting io is specified other formats % is escaped by %"
217
- fails "Kernel.printf formatting io is specified other formats c displays character if argument is a numeric code of character"
218
- fails "Kernel.printf formatting io is specified other formats c displays character if argument is a single character string"
219
- fails "Kernel.printf formatting io is specified other formats c raises ArgumentError if argument is a string of several characters"
220
- fails "Kernel.printf formatting io is specified other formats c raises ArgumentError if argument is an empty string"
221
- fails "Kernel.printf formatting io is specified other formats c supports Unicode characters"
222
- fails "Kernel.printf formatting io is specified other formats p displays argument.inspect value"
223
- fails "Kernel.printf formatting io is specified other formats s converts argument to string with to_s"
224
- fails "Kernel.printf formatting io is specified other formats s does not try to convert with to_str"
225
- fails "Kernel.printf formatting io is specified other formats s substitute argument passes as a string"
226
- fails "Kernel.printf formatting io is specified precision float types controls the number of decimal places displayed in fraction part"
227
- fails "Kernel.printf formatting io is specified precision float types does not affect G format"
228
- fails "Kernel.printf formatting io is specified precision integer types controls the number of decimal places displayed"
229
- fails "Kernel.printf formatting io is specified precision string formats determines the maximum number of characters to be copied from the string"
230
- fails "Kernel.printf formatting io is specified reference by name %<name>s style allows to place name in any position"
231
- fails "Kernel.printf formatting io is specified reference by name %<name>s style cannot be mixed with unnamed style"
232
- fails "Kernel.printf formatting io is specified reference by name %<name>s style supports flags, width, precision and type"
233
- fails "Kernel.printf formatting io is specified reference by name %<name>s style uses value passed in a hash argument"
234
- fails "Kernel.printf formatting io is specified reference by name %{name} style cannot be mixed with unnamed style"
235
- fails "Kernel.printf formatting io is specified reference by name %{name} style converts value to String with to_s"
236
- fails "Kernel.printf formatting io is specified reference by name %{name} style does not support type style"
237
- fails "Kernel.printf formatting io is specified reference by name %{name} style raises KeyError when there is no matching key"
238
- fails "Kernel.printf formatting io is specified reference by name %{name} style supports flags, width and precision"
239
- fails "Kernel.printf formatting io is specified reference by name %{name} style uses value passed in a hash argument"
240
- fails "Kernel.printf formatting io is specified width is ignored if argument's actual length is greater"
241
- fails "Kernel.printf formatting io is specified width specifies the minimum number of characters that will be written to the result"
242
- fails "Struct.new keyword_init: false option behaves like it does without :keyword_init option"
243
- fails "Struct.new keyword_init: true option creates a class that accepts keyword arguments to initialize"
244
- fails "Struct.new keyword_init: true option new class instantiation accepts arguments as hash as well"
245
- fails "Struct.new keyword_init: true option new class instantiation raises ArgumentError when passed a list of arguments"
246
- fails "Struct.new keyword_init: true option new class instantiation raises ArgumentError when passed not declared keyword argument"
247
- fails "The BEGIN keyword returns the top-level script's filename for __FILE__"
248
- fails "The return keyword at top level file loading stops file loading and execution"
249
- fails "The return keyword at top level file requiring stops file loading and execution"
250
- fails "The return keyword at top level return with argument does not affect exit status"
251
- fails "The return keyword at top level stops file execution"
252
- fails "The return keyword at top level within a begin fires ensure block before returning while loads file"
253
- fails "The return keyword at top level within a begin fires ensure block before returning"
254
- fails "The return keyword at top level within a begin is allowed in begin block"
255
- fails "The return keyword at top level within a begin is allowed in ensure block"
256
- fails "The return keyword at top level within a begin is allowed in rescue block"
257
- fails "The return keyword at top level within a begin swallows exception if returns in ensure block"
258
- fails "The return keyword at top level within a block is allowed"
259
- fails "The return keyword at top level within a class raises a SyntaxError"
260
- fails "The return keyword at top level within if is allowed"
261
- fails "The return keyword at top level within while loop is allowed"
3
+ fails "A Symbol literal inherits the encoding of the magic comment and can have a binary encoding" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x94928>
4
+ fails "Kernel.printf formatting io is not specified flags # applies to format o does nothing for negative argument" # Expected "0..7651" == "..7651" to be truthy but was false
5
+ fails "Kernel.printf formatting io is not specified flags # applies to formats aAeEfgG changes format from dd.dddd to exponential form for gG" # Expected "1.234e+02" == "1.e+02" to be truthy but was false
6
+ fails "Kernel.printf formatting io is not specified flags # applies to formats aAeEfgG forces a decimal point to be added, even if no digits follow" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
7
+ fails "Kernel.printf formatting io is not specified flags (digit)$ specifies the absolute argument number for this field" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
8
+ fails "Kernel.printf formatting io is not specified flags * left-justifies the result if specified with $ argument is negative" # Expected "1.095200e+2 " == "1.095200e+02 " to be truthy but was false
9
+ fails "Kernel.printf formatting io is not specified flags * left-justifies the result if width is negative" # Expected "1.095200e+2 " == "1.095200e+02 " to be truthy but was false
10
+ fails "Kernel.printf formatting io is not specified flags * raises ArgumentError when is mixed with width" # Expected ArgumentError but no exception was raised (" 112" was returned)
11
+ fails "Kernel.printf formatting io is not specified flags * uses the previous argument as the field width" # Expected " 1.095200e+02" == " 1.095200e+02" to be truthy but was false
12
+ fails "Kernel.printf formatting io is not specified flags * uses the specified argument as the width if * is followed by a number and $" # Expected " 1.095200e+02" == " 1.095200e+02" to be truthy but was false
13
+ fails "Kernel.printf formatting io is not specified flags + applies to numeric formats bBdiouxXaAeEfgG adds a leading plus sign to non-negative numbers" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
14
+ fails "Kernel.printf formatting io is not specified flags - left-justifies the result of conversion if width is specified" # Expected "1.095200e+2 " == "1.095200e+02 " to be truthy but was false
15
+ fails "Kernel.printf formatting io is not specified flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified pads with zeros, not spaces" # Expected "0000000001.095200e+02" == "000000001.095200e+02" to be truthy but was false
16
+ fails "Kernel.printf formatting io is not specified flags space applies to numeric formats bBdiouxXeEfgGaA does not leave a space at the start of negative numbers" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
17
+ fails "Kernel.printf formatting io is not specified flags space applies to numeric formats bBdiouxXeEfgGaA leaves a space at the start of non-negative numbers" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
18
+ fails "Kernel.printf formatting io is not specified flags space applies to numeric formats bBdiouxXeEfgGaA treats several white spaces as one" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
19
+ fails "Kernel.printf formatting io is not specified float formats A converts floating point argument as [-]0xh.hhhhp[+-]dd and use uppercase X and P" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
20
+ fails "Kernel.printf formatting io is not specified float formats A displays Float::INFINITY as Inf" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
21
+ fails "Kernel.printf formatting io is not specified float formats A displays Float::NAN as NaN" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
22
+ fails "Kernel.printf formatting io is not specified float formats G otherwise cuts excessive digits in fractional part and keeps only 4 ones" # Expected "12.12341111" == "12.1234" to be truthy but was false
23
+ fails "Kernel.printf formatting io is not specified float formats G otherwise cuts fraction part to have only 6 digits at all" # Expected "1.1234567" == "1.12346" to be truthy but was false
24
+ fails "Kernel.printf formatting io is not specified float formats G otherwise rounds the last significant digit to the closest one in fractional part" # Expected "1.555555555" == "1.55556" to be truthy but was false
25
+ fails "Kernel.printf formatting io is not specified float formats G the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form" # Expected "1.234567E+06" == "1.23457E+06" to be truthy but was false
26
+ fails "Kernel.printf formatting io is not specified float formats a converts floating point argument as [-]0xh.hhhhp[+-]dd" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
27
+ fails "Kernel.printf formatting io is not specified float formats a displays Float::INFINITY as Inf" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
28
+ fails "Kernel.printf formatting io is not specified float formats a displays Float::NAN as NaN" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
29
+ fails "Kernel.printf formatting io is not specified float formats g otherwise cuts excessive digits in fractional part and keeps only 4 ones" # Expected "12.12341111" == "12.1234" to be truthy but was false
30
+ fails "Kernel.printf formatting io is not specified float formats g otherwise cuts fraction part to have only 6 digits at all" # Expected "1.1234567" == "1.12346" to be truthy but was false
31
+ fails "Kernel.printf formatting io is not specified float formats g otherwise rounds the last significant digit to the closest one in fractional part" # Expected "1.555555555" == "1.55556" to be truthy but was false
32
+ fails "Kernel.printf formatting io is not specified float formats g the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form" # Expected "1.234567e+06" == "1.23457e+06" to be truthy but was false
33
+ fails "Kernel.printf formatting io is not specified integer formats d works well with large numbers" # Expected "1234567890987654400" == "1234567890987654321" to be truthy but was false
34
+ fails "Kernel.printf formatting io is not specified integer formats i works well with large numbers" # Expected "1234567890987654400" == "1234567890987654321" to be truthy but was false
35
+ fails "Kernel.printf formatting io is not specified integer formats u works well with large numbers" # Expected "1234567890987654400" == "1234567890987654321" to be truthy but was false
36
+ fails "Kernel.printf formatting io is not specified other formats % alone raises an ArgumentError" # Expected ArgumentError but no exception was raised ("%" was returned)
37
+ fails "Kernel.printf formatting io is not specified precision float types controls the number of decimal places displayed in fraction part" # NotImplementedError: `A` and `a` format field types are not implemented in Opal yet
38
+ fails "Kernel.printf formatting io is not specified precision float types does not affect G format" # Expected "12.12340000" == "12.1234" to be truthy but was false
39
+ fails "Kernel.printf formatting io is not specified precision string formats determines the maximum number of characters to be copied from the string" # Expected "1" == "[" to be truthy but was false
40
+ fails "Kernel.printf formatting io is not specified width specifies the minimum number of characters that will be written to the result" # Expected " 1.095200e+02" == " 1.095200e+02" to be truthy but was false
41
+ fails "Kernel.printf formatting io is specified faulty key raises a KeyError" # Expected KeyError but got: Exception (format_string.indexOf is not a function)
42
+ fails "Kernel.printf formatting io is specified faulty key sets the Hash as the receiver of KeyError" # Expected KeyError but got: Exception (format_string.indexOf is not a function)
43
+ fails "Kernel.printf formatting io is specified faulty key sets the unmatched key as the key of KeyError" # Expected KeyError but got: Exception (format_string.indexOf is not a function)
44
+ fails "Kernel.printf formatting io is specified flags # applies to format o does nothing for negative argument" # Exception: format_string.indexOf is not a function
45
+ fails "Kernel.printf formatting io is specified flags # applies to format o increases the precision until the first digit will be `0' if it is not formatted as complements" # Exception: format_string.indexOf is not a function
46
+ fails "Kernel.printf formatting io is specified flags # applies to formats aAeEfgG changes format from dd.dddd to exponential form for gG" # Exception: format_string.indexOf is not a function
47
+ fails "Kernel.printf formatting io is specified flags # applies to formats aAeEfgG forces a decimal point to be added, even if no digits follow" # Exception: format_string.indexOf is not a function
48
+ fails "Kernel.printf formatting io is specified flags # applies to formats bBxX does nothing for zero argument" # Exception: format_string.indexOf is not a function
49
+ fails "Kernel.printf formatting io is specified flags # applies to formats bBxX prefixes the result with 0x, 0X, 0b and 0B respectively for non-zero argument" # Exception: format_string.indexOf is not a function
50
+ fails "Kernel.printf formatting io is specified flags # applies to gG does not remove trailing zeros" # Exception: format_string.indexOf is not a function
51
+ fails "Kernel.printf formatting io is specified flags (digit)$ ignores '-' sign" # Exception: format_string.indexOf is not a function
52
+ fails "Kernel.printf formatting io is specified flags (digit)$ raises ArgumentError exception when absolute and relative argument numbers are mixed" # Expected ArgumentError but got: Exception (format_string.indexOf is not a function)
53
+ fails "Kernel.printf formatting io is specified flags (digit)$ raises exception if argument number is bigger than actual arguments list" # Expected ArgumentError but got: Exception (format_string.indexOf is not a function)
54
+ fails "Kernel.printf formatting io is specified flags (digit)$ specifies the absolute argument number for this field" # Exception: format_string.indexOf is not a function
55
+ fails "Kernel.printf formatting io is specified flags * left-justifies the result if specified with $ argument is negative" # Exception: format_string.indexOf is not a function
56
+ fails "Kernel.printf formatting io is specified flags * left-justifies the result if width is negative" # Exception: format_string.indexOf is not a function
57
+ fails "Kernel.printf formatting io is specified flags * raises ArgumentError when is mixed with width" # Expected ArgumentError but got: Exception (format_string.indexOf is not a function)
58
+ fails "Kernel.printf formatting io is specified flags * uses the previous argument as the field width" # Exception: format_string.indexOf is not a function
59
+ fails "Kernel.printf formatting io is specified flags * uses the specified argument as the width if * is followed by a number and $" # Exception: format_string.indexOf is not a function
60
+ fails "Kernel.printf formatting io is specified flags + applies to numeric formats bBdiouxXaAeEfgG adds a leading plus sign to non-negative numbers" # Exception: format_string.indexOf is not a function
61
+ fails "Kernel.printf formatting io is specified flags + applies to numeric formats bBdiouxXaAeEfgG does not use two's complement form for negative numbers for formats bBoxX" # Exception: format_string.indexOf is not a function
62
+ fails "Kernel.printf formatting io is specified flags - left-justifies the result of conversion if width is specified" # Exception: format_string.indexOf is not a function
63
+ fails "Kernel.printf formatting io is specified flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified pads with zeros, not spaces" # Exception: format_string.indexOf is not a function
64
+ fails "Kernel.printf formatting io is specified flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified uses radix-1 when displays negative argument as a two's complement" # Exception: format_string.indexOf is not a function
65
+ fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA does not leave a space at the start of negative numbers" # Exception: format_string.indexOf is not a function
66
+ fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA leaves a space at the start of non-negative numbers" # Exception: format_string.indexOf is not a function
67
+ fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA prevents converting negative argument to two's complement form" # Exception: format_string.indexOf is not a function
68
+ fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA treats several white spaces as one" # Exception: format_string.indexOf is not a function
69
+ fails "Kernel.printf formatting io is specified float formats A converts floating point argument as [-]0xh.hhhhp[+-]dd and use uppercase X and P" # Exception: format_string.indexOf is not a function
70
+ fails "Kernel.printf formatting io is specified float formats A displays Float::INFINITY as Inf" # Exception: format_string.indexOf is not a function
71
+ fails "Kernel.printf formatting io is specified float formats A displays Float::NAN as NaN" # Exception: format_string.indexOf is not a function
72
+ fails "Kernel.printf formatting io is specified float formats E converts argument into exponential notation [-]d.dddddde[+-]dd" # Exception: format_string.indexOf is not a function
73
+ fails "Kernel.printf formatting io is specified float formats E cuts excessive digits and keeps only 6 ones" # Exception: format_string.indexOf is not a function
74
+ fails "Kernel.printf formatting io is specified float formats E displays Float::INFINITY as Inf" # Exception: format_string.indexOf is not a function
75
+ fails "Kernel.printf formatting io is specified float formats E displays Float::NAN as NaN" # Exception: format_string.indexOf is not a function
76
+ fails "Kernel.printf formatting io is specified float formats E rounds the last significant digit to the closest one" # Exception: format_string.indexOf is not a function
77
+ fails "Kernel.printf formatting io is specified float formats G displays Float::INFINITY as Inf" # Exception: format_string.indexOf is not a function
78
+ fails "Kernel.printf formatting io is specified float formats G displays Float::NAN as NaN" # Exception: format_string.indexOf is not a function
79
+ fails "Kernel.printf formatting io is specified float formats G otherwise converts a floating point number in dd.dddd form" # Exception: format_string.indexOf is not a function
80
+ fails "Kernel.printf formatting io is specified float formats G otherwise cuts excessive digits in fractional part and keeps only 4 ones" # Exception: format_string.indexOf is not a function
81
+ fails "Kernel.printf formatting io is specified float formats G otherwise cuts fraction part to have only 6 digits at all" # Exception: format_string.indexOf is not a function
82
+ fails "Kernel.printf formatting io is specified float formats G otherwise rounds the last significant digit to the closest one in fractional part" # Exception: format_string.indexOf is not a function
83
+ fails "Kernel.printf formatting io is specified float formats G the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form" # Exception: format_string.indexOf is not a function
84
+ fails "Kernel.printf formatting io is specified float formats G the exponent is less than -4 converts a floating point number using exponential form" # Exception: format_string.indexOf is not a function
85
+ fails "Kernel.printf formatting io is specified float formats a converts floating point argument as [-]0xh.hhhhp[+-]dd" # Exception: format_string.indexOf is not a function
86
+ fails "Kernel.printf formatting io is specified float formats a displays Float::INFINITY as Inf" # Exception: format_string.indexOf is not a function
87
+ fails "Kernel.printf formatting io is specified float formats a displays Float::NAN as NaN" # Exception: format_string.indexOf is not a function
88
+ fails "Kernel.printf formatting io is specified float formats converts argument into Float" # Exception: format_string.indexOf is not a function
89
+ fails "Kernel.printf formatting io is specified float formats e converts argument into exponential notation [-]d.dddddde[+-]dd" # Exception: format_string.indexOf is not a function
90
+ fails "Kernel.printf formatting io is specified float formats e cuts excessive digits and keeps only 6 ones" # Exception: format_string.indexOf is not a function
91
+ fails "Kernel.printf formatting io is specified float formats e displays Float::INFINITY as Inf" # Exception: format_string.indexOf is not a function
92
+ fails "Kernel.printf formatting io is specified float formats e displays Float::NAN as NaN" # Exception: format_string.indexOf is not a function
93
+ fails "Kernel.printf formatting io is specified float formats e rounds the last significant digit to the closest one" # Exception: format_string.indexOf is not a function
94
+ fails "Kernel.printf formatting io is specified float formats f converts floating point argument as [-]ddd.dddddd" # Exception: format_string.indexOf is not a function
95
+ fails "Kernel.printf formatting io is specified float formats f cuts excessive digits and keeps only 6 ones" # Exception: format_string.indexOf is not a function
96
+ fails "Kernel.printf formatting io is specified float formats f displays Float::INFINITY as Inf" # Exception: format_string.indexOf is not a function
97
+ fails "Kernel.printf formatting io is specified float formats f displays Float::NAN as NaN" # Exception: format_string.indexOf is not a function
98
+ fails "Kernel.printf formatting io is specified float formats f rounds the last significant digit to the closest one" # Exception: format_string.indexOf is not a function
99
+ fails "Kernel.printf formatting io is specified float formats g displays Float::INFINITY as Inf" # Exception: format_string.indexOf is not a function
100
+ fails "Kernel.printf formatting io is specified float formats g displays Float::NAN as NaN" # Exception: format_string.indexOf is not a function
101
+ fails "Kernel.printf formatting io is specified float formats g otherwise converts a floating point number in dd.dddd form" # Exception: format_string.indexOf is not a function
102
+ fails "Kernel.printf formatting io is specified float formats g otherwise cuts excessive digits in fractional part and keeps only 4 ones" # Exception: format_string.indexOf is not a function
103
+ fails "Kernel.printf formatting io is specified float formats g otherwise cuts fraction part to have only 6 digits at all" # Exception: format_string.indexOf is not a function
104
+ fails "Kernel.printf formatting io is specified float formats g otherwise rounds the last significant digit to the closest one in fractional part" # Exception: format_string.indexOf is not a function
105
+ fails "Kernel.printf formatting io is specified float formats g the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form" # Exception: format_string.indexOf is not a function
106
+ fails "Kernel.printf formatting io is specified float formats g the exponent is less than -4 converts a floating point number using exponential form" # Exception: format_string.indexOf is not a function
107
+ fails "Kernel.printf formatting io is specified float formats raises TypeError exception if cannot convert to Float" # Expected TypeError but got: Exception (format_string.indexOf is not a function)
108
+ fails "Kernel.printf formatting io is specified integer formats B collapse negative number representation if it equals 1" # Exception: format_string.indexOf is not a function
109
+ fails "Kernel.printf formatting io is specified integer formats B converts argument as a binary number" # Exception: format_string.indexOf is not a function
110
+ fails "Kernel.printf formatting io is specified integer formats B displays negative number as a two's complement prefixed with '..1'" # Exception: format_string.indexOf is not a function
111
+ fails "Kernel.printf formatting io is specified integer formats X collapse negative number representation if it equals F" # Exception: format_string.indexOf is not a function
112
+ fails "Kernel.printf formatting io is specified integer formats X converts argument as a hexadecimal number with uppercase letters" # Exception: format_string.indexOf is not a function
113
+ fails "Kernel.printf formatting io is specified integer formats X displays negative number as a two's complement prefixed with '..f'" # Exception: format_string.indexOf is not a function
114
+ fails "Kernel.printf formatting io is specified integer formats b collapse negative number representation if it equals 1" # Exception: format_string.indexOf is not a function
115
+ fails "Kernel.printf formatting io is specified integer formats b converts argument as a binary number" # Exception: format_string.indexOf is not a function
116
+ fails "Kernel.printf formatting io is specified integer formats b displays negative number as a two's complement prefixed with '..1'" # Exception: format_string.indexOf is not a function
117
+ fails "Kernel.printf formatting io is specified integer formats converts String argument with Kernel#Integer" # Exception: format_string.indexOf is not a function
118
+ fails "Kernel.printf formatting io is specified integer formats converts argument into Integer with to_i if to_int isn't available" # Exception: format_string.indexOf is not a function
119
+ fails "Kernel.printf formatting io is specified integer formats converts argument into Integer with to_int" # Exception: format_string.indexOf is not a function
120
+ fails "Kernel.printf formatting io is specified integer formats d converts argument as a decimal number" # Exception: format_string.indexOf is not a function
121
+ fails "Kernel.printf formatting io is specified integer formats d works well with large numbers" # Exception: format_string.indexOf is not a function
122
+ fails "Kernel.printf formatting io is specified integer formats i converts argument as a decimal number" # Exception: format_string.indexOf is not a function
123
+ fails "Kernel.printf formatting io is specified integer formats i works well with large numbers" # Exception: format_string.indexOf is not a function
124
+ fails "Kernel.printf formatting io is specified integer formats o collapse negative number representation if it equals 7" # Exception: format_string.indexOf is not a function
125
+ fails "Kernel.printf formatting io is specified integer formats o converts argument as an octal number" # Exception: format_string.indexOf is not a function
126
+ fails "Kernel.printf formatting io is specified integer formats o displays negative number as a two's complement prefixed with '..7'" # Exception: format_string.indexOf is not a function
127
+ fails "Kernel.printf formatting io is specified integer formats raises TypeError exception if cannot convert to Integer" # Expected TypeError but got: Exception (format_string.indexOf is not a function)
128
+ fails "Kernel.printf formatting io is specified integer formats u converts argument as a decimal number" # Exception: format_string.indexOf is not a function
129
+ fails "Kernel.printf formatting io is specified integer formats u works well with large numbers" # Exception: format_string.indexOf is not a function
130
+ fails "Kernel.printf formatting io is specified integer formats x collapse negative number representation if it equals f" # Exception: format_string.indexOf is not a function
131
+ fails "Kernel.printf formatting io is specified integer formats x converts argument as a hexadecimal number" # Exception: format_string.indexOf is not a function
132
+ fails "Kernel.printf formatting io is specified integer formats x displays negative number as a two's complement prefixed with '..f'" # Exception: format_string.indexOf is not a function
133
+ fails "Kernel.printf formatting io is specified other formats % alone raises an ArgumentError" # Expected ArgumentError but got: Exception (format_string.indexOf is not a function)
134
+ fails "Kernel.printf formatting io is specified other formats % is escaped by %" # Exception: format_string.indexOf is not a function
135
+ fails "Kernel.printf formatting io is specified other formats c displays character if argument is a numeric code of character" # Exception: format_string.indexOf is not a function
136
+ fails "Kernel.printf formatting io is specified other formats c displays character if argument is a single character string" # Exception: format_string.indexOf is not a function
137
+ fails "Kernel.printf formatting io is specified other formats c raises ArgumentError if argument is a string of several characters" # Expected ArgumentError (/%c requires a character/) but got: Exception (format_string.indexOf is not a function)
138
+ fails "Kernel.printf formatting io is specified other formats c raises ArgumentError if argument is an empty string" # Expected ArgumentError (/%c requires a character/) but got: Exception (format_string.indexOf is not a function)
139
+ fails "Kernel.printf formatting io is specified other formats p displays argument.inspect value" # Exception: format_string.indexOf is not a function
140
+ fails "Kernel.printf formatting io is specified other formats s converts argument to string with to_s" # Exception: format_string.indexOf is not a function
141
+ fails "Kernel.printf formatting io is specified other formats s does not try to convert with to_str" # Expected NoMethodError but got: Exception (format_string.indexOf is not a function)
142
+ fails "Kernel.printf formatting io is specified other formats s substitute argument passes as a string" # Exception: format_string.indexOf is not a function
143
+ fails "Kernel.printf formatting io is specified precision float types controls the number of decimal places displayed in fraction part" # Exception: format_string.indexOf is not a function
144
+ fails "Kernel.printf formatting io is specified precision float types does not affect G format" # Exception: format_string.indexOf is not a function
145
+ fails "Kernel.printf formatting io is specified precision integer types controls the number of decimal places displayed" # Exception: format_string.indexOf is not a function
146
+ fails "Kernel.printf formatting io is specified precision string formats determines the maximum number of characters to be copied from the string" # Exception: format_string.indexOf is not a function
147
+ fails "Kernel.printf formatting io is specified reference by name %<name>s style allows to place name in any position" # Exception: format_string.indexOf is not a function
148
+ fails "Kernel.printf formatting io is specified reference by name %<name>s style cannot be mixed with unnamed style" # Expected ArgumentError but got: Exception (format_string.indexOf is not a function)
149
+ fails "Kernel.printf formatting io is specified reference by name %<name>s style supports flags, width, precision and type" # Exception: format_string.indexOf is not a function
150
+ fails "Kernel.printf formatting io is specified reference by name %<name>s style uses value passed in a hash argument" # Exception: format_string.indexOf is not a function
151
+ fails "Kernel.printf formatting io is specified reference by name %{name} style cannot be mixed with unnamed style" # Expected ArgumentError but got: Exception (format_string.indexOf is not a function)
152
+ fails "Kernel.printf formatting io is specified reference by name %{name} style converts value to String with to_s" # Exception: format_string.indexOf is not a function
153
+ fails "Kernel.printf formatting io is specified reference by name %{name} style does not support type style" # Exception: format_string.indexOf is not a function
154
+ fails "Kernel.printf formatting io is specified reference by name %{name} style raises KeyError when there is no matching key" # Expected KeyError but got: Exception (format_string.indexOf is not a function)
155
+ fails "Kernel.printf formatting io is specified reference by name %{name} style supports flags, width and precision" # Exception: format_string.indexOf is not a function
156
+ fails "Kernel.printf formatting io is specified reference by name %{name} style uses value passed in a hash argument" # Exception: format_string.indexOf is not a function
157
+ fails "Kernel.printf formatting io is specified width is ignored if argument's actual length is greater" # Exception: format_string.indexOf is not a function
158
+ fails "Kernel.printf formatting io is specified width specifies the minimum number of characters that will be written to the result" # Exception: format_string.indexOf is not a function
159
+ fails "The BEGIN keyword returns the top-level script's filename for __FILE__" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0xab0bc>
160
+ fails "The return keyword at top level file loading stops file loading and execution" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
161
+ fails "The return keyword at top level file requiring stops file loading and execution" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
162
+ fails "The return keyword at top level stops file execution" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8>
163
+ fails "The return keyword at top level within a begin fires ensure block before returning while loads file" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
164
+ fails "The return keyword at top level within a begin fires ensure block before returning" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
165
+ fails "The return keyword at top level within a begin is allowed in begin block" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
166
+ fails "The return keyword at top level within a begin is allowed in ensure block" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
167
+ fails "The return keyword at top level within a begin is allowed in rescue block" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
168
+ fails "The return keyword at top level within a begin swallows exception if returns in ensure block" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
169
+ fails "The return keyword at top level within a block is allowed" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
170
+ fails "The return keyword at top level within a class raises a SyntaxError" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
171
+ fails "The return keyword at top level within if is allowed" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
172
+ fails "The return keyword at top level within while loop is allowed" # NoMethodError: undefined method `tmp' for #<MSpecEnv:0x6bbf8 @filename=nil>
262
173
  end