opal 0.11.0.rc1 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (493) hide show
  1. checksums.yaml +4 -4
  2. data/.jshintrc +1 -1
  3. data/.travis.yml +14 -2
  4. data/CHANGELOG.md +30 -5
  5. data/HACKING.md +2 -2
  6. data/README.md +4 -5
  7. data/appveyor.yml +3 -4
  8. data/bin +1 -0
  9. data/docs/headless_chrome.md +105 -0
  10. data/docs/rspec.md +2 -19
  11. data/{bin → exe}/opal +0 -0
  12. data/{bin → exe}/opal-build +0 -0
  13. data/{bin → exe}/opal-mspec +0 -0
  14. data/{bin → exe}/opal-repl +0 -0
  15. data/lib/opal.rb +1 -0
  16. data/lib/opal/ast/builder.rb +0 -4
  17. data/lib/opal/builder.rb +69 -15
  18. data/lib/opal/builder_processors.rb +8 -7
  19. data/lib/opal/cli.rb +1 -1
  20. data/lib/opal/cli_options.rb +1 -1
  21. data/lib/opal/cli_runners.rb +1 -1
  22. data/lib/opal/cli_runners/applescript.rb +0 -1
  23. data/lib/opal/cli_runners/chrome.js +135 -0
  24. data/lib/opal/cli_runners/chrome.rb +100 -0
  25. data/lib/opal/cli_runners/nashorn.rb +0 -1
  26. data/lib/opal/cli_runners/node_modules/.bin/chrome-remote-interface +1 -0
  27. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/LICENSE +18 -0
  28. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/README.md +843 -0
  29. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/bin/client.js +326 -0
  30. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/chrome-remote-interface.js +11 -0
  31. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/index.js +39 -0
  32. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/api.js +84 -0
  33. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/chrome.js +289 -0
  34. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/defaults.js +4 -0
  35. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/devtools.js +245 -0
  36. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/external-request.js +23 -0
  37. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/protocol.json +13303 -0
  38. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/websocket-wrapper.js +32 -0
  39. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/package.json +128 -0
  40. data/lib/opal/cli_runners/node_modules/chrome-remote-interface/webpack.config.js +55 -0
  41. data/lib/opal/cli_runners/node_modules/commander/Readme.md +195 -0
  42. data/lib/opal/cli_runners/node_modules/commander/index.js +851 -0
  43. data/lib/opal/cli_runners/node_modules/commander/package.json +92 -0
  44. data/lib/opal/cli_runners/node_modules/ultron/LICENSE +22 -0
  45. data/lib/opal/cli_runners/node_modules/ultron/index.js +138 -0
  46. data/lib/opal/cli_runners/node_modules/ultron/package.json +112 -0
  47. data/lib/opal/cli_runners/node_modules/ws/LICENSE +21 -0
  48. data/lib/opal/cli_runners/node_modules/ws/README.md +259 -0
  49. data/lib/opal/cli_runners/node_modules/ws/SECURITY.md +33 -0
  50. data/lib/opal/cli_runners/node_modules/ws/index.js +15 -0
  51. data/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.fallback.js +56 -0
  52. data/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.js +15 -0
  53. data/lib/opal/cli_runners/node_modules/ws/lib/ErrorCodes.js +28 -0
  54. data/lib/opal/cli_runners/node_modules/ws/lib/EventTarget.js +158 -0
  55. data/lib/opal/cli_runners/node_modules/ws/lib/Extensions.js +69 -0
  56. data/lib/opal/cli_runners/node_modules/ws/lib/PerMessageDeflate.js +339 -0
  57. data/lib/opal/cli_runners/node_modules/ws/lib/Receiver.js +520 -0
  58. data/lib/opal/cli_runners/node_modules/ws/lib/Sender.js +438 -0
  59. data/lib/opal/cli_runners/node_modules/ws/lib/Validation.fallback.js +9 -0
  60. data/lib/opal/cli_runners/node_modules/ws/lib/Validation.js +17 -0
  61. data/lib/opal/cli_runners/node_modules/ws/lib/WebSocket.js +705 -0
  62. data/lib/opal/cli_runners/node_modules/ws/lib/WebSocketServer.js +336 -0
  63. data/lib/opal/cli_runners/node_modules/ws/package.json +122 -0
  64. data/lib/opal/cli_runners/nodejs.rb +0 -1
  65. data/lib/opal/cli_runners/package.json +5 -0
  66. data/lib/opal/cli_runners/server.rb +0 -1
  67. data/lib/opal/compiler.rb +8 -18
  68. data/lib/opal/deprecations.rb +1 -1
  69. data/lib/opal/eof_content.rb +36 -0
  70. data/lib/opal/nodes.rb +0 -1
  71. data/lib/opal/nodes/args/kwarg.rb +8 -6
  72. data/lib/opal/nodes/args/kwoptarg.rb +12 -6
  73. data/lib/opal/nodes/call.rb +3 -2
  74. data/lib/opal/nodes/call_special.rb +10 -1
  75. data/lib/opal/nodes/definitions.rb +5 -3
  76. data/lib/opal/nodes/helpers.rb +4 -8
  77. data/lib/opal/nodes/literal.rb +13 -1
  78. data/lib/opal/nodes/logic.rb +19 -32
  79. data/lib/opal/nodes/node_with_args.rb +1 -1
  80. data/lib/opal/nodes/scope.rb +1 -0
  81. data/lib/opal/nodes/super.rb +0 -4
  82. data/lib/opal/nodes/variables.rb +11 -0
  83. data/lib/opal/parser.rb +24 -19
  84. data/lib/opal/path_reader.rb +17 -4
  85. data/lib/opal/rewriter.rb +5 -1
  86. data/lib/opal/rewriters/base.rb +37 -34
  87. data/lib/opal/rewriters/binary_operator_assignment.rb +0 -3
  88. data/lib/opal/rewriters/for_rewriter.rb +93 -0
  89. data/lib/opal/rewriters/hashes/key_duplicates_rewriter.rb +58 -0
  90. data/lib/opal/rewriters/js_reserved_words.rb +5 -8
  91. data/lib/opal/rewriters/logical_operator_assignment.rb +0 -1
  92. data/lib/opal/simple_server.rb +1 -0
  93. data/lib/opal/util.rb +1 -1
  94. data/lib/opal/version.rb +1 -1
  95. data/opal.gemspec +32 -30
  96. data/opal/corelib/array.rb +53 -30
  97. data/opal/corelib/boolean.rb +11 -3
  98. data/opal/corelib/comparable.rb +16 -0
  99. data/opal/corelib/constants.rb +3 -3
  100. data/opal/corelib/enumerable.rb +48 -1
  101. data/opal/corelib/file.rb +54 -11
  102. data/opal/corelib/hash.rb +98 -0
  103. data/opal/corelib/io.rb +2 -2
  104. data/opal/corelib/kernel.rb +28 -11
  105. data/opal/corelib/marshal/read_buffer.rb +288 -150
  106. data/opal/corelib/marshal/write_buffer.rb +27 -2
  107. data/opal/corelib/nil.rb +11 -3
  108. data/opal/corelib/number.rb +90 -20
  109. data/opal/corelib/numeric.rb +3 -3
  110. data/opal/corelib/random.rb +1 -1
  111. data/opal/corelib/range.rb +22 -22
  112. data/opal/corelib/regexp.rb +45 -4
  113. data/opal/corelib/runtime.js +25 -9
  114. data/opal/corelib/string.rb +1 -1
  115. data/opal/corelib/string/encoding.rb +21 -29
  116. data/opal/corelib/string/inheritance.rb +1 -1
  117. data/opal/corelib/struct.rb +0 -5
  118. data/opal/corelib/time.rb +1 -1
  119. data/stdlib/buffer/array.rb +4 -2
  120. data/stdlib/date.rb +46 -12
  121. data/stdlib/headless_chrome.rb +11 -0
  122. data/stdlib/nodejs/file.rb +36 -11
  123. data/stdlib/nodejs/io.rb +8 -0
  124. data/stdlib/nodejs/stacktrace.rb +116 -100
  125. data/stdlib/opal-builder.rb +1 -0
  126. data/stdlib/opal-platform.rb +6 -6
  127. data/stdlib/opal/platform.rb +2 -2
  128. data/stdlib/rbconfig.rb +1 -1
  129. data/stdlib/securerandom.rb +1 -1
  130. data/tasks/testing.rake +58 -26
  131. data/tasks/testing/opal_rspec_smoketest.Gemfile +5 -12
  132. metadata +64 -733
  133. data/lib/opal/cli_runners/phantom.js +0 -69
  134. data/lib/opal/cli_runners/phantomjs.rb +0 -29
  135. data/lib/opal/hike_path_finder.rb +0 -19
  136. data/lib/opal/nodes/for.rb +0 -75
  137. data/spec/README.md +0 -10
  138. data/spec/filters/bugs/array.rb +0 -16
  139. data/spec/filters/bugs/basicobject.rb +0 -13
  140. data/spec/filters/bugs/bigdecimal.rb +0 -146
  141. data/spec/filters/bugs/class.rb +0 -11
  142. data/spec/filters/bugs/comparable.rb +0 -5
  143. data/spec/filters/bugs/complex.rb +0 -3
  144. data/spec/filters/bugs/date.rb +0 -94
  145. data/spec/filters/bugs/enumerable.rb +0 -43
  146. data/spec/filters/bugs/enumerator.rb +0 -40
  147. data/spec/filters/bugs/exception.rb +0 -72
  148. data/spec/filters/bugs/file.rb +0 -8
  149. data/spec/filters/bugs/float.rb +0 -39
  150. data/spec/filters/bugs/hash.rb +0 -15
  151. data/spec/filters/bugs/inheritance.rb +0 -5
  152. data/spec/filters/bugs/integer.rb +0 -30
  153. data/spec/filters/bugs/io.rb +0 -8
  154. data/spec/filters/bugs/kernel.rb +0 -168
  155. data/spec/filters/bugs/language.rb +0 -190
  156. data/spec/filters/bugs/marshal.rb +0 -41
  157. data/spec/filters/bugs/method.rb +0 -60
  158. data/spec/filters/bugs/module.rb +0 -158
  159. data/spec/filters/bugs/numeric.rb +0 -8
  160. data/spec/filters/bugs/pathname.rb +0 -7
  161. data/spec/filters/bugs/proc.rb +0 -37
  162. data/spec/filters/bugs/random.rb +0 -7
  163. data/spec/filters/bugs/range.rb +0 -36
  164. data/spec/filters/bugs/rational.rb +0 -4
  165. data/spec/filters/bugs/regexp.rb +0 -158
  166. data/spec/filters/bugs/set.rb +0 -41
  167. data/spec/filters/bugs/singleton.rb +0 -6
  168. data/spec/filters/bugs/string.rb +0 -98
  169. data/spec/filters/bugs/stringscanner.rb +0 -71
  170. data/spec/filters/bugs/struct.rb +0 -4
  171. data/spec/filters/bugs/time.rb +0 -35
  172. data/spec/filters/bugs/unboundmethod.rb +0 -17
  173. data/spec/filters/unsupported/array.rb +0 -167
  174. data/spec/filters/unsupported/basicobject.rb +0 -14
  175. data/spec/filters/unsupported/bignum.rb +0 -55
  176. data/spec/filters/unsupported/class.rb +0 -4
  177. data/spec/filters/unsupported/delegator.rb +0 -5
  178. data/spec/filters/unsupported/enumerable.rb +0 -11
  179. data/spec/filters/unsupported/enumerator.rb +0 -13
  180. data/spec/filters/unsupported/file.rb +0 -4
  181. data/spec/filters/unsupported/fixnum.rb +0 -14
  182. data/spec/filters/unsupported/float.rb +0 -46
  183. data/spec/filters/unsupported/freeze.rb +0 -75
  184. data/spec/filters/unsupported/hash.rb +0 -43
  185. data/spec/filters/unsupported/integer.rb +0 -3
  186. data/spec/filters/unsupported/kernel.rb +0 -32
  187. data/spec/filters/unsupported/language.rb +0 -22
  188. data/spec/filters/unsupported/marshal.rb +0 -46
  189. data/spec/filters/unsupported/matchdata.rb +0 -33
  190. data/spec/filters/unsupported/math.rb +0 -3
  191. data/spec/filters/unsupported/pathname.rb +0 -3
  192. data/spec/filters/unsupported/privacy.rb +0 -279
  193. data/spec/filters/unsupported/proc.rb +0 -3
  194. data/spec/filters/unsupported/random.rb +0 -4
  195. data/spec/filters/unsupported/range.rb +0 -7
  196. data/spec/filters/unsupported/regexp.rb +0 -69
  197. data/spec/filters/unsupported/set.rb +0 -4
  198. data/spec/filters/unsupported/singleton.rb +0 -6
  199. data/spec/filters/unsupported/string.rb +0 -546
  200. data/spec/filters/unsupported/struct.rb +0 -6
  201. data/spec/filters/unsupported/symbol.rb +0 -20
  202. data/spec/filters/unsupported/taint.rb +0 -30
  203. data/spec/filters/unsupported/thread.rb +0 -7
  204. data/spec/filters/unsupported/time.rb +0 -202
  205. data/spec/lib/builder_processors_spec.rb +0 -27
  206. data/spec/lib/builder_spec.rb +0 -89
  207. data/spec/lib/cli_runners/phantomjs_spec.rb +0 -39
  208. data/spec/lib/cli_spec.rb +0 -240
  209. data/spec/lib/compiler/call_spec.rb +0 -732
  210. data/spec/lib/compiler_spec.rb +0 -294
  211. data/spec/lib/config_spec.rb +0 -110
  212. data/spec/lib/dependency_resolver_spec.rb +0 -40
  213. data/spec/lib/deprecations_spec.rb +0 -16
  214. data/spec/lib/fixtures/complex_sprockets.js.rb.erb +0 -4
  215. data/spec/lib/fixtures/file_with_directives.js +0 -2
  216. data/spec/lib/fixtures/jst_file.js.jst +0 -1
  217. data/spec/lib/fixtures/no_requires.rb +0 -1
  218. data/spec/lib/fixtures/opal_file.rb +0 -2
  219. data/spec/lib/fixtures/require_tree_test.rb +0 -3
  220. data/spec/lib/fixtures/required_file.js +0 -1
  221. data/spec/lib/fixtures/required_tree_test/required_file1.rb +0 -1
  222. data/spec/lib/fixtures/required_tree_test/required_file2.rb +0 -1
  223. data/spec/lib/fixtures/requires.rb +0 -7
  224. data/spec/lib/fixtures/source_location_test.rb +0 -7
  225. data/spec/lib/fixtures/source_map.rb +0 -1
  226. data/spec/lib/fixtures/source_map/subfolder/other_file.rb +0 -1
  227. data/spec/lib/fixtures/sprockets_file.js.rb +0 -3
  228. data/spec/lib/fixtures/sprockets_require_tree_test.rb +0 -3
  229. data/spec/lib/hike_path_finder_spec.rb +0 -23
  230. data/spec/lib/path_reader_spec.rb +0 -36
  231. data/spec/lib/paths_spec.rb +0 -18
  232. data/spec/lib/rewriters/binary_operator_assignment_spec.rb +0 -151
  233. data/spec/lib/rewriters/block_to_iter_spec.rb +0 -28
  234. data/spec/lib/rewriters/dot_js_syntax_spec.rb +0 -108
  235. data/spec/lib/rewriters/explicit_writer_return_spec.rb +0 -186
  236. data/spec/lib/rewriters/js_reserved_words_spec.rb +0 -116
  237. data/spec/lib/rewriters/logical_operator_assignment_spec.rb +0 -202
  238. data/spec/lib/rewriters/opal_engine_check_spec.rb +0 -82
  239. data/spec/lib/rewriters/rubyspec/filters_rewriter_spec.rb +0 -53
  240. data/spec/lib/shared/path_finder_shared.rb +0 -19
  241. data/spec/lib/shared/path_reader_shared.rb +0 -31
  242. data/spec/lib/simple_server_spec.rb +0 -54
  243. data/spec/lib/spec_helper.rb +0 -100
  244. data/spec/mspec-opal/formatters.rb +0 -236
  245. data/spec/mspec-opal/runner.rb +0 -173
  246. data/spec/opal/compiler/irb_spec.rb +0 -44
  247. data/spec/opal/core/arity_spec.rb +0 -142
  248. data/spec/opal/core/array/intersection_spec.rb +0 -38
  249. data/spec/opal/core/array/minus_spec.rb +0 -38
  250. data/spec/opal/core/array/select_spec.rb +0 -14
  251. data/spec/opal/core/array/set_range_to_array_spec.rb +0 -7
  252. data/spec/opal/core/array/union_spec.rb +0 -38
  253. data/spec/opal/core/array/uniq_spec.rb +0 -49
  254. data/spec/opal/core/date_spec.rb +0 -191
  255. data/spec/opal/core/enumerable/all_break_spec.rb +0 -5
  256. data/spec/opal/core/enumerable/any_break_spec.rb +0 -5
  257. data/spec/opal/core/enumerable/collect_break_spec.rb +0 -13
  258. data/spec/opal/core/enumerable/count_break_spec.rb +0 -5
  259. data/spec/opal/core/enumerable/detect_break_spec.rb +0 -5
  260. data/spec/opal/core/enumerable/drop_while_break_spec.rb +0 -5
  261. data/spec/opal/core/enumerable/each_slice_break.rb +0 -6
  262. data/spec/opal/core/enumerable/each_with_index_break_spec.rb +0 -5
  263. data/spec/opal/core/enumerable/each_with_object_break_spec.rb +0 -5
  264. data/spec/opal/core/enumerable/find_all_break_spec.rb +0 -5
  265. data/spec/opal/core/enumerable/find_index_break_spec.rb +0 -5
  266. data/spec/opal/core/enumerable/grep_break_spec.rb +0 -5
  267. data/spec/opal/core/enumerable/max_break_spec.rb +0 -5
  268. data/spec/opal/core/enumerable/max_by_break_spec.rb +0 -5
  269. data/spec/opal/core/enumerable/min_break_spec.rb +0 -5
  270. data/spec/opal/core/enumerable/min_by_break_spec.rb +0 -5
  271. data/spec/opal/core/enumerable/none_break_spec.rb +0 -5
  272. data/spec/opal/core/enumerable/one_break_spec.rb +0 -5
  273. data/spec/opal/core/enumerable/reduce_break_spec.rb +0 -5
  274. data/spec/opal/core/enumerable/take_while_break_spec.rb +0 -5
  275. data/spec/opal/core/enumerator/with_index_spec.rb +0 -6
  276. data/spec/opal/core/exception_spec.rb +0 -30
  277. data/spec/opal/core/fixtures/class.rb +0 -124
  278. data/spec/opal/core/fixtures/class_variables.rb +0 -0
  279. data/spec/opal/core/fixtures/constants.rb +0 -33
  280. data/spec/opal/core/fixtures/require_tree_files/file 1.rb +0 -1
  281. data/spec/opal/core/fixtures/require_tree_files/file 2.rb +0 -1
  282. data/spec/opal/core/fixtures/require_tree_files/file 3.rb +0 -1
  283. data/spec/opal/core/fixtures/require_tree_files/file 4.rb +0 -1
  284. data/spec/opal/core/fixtures/require_tree_files/file 5.rb +0 -1
  285. data/spec/opal/core/fixtures/require_tree_files/nested/nested 1.rb +0 -1
  286. data/spec/opal/core/fixtures/require_tree_files/nested/nested 2.rb +0 -1
  287. data/spec/opal/core/fixtures/require_tree_files/other/other 1.rb +0 -1
  288. data/spec/opal/core/fixtures/require_tree_with_dot/file 1.rb +0 -1
  289. data/spec/opal/core/fixtures/require_tree_with_dot/file 2.rb +0 -1
  290. data/spec/opal/core/fixtures/require_tree_with_dot/file 3.rb +0 -1
  291. data/spec/opal/core/fixtures/require_tree_with_dot/index.rb +0 -3
  292. data/spec/opal/core/hash/has_value_spec.rb +0 -13
  293. data/spec/opal/core/hash/internals_spec.rb +0 -332
  294. data/spec/opal/core/helpers_spec.rb +0 -14
  295. data/spec/opal/core/kernel/Array_spec.rb +0 -10
  296. data/spec/opal/core/kernel/at_exit_spec.rb +0 -70
  297. data/spec/opal/core/kernel/block_given_spec.rb +0 -30
  298. data/spec/opal/core/kernel/class_spec.rb +0 -6
  299. data/spec/opal/core/kernel/define_singleton_method_spec.rb +0 -21
  300. data/spec/opal/core/kernel/equal_value_spec.rb +0 -12
  301. data/spec/opal/core/kernel/extend_spec.rb +0 -21
  302. data/spec/opal/core/kernel/format_spec.rb +0 -122
  303. data/spec/opal/core/kernel/freeze_spec.rb +0 -15
  304. data/spec/opal/core/kernel/instance_eval_spec.rb +0 -28
  305. data/spec/opal/core/kernel/instance_variable_defined_spec.rb +0 -15
  306. data/spec/opal/core/kernel/instance_variable_get_spec.rb +0 -14
  307. data/spec/opal/core/kernel/instance_variable_set_spec.rb +0 -10
  308. data/spec/opal/core/kernel/instance_variables_spec.rb +0 -110
  309. data/spec/opal/core/kernel/loop_spec.rb +0 -23
  310. data/spec/opal/core/kernel/match_spec.rb +0 -5
  311. data/spec/opal/core/kernel/method_spec.rb +0 -31
  312. data/spec/opal/core/kernel/methods_spec.rb +0 -25
  313. data/spec/opal/core/kernel/nil_spec.rb +0 -7
  314. data/spec/opal/core/kernel/p_spec.rb +0 -15
  315. data/spec/opal/core/kernel/printf_spec.rb +0 -11
  316. data/spec/opal/core/kernel/proc_spec.rb +0 -13
  317. data/spec/opal/core/kernel/raise_spec.rb +0 -13
  318. data/spec/opal/core/kernel/rand_spec.rb +0 -19
  319. data/spec/opal/core/kernel/require_tree_spec.rb +0 -18
  320. data/spec/opal/core/kernel/respond_to_spec.rb +0 -44
  321. data/spec/opal/core/kernel/send_spec.rb +0 -56
  322. data/spec/opal/core/kernel/sprintf_spec.rb +0 -5
  323. data/spec/opal/core/language/arguments/mlhs_arg_spec.rb +0 -19
  324. data/spec/opal/core/language/class_spec.rb +0 -55
  325. data/spec/opal/core/language/constant_lookup_spec.rb +0 -38
  326. data/spec/opal/core/language/equal_spec.rb +0 -8
  327. data/spec/opal/core/language/fixtures/array.rb +0 -11
  328. data/spec/opal/core/language/fixtures/block.rb +0 -57
  329. data/spec/opal/core/language/fixtures/break.rb +0 -240
  330. data/spec/opal/core/language/fixtures/ensure.rb +0 -72
  331. data/spec/opal/core/language/fixtures/literal_lambda.rb +0 -7
  332. data/spec/opal/core/language/fixtures/metaclass.rb +0 -33
  333. data/spec/opal/core/language/fixtures/module.rb +0 -24
  334. data/spec/opal/core/language/fixtures/next.rb +0 -128
  335. data/spec/opal/core/language/fixtures/return.rb +0 -118
  336. data/spec/opal/core/language/fixtures/send.rb +0 -111
  337. data/spec/opal/core/language/fixtures/send_1.9.rb +0 -22
  338. data/spec/opal/core/language/fixtures/super.rb +0 -308
  339. data/spec/opal/core/language/fixtures/variables.rb +0 -58
  340. data/spec/opal/core/language/fixtures/yield.rb +0 -28
  341. data/spec/opal/core/language/heredoc_spec.rb +0 -42
  342. data/spec/opal/core/language/keyword_arguments_spec.rb +0 -11
  343. data/spec/opal/core/language/predefined_spec.rb +0 -138
  344. data/spec/opal/core/language/regexp_spec.rb +0 -20
  345. data/spec/opal/core/language/rescue_spec.rb +0 -18
  346. data/spec/opal/core/language/safe_navigator_spec.rb +0 -7
  347. data/spec/opal/core/language/send_spec.rb +0 -222
  348. data/spec/opal/core/language/string_spec.rb +0 -44
  349. data/spec/opal/core/language/ternary_operator_spec.rb +0 -20
  350. data/spec/opal/core/language/versions/array_1.9.rb +0 -39
  351. data/spec/opal/core/language/versions/block_1.9.rb +0 -0
  352. data/spec/opal/core/language/versions/break_1.9.rb +0 -0
  353. data/spec/opal/core/language/versions/case_1.9.rb +0 -20
  354. data/spec/opal/core/language/versions/def_2_0_spec.rb +0 -58
  355. data/spec/opal/core/language/versions/hash_1_9_spec.rb +0 -23
  356. data/spec/opal/core/language/versions/literal_lambda_1.9.rb +0 -143
  357. data/spec/opal/core/language/versions/not_1.9.rb +0 -22
  358. data/spec/opal/core/language/versions/send_1.9.rb +0 -241
  359. data/spec/opal/core/language/versions/symbol_1.9.rb +0 -15
  360. data/spec/opal/core/language/versions/variables_1.9.rb +0 -8
  361. data/spec/opal/core/language_spec.rb +0 -77
  362. data/spec/opal/core/marshal/dump_spec.rb +0 -53
  363. data/spec/opal/core/marshal/load_spec.rb +0 -7
  364. data/spec/opal/core/method/to_proc_spec.rb +0 -28
  365. data/spec/opal/core/module/alias_method_spec.rb +0 -28
  366. data/spec/opal/core/module/ancestors_spec.rb +0 -11
  367. data/spec/opal/core/module/append_features_spec.rb +0 -14
  368. data/spec/opal/core/module/attr_accessor_spec.rb +0 -26
  369. data/spec/opal/core/module/const_defined_spec.rb +0 -84
  370. data/spec/opal/core/module/const_get_spec.rb +0 -85
  371. data/spec/opal/core/module/const_missing_spec.rb +0 -17
  372. data/spec/opal/core/module/const_set_spec.rb +0 -64
  373. data/spec/opal/core/module/constants_spec.rb +0 -49
  374. data/spec/opal/core/module/fixtures/classes.rb +0 -444
  375. data/spec/opal/core/module/method_defined_spec.rb +0 -48
  376. data/spec/opal/core/module/method_lookup_spec.rb +0 -13
  377. data/spec/opal/core/module/module_function_spec.rb +0 -25
  378. data/spec/opal/core/module/name_spec.rb +0 -41
  379. data/spec/opal/core/module/public_method_defined_spec.rb +0 -18
  380. data/spec/opal/core/module/remove_const_spec.rb +0 -22
  381. data/spec/opal/core/module/undef_method_spec.rb +0 -66
  382. data/spec/opal/core/numeric/bit_and_spec.rb +0 -7
  383. data/spec/opal/core/numeric/bit_or_spec.rb +0 -8
  384. data/spec/opal/core/numeric/bit_xor_spec.rb +0 -6
  385. data/spec/opal/core/numeric/ceil_spec.rb +0 -8
  386. data/spec/opal/core/numeric/chr_spec.rb +0 -8
  387. data/spec/opal/core/numeric/comparison_spec.rb +0 -24
  388. data/spec/opal/core/numeric/complement_spec.rb +0 -8
  389. data/spec/opal/core/numeric/divide_spec.rb +0 -10
  390. data/spec/opal/core/numeric/eql_spec.rb +0 -9
  391. data/spec/opal/core/numeric/exponent_spec.rb +0 -33
  392. data/spec/opal/core/numeric/floor_spec.rb +0 -8
  393. data/spec/opal/core/numeric/gt_spec.rb +0 -11
  394. data/spec/opal/core/numeric/gte_spec.rb +0 -12
  395. data/spec/opal/core/numeric/integer_spec.rb +0 -9
  396. data/spec/opal/core/numeric/left_shift_spec.rb +0 -21
  397. data/spec/opal/core/numeric/lt_spec.rb +0 -11
  398. data/spec/opal/core/numeric/lte_spec.rb +0 -12
  399. data/spec/opal/core/numeric/minus_spec.rb +0 -8
  400. data/spec/opal/core/numeric/modulo_spec.rb +0 -19
  401. data/spec/opal/core/numeric/multiply_spec.rb +0 -9
  402. data/spec/opal/core/numeric/next_spec.rb +0 -9
  403. data/spec/opal/core/numeric/ord_spec.rb +0 -9
  404. data/spec/opal/core/numeric/plus_spec.rb +0 -8
  405. data/spec/opal/core/numeric/pred_spec.rb +0 -7
  406. data/spec/opal/core/numeric/right_shift_spec.rb +0 -25
  407. data/spec/opal/core/numeric/step_spec.rb +0 -11
  408. data/spec/opal/core/numeric/succ_spec.rb +0 -9
  409. data/spec/opal/core/numeric/times_spec.rb +0 -36
  410. data/spec/opal/core/numeric/to_f_spec.rb +0 -7
  411. data/spec/opal/core/numeric/to_i_spec.rb +0 -7
  412. data/spec/opal/core/numeric/to_json_spec.rb +0 -8
  413. data/spec/opal/core/numeric/to_s_spec.rb +0 -26
  414. data/spec/opal/core/numeric/uminus_spec.rb +0 -9
  415. data/spec/opal/core/numeric/upto_spec.rb +0 -19
  416. data/spec/opal/core/numeric/zero_spec.rb +0 -7
  417. data/spec/opal/core/object_id_spec.rb +0 -56
  418. data/spec/opal/core/proc/call_spec.rb +0 -21
  419. data/spec/opal/core/proc/element_reference_spec.rb +0 -21
  420. data/spec/opal/core/proc/proc_tricks_spec.rb +0 -7
  421. data/spec/opal/core/runtime/begin_spec.rb +0 -39
  422. data/spec/opal/core/runtime/block_spec.rb +0 -23
  423. data/spec/opal/core/runtime/bridged_classes_spec.rb +0 -123
  424. data/spec/opal/core/runtime/constants_spec.rb +0 -13
  425. data/spec/opal/core/runtime/donate_spec.rb +0 -53
  426. data/spec/opal/core/runtime/eval_spec.rb +0 -5
  427. data/spec/opal/core/runtime/is_a_spec.rb +0 -36
  428. data/spec/opal/core/runtime/main_methods_spec.rb +0 -27
  429. data/spec/opal/core/runtime/method_missing_spec.rb +0 -68
  430. data/spec/opal/core/runtime/method_spec.rb +0 -31
  431. data/spec/opal/core/runtime/operator_call_spec.rb +0 -13
  432. data/spec/opal/core/runtime/paren_spec.rb +0 -14
  433. data/spec/opal/core/runtime/rescue_spec.rb +0 -106
  434. data/spec/opal/core/runtime/return_spec.rb +0 -38
  435. data/spec/opal/core/runtime/singleton_class_spec.rb +0 -13
  436. data/spec/opal/core/runtime/super_spec.rb +0 -223
  437. data/spec/opal/core/runtime/truthy_spec.rb +0 -63
  438. data/spec/opal/core/runtime/variables_spec.rb +0 -20
  439. data/spec/opal/core/runtime_spec.rb +0 -58
  440. data/spec/opal/core/source_map_spec.rb +0 -49
  441. data/spec/opal/core/string_spec.rb +0 -32
  442. data/spec/opal/core/time_spec.rb +0 -38
  443. data/spec/opal/javascript_api_spec.rb +0 -16
  444. data/spec/opal/stdlib/erb/erb_spec.rb +0 -30
  445. data/spec/opal/stdlib/erb/inline_block.opalerb +0 -3
  446. data/spec/opal/stdlib/erb/quoted.opalerb +0 -1
  447. data/spec/opal/stdlib/erb/simple.opalerb +0 -1
  448. data/spec/opal/stdlib/js_spec.rb +0 -66
  449. data/spec/opal/stdlib/json/ext_spec.rb +0 -48
  450. data/spec/opal/stdlib/json/parse_spec.rb +0 -37
  451. data/spec/opal/stdlib/native/alias_native_spec.rb +0 -27
  452. data/spec/opal/stdlib/native/array_spec.rb +0 -11
  453. data/spec/opal/stdlib/native/each_spec.rb +0 -13
  454. data/spec/opal/stdlib/native/element_reference_spec.rb +0 -16
  455. data/spec/opal/stdlib/native/exposure_spec.rb +0 -33
  456. data/spec/opal/stdlib/native/ext_spec.rb +0 -19
  457. data/spec/opal/stdlib/native/hash_spec.rb +0 -67
  458. data/spec/opal/stdlib/native/initialize_spec.rb +0 -17
  459. data/spec/opal/stdlib/native/method_missing_spec.rb +0 -51
  460. data/spec/opal/stdlib/native/native_alias_spec.rb +0 -19
  461. data/spec/opal/stdlib/native/native_class_spec.rb +0 -18
  462. data/spec/opal/stdlib/native/native_module_spec.rb +0 -13
  463. data/spec/opal/stdlib/native/native_reader_spec.rb +0 -22
  464. data/spec/opal/stdlib/native/native_writer_spec.rb +0 -30
  465. data/spec/opal/stdlib/native/new_spec.rb +0 -92
  466. data/spec/opal/stdlib/native/struct_spec.rb +0 -12
  467. data/spec/opal/stdlib/promise/always_spec.rb +0 -49
  468. data/spec/opal/stdlib/promise/error_spec.rb +0 -15
  469. data/spec/opal/stdlib/promise/rescue_spec.rb +0 -53
  470. data/spec/opal/stdlib/promise/then_spec.rb +0 -79
  471. data/spec/opal/stdlib/promise/trace_spec.rb +0 -51
  472. data/spec/opal/stdlib/promise/value_spec.rb +0 -15
  473. data/spec/opal/stdlib/promise/when_spec.rb +0 -34
  474. data/spec/opal/stdlib/source_map_spec.rb +0 -8
  475. data/spec/opal/stdlib/strscan/scan_spec.rb +0 -11
  476. data/spec/opal/stdlib/template/paths_spec.rb +0 -10
  477. data/spec/opal/stdlib/thread/mutex_spec.rb +0 -40
  478. data/spec/opal/stdlib/thread/thread_queue_spec.rb +0 -32
  479. data/spec/opal/stdlib/thread/thread_spec.rb +0 -60
  480. data/spec/ruby_specs +0 -122
  481. data/spec/spec_helper.rb +0 -27
  482. data/spec/support/match_helpers.rb +0 -57
  483. data/spec/support/mspec_rspec_adapter.rb +0 -33
  484. data/spec/support/rewriters_helper.rb +0 -24
  485. data/stdlib/phantomjs.rb +0 -17
  486. data/tasks/testing/sprockets-phantomjs.js +0 -54
  487. data/test/nodejs/fixtures/hello.rb +0 -1
  488. data/test/nodejs/test_dir.rb +0 -17
  489. data/test/nodejs/test_file.rb +0 -87
  490. data/test/nodejs/test_io.rb +0 -18
  491. data/test/nodejs/test_opal_builder.rb +0 -12
  492. data/test/opal/test_keyword.rb +0 -590
  493. data/test/opal/unsupported_and_bugs.rb +0 -39
@@ -1,3 +0,0 @@
1
- opal_unsupported_filter "Pathname" do
2
- fails "Pathname.new is tainted if path is tainted"
3
- end
@@ -1,279 +0,0 @@
1
- opal_unsupported_filter "private" do
2
- fails "BasicObject#initialize is a private instance method"
3
- fails "BasicObject#method_missing for a Class raises a NoMethodError when an undefined method is called"
4
- fails "BasicObject#method_missing is a private method"
5
- fails "BasicObject#singleton_method_added is a private method"
6
- fails "BasicObject#singleton_method_removed is a private method"
7
- fails "BasicObject#singleton_method_undefined is a private method"
8
- fails "Defining a 'respond_to_missing?' method sets the method's visibility to private"
9
- fails "Defining a method at the top-level defines it on Object with private visibility by default"
10
- fails "Defining an 'initialize' method sets the method's visibility to private"
11
- fails "Defining an 'initialize_clone' method sets the method's visibility to private"
12
- fails "Defining an 'initialize_copy' method sets the method's visibility to private"
13
- fails "Defining an 'initialize_dup' method sets the method's visibility to private"
14
- fails "Enumerator#initialize is a private method"
15
- fails "Invoking a private getter method does not permit self as a receiver"
16
- fails "Kernel#block_given? is a private method"
17
- fails "Kernel#eval is a private method"
18
- fails "Kernel#iterator? is a private method"
19
- fails "Kernel#local_variables is a private method"
20
- fails "Kernel#methods returns private singleton methods defined by obj.meth"
21
- fails "Kernel#methods returns singleton methods defined in 'class << self' when it follows 'private'"
22
- fails "Kernel#p is a private method"
23
- fails "Kernel#print is a private method"
24
- fails "Kernel#printf is a private method"
25
- fails "Kernel#private_methods returns a list of the names of privately accessible methods in the object and its ancestors and mixed-in modules"
26
- fails "Kernel#private_methods returns a list of the names of privately accessible methods in the object"
27
- fails "Kernel#private_methods returns private methods mixed in to the metaclass"
28
- fails "Kernel#private_methods when not passed an argument returns a unique list for a class including a module"
29
- fails "Kernel#private_methods when not passed an argument returns a unique list for a subclass of a class that includes a module"
30
- fails "Kernel#private_methods when not passed an argument returns a unique list for an object extended by a module"
31
- fails "Kernel#private_methods when passed false returns a list of private methods in without its ancestors"
32
- fails "Kernel#private_methods when passed nil returns a list of private methods in without its ancestors"
33
- fails "Kernel#private_methods when passed true returns a unique list for a class including a module"
34
- fails "Kernel#private_methods when passed true returns a unique list for a subclass of a class that includes a module"
35
- fails "Kernel#private_methods when passed true returns a unique list for an object extended by a module"
36
- fails "Kernel#protected_methods returns a list of the names of protected methods accessible in the object and from its ancestors and mixed-in modules"
37
- fails "Kernel#protected_methods returns a list of the names of protected methods accessible in the object"
38
- fails "Kernel#protected_methods returns methods mixed in to the metaclass"
39
- fails "Kernel#protected_methods when not passed an argument returns a unique list for a class including a module"
40
- fails "Kernel#protected_methods when not passed an argument returns a unique list for a subclass of a class that includes a module"
41
- fails "Kernel#protected_methods when not passed an argument returns a unique list for an object extended by a module"
42
- fails "Kernel#protected_methods when passed false returns a list of protected methods in without its ancestors"
43
- fails "Kernel#protected_methods when passed nil returns a list of protected methods in without its ancestors"
44
- fails "Kernel#protected_methods when passed true returns a unique list for a class including a module"
45
- fails "Kernel#protected_methods when passed true returns a unique list for a subclass of a class that includes a module"
46
- fails "Kernel#protected_methods when passed true returns a unique list for an object extended by a module"
47
- fails "Kernel#public_send called from own public method raises a NoMethodError if the method is private"
48
- fails "Kernel#public_send called from own public method raises a NoMethodError if the method is protected"
49
- fails "Kernel#public_send raises a NoMethodError if the method is protected"
50
- fails "Kernel#public_send raises a NoMethodError if the named method is an alias of a private method"
51
- fails "Kernel#public_send raises a NoMethodError if the named method is an alias of a protected method"
52
- fails "Kernel#public_send raises a NoMethodError if the named method is private"
53
- fails "Kernel#puts is a private method"
54
- fails "Kernel#respond_to? does not change method visibility when finding private method"
55
- fails "Kernel#respond_to? returns false even if obj responds to the given private method (include_private = false)"
56
- fails "Kernel#respond_to? returns false if obj responds to the given private method"
57
- fails "Kernel#respond_to? returns false if obj responds to the given protected method (include_private = false)"
58
- fails "Kernel#respond_to? returns false if obj responds to the given protected method"
59
- fails "Kernel#respond_to_missing? is a private method"
60
- fails "Kernel#respond_to_missing? is called when obj responds to the given private method, include_private = false"
61
- fails "Kernel#respond_to_missing? is called when obj responds to the given protected method, include_private = false"
62
- fails "Kernel#respond_to_missing? isn't called when obj responds to the given private method, include_private = true"
63
- fails "Kernel#respond_to_missing? isn't called when obj responds to the given protected method, include_private = true"
64
- fails "Kernel#respond_to_missing? isn't called when obj responds to the given public method, include_private = true"
65
- fails "Kernel#singleton_methods when not passed an argument does not return private class methods for a class"
66
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a class including a module"
67
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a module including a module"
68
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass including a module"
69
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass of a class including a module"
70
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass of a class that includes a module, where the subclass also includes a module"
71
- fails "Kernel#singleton_methods when not passed an argument does not return private inherited singleton methods for a subclass"
72
- fails "Kernel#singleton_methods when not passed an argument does not return private module methods for a module"
73
- fails "Kernel#singleton_methods when not passed an argument does not return private singleton methods for a class extended with a module"
74
- fails "Kernel#singleton_methods when not passed an argument does not return private singleton methods for an object extended with a module"
75
- fails "Kernel#singleton_methods when not passed an argument does not return private singleton methods for an object extended with two modules"
76
- fails "Kernel#singleton_methods when not passed an argument does not return private singleton methods for an object extented with a module including a module"
77
- fails "Kernel#singleton_methods when passed false does not return private class methods for a class"
78
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a class including a module"
79
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a module including a module"
80
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass including a module"
81
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass of a class including a module"
82
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass of a class that includes a module, where the subclass also includes a module"
83
- fails "Kernel#singleton_methods when passed false does not return private inherited singleton methods for a subclass"
84
- fails "Kernel#singleton_methods when passed false does not return private module methods for a module"
85
- fails "Kernel#singleton_methods when passed false does not return private singleton methods for a class extended with a module"
86
- fails "Kernel#singleton_methods when passed false does not return private singleton methods for an object extended with a module"
87
- fails "Kernel#singleton_methods when passed false does not return private singleton methods for an object extended with two modules"
88
- fails "Kernel#singleton_methods when passed false does not return private singleton methods for an object extented with a module including a module"
89
- fails "Kernel#singleton_methods when passed true does not return private class methods for a class"
90
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a class including a module"
91
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a module including a module"
92
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass including a module"
93
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass of a class including a module"
94
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass of a class that includes a module, where the subclass also includes a module"
95
- fails "Kernel#singleton_methods when passed true does not return private inherited singleton methods for a subclass"
96
- fails "Kernel#singleton_methods when passed true does not return private module methods for a module"
97
- fails "Kernel#singleton_methods when passed true does not return private singleton methods for a class extended with a module"
98
- fails "Kernel#singleton_methods when passed true does not return private singleton methods for an object extended with a module"
99
- fails "Kernel#singleton_methods when passed true does not return private singleton methods for an object extended with two modules"
100
- fails "Kernel#singleton_methods when passed true does not return private singleton methods for an object extented with a module including a module"
101
- fails "Kernel.global_variables is a private method"
102
- fails "Kernel.lambda is a private method"
103
- fails "Kernel.loop is a private method"
104
- fails "Kernel.proc is a private method"
105
- fails "Kernel.rand is a private method"
106
- fails "Kernel.srand is a private method"
107
- fails "Method#== missing methods calls respond_to_missing? with true to include private methods"
108
- fails "Method#eql? missing methods calls respond_to_missing? with true to include private methods"
109
- fails "Module#alias_method aliasing special methods keeps initialize private when aliasing"
110
- fails "Module#alias_method aliasing special methods keeps initialize_clone private when aliasing"
111
- fails "Module#alias_method aliasing special methods keeps initialize_copy private when aliasing"
112
- fails "Module#alias_method aliasing special methods keeps initialize_dup private when aliasing"
113
- fails "Module#alias_method aliasing special methods keeps respond_to_missing? private when aliasing"
114
- fails "Module#alias_method is a private method"
115
- fails "Module#append_features is a private method"
116
- fails "Module#attr is a private method"
117
- fails "Module#attr_accessor is a private method"
118
- fails "Module#attr_reader is a private method"
119
- fails "Module#attr_writer is a private method"
120
- fails "Module#define_method is private"
121
- fails "Module#define_method when given an UnboundMethod sets the new method's visibility to the current frame's visibility" # Expected NoMethodError but no exception was raised ("piggy" was returned)
122
- fails "Module#define_method when name is :initialize given an UnboundMethod sets the visibility to private when method is named :initialize"
123
- fails "Module#define_method when name is :initialize passed a block sets visibility to private when method name is :initialize"
124
- fails "Module#define_method when name is not a special private name given an UnboundMethod and called from the target module sets the visibility of the method to the current visibility"
125
- fails "Module#define_method when name is not a special private name given an UnboundMethod sets the visibility of the method to the current visibility"
126
- fails "Module#define_method when name is not a special private name passed a block and called from the target module sets the visibility of the method to the current visibility"
127
- fails "Module#extend_object is a private method"
128
- fails "Module#extend_object is called even when private"
129
- fails "Module#extended is private in its default implementation"
130
- fails "Module#included is private in its default implementation"
131
- fails "Module#instance_methods makes a private Object instance method public in Kernel"
132
- fails "Module#method_added is a private instance method"
133
- fails "Module#method_removed is a private instance method"
134
- fails "Module#method_undefined is a private instance method"
135
- fails "Module#module_function is a private method"
136
- fails "Module#module_function with specific method names can make accessible private methods"
137
- fails "Module#module_function with specific method names makes the instance methods private"
138
- fails "Module#prepend_features is a private method"
139
- fails "Module#prepended is a private method"
140
- fails "Module#private is a private method"
141
- fails "Module#private makes a public Object instance method private in Kernel"
142
- fails "Module#private makes a public Object instance method private in a new module"
143
- fails "Module#private makes the target method uncallable from other types"
144
- fails "Module#private raises a NameError when given an undefined name"
145
- fails "Module#private returns self"
146
- fails "Module#private without arguments affects evaled method definitions when itself is outside the eval"
147
- fails "Module#private without arguments affects normally if itself and following method definitions are inside a eval"
148
- fails "Module#private without arguments affects normally if itself and method definitions are inside a module_eval"
149
- fails "Module#private without arguments continues setting visibility if the body encounters other visibility setters with arguments"
150
- fails "Module#private without arguments does not affect method definitions when itself is inside an eval and method definitions are outside"
151
- fails "Module#private without arguments does not affect module_evaled method definitions when itself is outside the eval"
152
- fails "Module#private without arguments sets visibility to following method definitions"
153
- fails "Module#private without arguments stops setting visibility if the body encounters other visibility setters without arguments"
154
- fails "Module#private without arguments within a closure sets the visibility outside the closure"
155
- fails "Module#private_class_method accepts more than one method at a time"
156
- fails "Module#private_class_method makes a class method private"
157
- fails "Module#private_class_method makes an existing class method private up the inheritance tree"
158
- fails "Module#private_class_method makes an existing class method private"
159
- fails "Module#private_class_method raises a NameError if class method doesn't exist"
160
- fails "Module#private_class_method raises a NameError when the given name is an instance method"
161
- fails "Module#private_class_method raises a NameError when the given name is not a method"
162
- fails "Module#private_constant accepts multiple names"
163
- fails "Module#private_constant accepts strings as constant names"
164
- fails "Module#private_constant can only be passed constant names defined in the target (self) module"
165
- fails "Module#private_constant marked constants in Object cannot be accessed using ::Const form"
166
- fails "Module#private_constant marked constants in Object is not defined? using ::Const form"
167
- fails "Module#private_constant marked constants in a class can be accessed from lexical scope"
168
- fails "Module#private_constant marked constants in a class can be accessed from the class itself"
169
- fails "Module#private_constant marked constants in a class cannot be accessed from outside the class"
170
- fails "Module#private_constant marked constants in a class cannot be reopened as a class"
171
- fails "Module#private_constant marked constants in a class cannot be reopened as a module"
172
- fails "Module#private_constant marked constants in a class is defined? from lexical scope"
173
- fails "Module#private_constant marked constants in a class is not defined? with A::B form"
174
- fails "Module#private_constant marked constants in a module can be accessed from lexical scope"
175
- fails "Module#private_constant marked constants in a module can be accessed from the module itself"
176
- fails "Module#private_constant marked constants in a module cannot be accessed from outside the module"
177
- fails "Module#private_constant marked constants in a module cannot be reopened as a class from scope where constant would be private" # Expected NameError but no exception was raised (nil was returned)
178
- fails "Module#private_constant marked constants in a module cannot be reopened as a class"
179
- fails "Module#private_constant marked constants in a module cannot be reopened as a module from scope where constant would be private" # Exception: Cannot read property '$pretty_inspect' of undefined
180
- fails "Module#private_constant marked constants in a module cannot be reopened as a module"
181
- fails "Module#private_constant marked constants in a module is defined? from lexical scope"
182
- fails "Module#private_constant marked constants in a module is not defined? with A::B form"
183
- fails "Module#private_constant marked constants remain private even when updated"
184
- fails "Module#private_instance_methods returns a list of private methods in module and its ancestors"
185
- fails "Module#private_instance_methods when not passed an argument returns a unique list for a class including a module"
186
- fails "Module#private_instance_methods when not passed an argument returns a unique list for a subclass"
187
- fails "Module#private_instance_methods when passed false as a parameter, should return only methods defined in that module"
188
- fails "Module#private_instance_methods when passed true returns a unique list for a class including a module"
189
- fails "Module#private_instance_methods when passed true returns a unique list for a subclass"
190
- fails "Module#private_method_defined? accepts symbols for the method name"
191
- fails "Module#private_method_defined? calls #to_str to convert an Object"
192
- fails "Module#private_method_defined? raises a TypeError if passed a Fixnum"
193
- fails "Module#private_method_defined? raises a TypeError if passed an object that defines #to_sym"
194
- fails "Module#private_method_defined? raises a TypeError if passed an object that does not defined #to_str"
195
- fails "Module#private_method_defined? raises a TypeError if passed false"
196
- fails "Module#private_method_defined? raises a TypeError if passed nil"
197
- fails "Module#private_method_defined? returns true if the named private method is defined by module or its ancestors"
198
- fails "Module#protected is a private method"
199
- fails "Module#protected makes a public Object instance method protected in Kernel"
200
- fails "Module#protected makes a public Object instance method protected in a new module"
201
- fails "Module#protected makes an existing class method protected"
202
- fails "Module#protected raises a NameError when given an undefined name"
203
- fails "Module#protected returns self"
204
- fails "Module#protected without arguments affects evaled method definitions when itself is outside the eval"
205
- fails "Module#protected without arguments affects normally if itself and following method definitions are inside a eval"
206
- fails "Module#protected without arguments affects normally if itself and method definitions are inside a module_eval"
207
- fails "Module#protected without arguments continues setting visibility if the body encounters other visibility setters with arguments"
208
- fails "Module#protected without arguments does not affect method definitions when itself is inside an eval and method definitions are outside"
209
- fails "Module#protected without arguments does not affect module_evaled method definitions when itself is outside the eval"
210
- fails "Module#protected without arguments sets visibility to following method definitions"
211
- fails "Module#protected without arguments stops setting visibility if the body encounters other visibility setters without arguments"
212
- fails "Module#protected without arguments within a closure sets the visibility outside the closure"
213
- fails "Module#protected_instance_methods default list should be the same as passing true as an argument"
214
- fails "Module#protected_instance_methods returns a list of protected methods in module and its ancestors"
215
- fails "Module#protected_instance_methods when not passed an argument returns a unique list for a class including a module"
216
- fails "Module#protected_instance_methods when not passed an argument returns a unique list for a subclass"
217
- fails "Module#protected_instance_methods when passed false as a parameter, should return only methods defined in that module"
218
- fails "Module#protected_instance_methods when passed true returns a unique list for a class including a module"
219
- fails "Module#protected_instance_methods when passed true returns a unique list for a subclass"
220
- fails "Module#protected_method_defined? accepts symbols for the method name"
221
- fails "Module#protected_method_defined? calls #to_str to convert an Object"
222
- fails "Module#protected_method_defined? raises a TypeError if passed a Fixnum"
223
- fails "Module#protected_method_defined? raises a TypeError if passed an object that defines #to_sym"
224
- fails "Module#protected_method_defined? raises a TypeError if passed an object that does not defined #to_str"
225
- fails "Module#protected_method_defined? raises a TypeError if passed false"
226
- fails "Module#protected_method_defined? raises a TypeError if passed nil"
227
- fails "Module#protected_method_defined? returns true if the named protected method is defined by module or its ancestors"
228
- fails "Module#public is a private method"
229
- fails "Module#public makes a private Object instance method public in Kernel"
230
- fails "Module#public makes a private Object instance method public in a new module"
231
- fails "Module#public raises a NameError when given an undefined name"
232
- fails "Module#public returns self"
233
- fails "Module#public without arguments affects evaled method definitions when itself is outside the eval"
234
- fails "Module#public without arguments affects normally if itself and following method definitions are inside a eval"
235
- fails "Module#public without arguments does not affect method definitions when itself is inside an eval and method definitions are outside"
236
- fails "Module#public without arguments does not affect module_evaled method definitions when itself is outside the eval"
237
- fails "Module#public without arguments stops setting visibility if the body encounters other visibility setters without arguments"
238
- fails "Module#public_class_method accepts more than one method at a time"
239
- fails "Module#public_class_method makes an existing class method public up the inheritance tree"
240
- fails "Module#public_class_method makes an existing class method public"
241
- fails "Module#public_class_method raises a NameError if class method doesn't exist"
242
- fails "Module#public_class_method raises a NameError when the given name is an instance method"
243
- fails "Module#public_class_method raises a NameError when the given name is not a method"
244
- fails "Module#public_constant accepts multiple names"
245
- fails "Module#public_constant accepts strings as constant names"
246
- fails "Module#public_constant can only be passed constant names defined in the target (self) module"
247
- fails "Module#public_constant marked constants in a class can be accessed from outside the class"
248
- fails "Module#public_constant marked constants in a class is defined? with A::B form" # Exception: Opal.TypeError is not a constructor
249
- fails "Module#public_constant marked constants in a module can be accessed from outside the module"
250
- fails "Module#public_constant marked constants in a module is defined? with A::B form" # Exception: Opal.TypeError is not a constructor
251
- fails "Module#public_instance_method is a public method"
252
- fails "Module#public_instance_method raises a TypeError when given a name is not Symbol or String"
253
- fails "Module#public_instance_method requires an argument"
254
- fails "Module#public_instance_method sets the NameError#name attribute to the name of the missing method"
255
- fails "Module#public_instance_method when given a public method name accepts if the name is a Symbol or String"
256
- fails "Module#public_instance_method when given a public method name returns an UnboundMethod corresponding to the defined Module"
257
- fails "Module#public_instance_methods when passed false as a parameter, should return only methods defined in that module"
258
- fails "Module#public_method_defined? calls #to_str to convert an Object"
259
- fails "Module#public_method_defined? raises a TypeError if passed a Fixnum"
260
- fails "Module#public_method_defined? raises a TypeError if passed an object that defines #to_sym"
261
- fails "Module#public_method_defined? raises a TypeError if passed an object that does not defined #to_str"
262
- fails "Module#public_method_defined? raises a TypeError if passed false"
263
- fails "Module#public_method_defined? raises a TypeError if passed nil"
264
- fails "Module#public_method_defined? returns false if method is not a public method"
265
- fails "Module#remove_const is a private method"
266
- fails "Module#remove_method is a private method"
267
- fails "Module#undef_method is a private method"
268
- fails "NoMethodError#message for an protected method match /protected method/"
269
- fails "NoMethodError#message for private method match /private method/"
270
- fails "OpenStruct#initialize is private"
271
- fails "OpenStruct#new_ostruct_member is protected"
272
- fails "OpenStruct#table is protected"
273
- fails "Rational#marshal_dump is a private method"
274
- fails "Redefining a singleton method does not inherit a previously set visibility"
275
- fails "Regexp#initialize is a private method"
276
- fails "Set#flatten_merge is protected"
277
- fails "String#+@ returns mutable copy despite freeze-magic-comment in file" # NoMethodError: undefined method `tmp' for #<Object:0x3bdc>
278
- fails "StringScanner#initialize is a private method"
279
- end
@@ -1,3 +0,0 @@
1
- opal_unsupported_filter "Proc" do
2
- fails "Proc#hash returns an Integer"
3
- end
@@ -1,4 +0,0 @@
1
- opal_unsupported_filter "Random" do
2
- fails "Random#bytes returns the same numeric output for a given seed accross all implementations and platforms"
3
- fails "Random#bytes returns the same numeric output for a given huge seed accross all implementations and platforms"
4
- end
@@ -1,7 +0,0 @@
1
- opal_unsupported_filter "Range" do
2
- fails "Range#initialize is private"
3
- fails "Range#inspect returns a tainted string if either end is tainted"
4
- fails "Range#inspect returns a untrusted string if either end is untrusted"
5
- fails "Range#to_s returns a tainted string if either end is tainted"
6
- fails "Range#to_s returns a untrusted string if either end is untrusted"
7
- end
@@ -1,69 +0,0 @@
1
- opal_unsupported_filter "Regexp" do
2
- fails "Regexp with character classes doesn't match non-ASCII characters with [[:ascii:]]"
3
- fails "Regexp#options does not include Regexp::FIXEDENCODING for a Regexp literal with the 'n' option"
4
- fails "Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 'e' option"
5
- fails "Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 's' option"
6
- fails "Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 'u' option"
7
- fails "Regexp#options includes Regexp::NOENCODING for a Regexp literal with the 'n' option"
8
- fails "Regexp#source has US-ASCII encoding when created from an ASCII-only \\u{} literal"
9
- fails "Regexp#source has UTF-8 encoding when created from a non-ASCII-only \\u{} literal"
10
- fails "Regexp#to_s deals properly with uncaptured groups"
11
- fails "Regexp#to_s displays groups with options"
12
- fails "Regexp#to_s displays options if included"
13
- fails "Regexp#to_s displays single group with same options as main regex as the main regex"
14
- fails "Regexp#to_s handles abusive option groups"
15
- fails "Regexp.escape sets the encoding of the result to ASCII-8BIT if any non-US-ASCII characters are present in an input String with invalid encoding"
16
- fails "Regexp.escape sets the encoding of the result to US-ASCII if there are only US-ASCII characters present in the input String"
17
- fails "Regexp.escape sets the encoding of the result to the encoding of the String if any non-US-ASCII characters are present in an input String with valid encoding"
18
- fails "Regexp.new given a String accepts a Fixnum of two or more options ORed together as the second argument"
19
- fails "Regexp.new given a String ignores the third argument if it is 'e' or 'euc' (case-insensitive)"
20
- fails "Regexp.new given a String ignores the third argument if it is 's' or 'sjis' (case-insensitive)"
21
- fails "Regexp.new given a String ignores the third argument if it is 'u' or 'utf8' (case-insensitive)"
22
- fails "Regexp.new given a String uses ASCII_8BIT encoding if third argument is 'n' or 'none' (case insensitive) and non-ascii characters"
23
- fails "Regexp.new given a String uses US_ASCII encoding if third argument is 'n' or 'none' (case insensitive) and only ascii characters"
24
- fails "Regexp.new given a String with escaped characters accepts \\u{HHHHHH} for a single Unicode codepoint"
25
- fails "Regexp.new given a String with escaped characters accepts \\u{HHHHH} for a single Unicode codepoint"
26
- fails "Regexp.new given a String with escaped characters accepts \\u{HHHH} followed by characters"
27
- fails "Regexp.new given a String with escaped characters accepts \\u{HHHH} for a single Unicode codepoint"
28
- fails "Regexp.new given a String with escaped characters accepts \\u{HHH} for a single Unicode codepoint"
29
- fails "Regexp.new given a String with escaped characters accepts \\u{HH} for a single Unicode codepoint"
30
- fails "Regexp.new given a String with escaped characters accepts \\u{H} for a single Unicode codepoint"
31
- fails "Regexp.new given a String with escaped characters accepts a combination of escaped octal and hexadecimal digits and \\u{HHHH}"
32
- fails "Regexp.new given a String with escaped characters accepts characters followed by \\u{HHHH}"
33
- fails "Regexp.new given a String with escaped characters accepts escaped hexadecimal digits followed by \\u{HHHH}"
34
- fails "Regexp.new given a String with escaped characters accepts escaped octal digits followed by \\u{HHHH}"
35
- fails "Regexp.new given a String with escaped characters raises a RegexpError if less than four digits are given for \\uHHHH"
36
- fails "Regexp.new given a String with escaped characters raises a RegexpError if the \\u{} escape is empty"
37
- fails "Regexp.new given a String with escaped characters returns a Regexp with US-ASCII encoding if UTF-8 escape sequences using only 7-bit ASCII are present"
38
- fails "Regexp.new given a String with escaped characters returns a Regexp with US-ASCII encoding if only 7-bit ASCII characters are present regardless of the input String's encoding"
39
- fails "Regexp.new given a String with escaped characters returns a Regexp with UTF-8 encoding if any UTF-8 escape sequences outside 7-bit ASCII are present"
40
- fails "Regexp.new given a String with escaped characters returns a Regexp with source String having US-ASCII encoding if UTF-8 escape sequences using only 7-bit ASCII are present"
41
- fails "Regexp.new given a String with escaped characters returns a Regexp with source String having US-ASCII encoding if only 7-bit ASCII characters are present regardless of the input String's encoding"
42
- fails "Regexp.new given a String with escaped characters returns a Regexp with source String having UTF-8 encoding if any UTF-8 escape sequences outside 7-bit ASCII are present"
43
- fails "Regexp.new given a String with escaped characters returns a Regexp with source String having the input String's encoding"
44
- fails "Regexp.new given a String with escaped characters returns a Regexp with the input String's encoding"
45
- fails "Regexp.quote sets the encoding of the result to ASCII-8BIT if any non-US-ASCII characters are present in an input String with invalid encoding"
46
- fails "Regexp.quote sets the encoding of the result to US-ASCII if there are only US-ASCII characters present in the input String"
47
- fails "Regexp.quote sets the encoding of the result to the encoding of the String if any non-US-ASCII characters are present in an input String with valid encoding"
48
- fails "Regexp.try_convert returns the argument if given a Regexp"
49
- fails "Regexp.union raises ArgumentError if the arguments include a String containing non-ASCII-compatible characters and a fixed encoding Regexp in a different encoding"
50
- fails "Regexp.union raises ArgumentError if the arguments include a fixed encoding Regexp and a String containing non-ASCII-compatible characters in a different encoding"
51
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and a Regexp containing non-ASCII-compatible characters in a different encoding"
52
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and a String containing non-ASCII-compatible characters in a different encoding"
53
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and an ASCII-only Regexp"
54
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and an ASCII-only String"
55
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and a Regexp containing non-ASCII-compatible characters in a different encoding"
56
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and a String containing non-ASCII-compatible characters in a different encoding"
57
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and an ASCII-only Regexp"
58
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and an ASCII-only String"
59
- fails "Regexp.union raises ArgumentError if the arguments include conflicting ASCII-incompatible Regexps"
60
- fails "Regexp.union raises ArgumentError if the arguments include conflicting ASCII-incompatible Strings" # Expected ArgumentError but no exception was raised (/a|b/ was returned)
61
- fails "Regexp.union raises ArgumentError if the arguments include conflicting fixed encoding Regexps"
62
- fails "Regexp.union returns a Regexp with US-ASCII encoding if all arguments are ASCII-only"
63
- fails "Regexp.union returns a Regexp with UTF-8 if one part is UTF-8"
64
- fails "Regexp.union returns a Regexp with the encoding of a String containing non-ASCII-compatible characters and another ASCII-only String"
65
- fails "Regexp.union returns a Regexp with the encoding of a String containing non-ASCII-compatible characters"
66
- fails "Regexp.union returns a Regexp with the encoding of an ASCII-incompatible String argument"
67
- fails "Regexp.union returns a Regexp with the encoding of multiple non-conflicting ASCII-incompatible String arguments"
68
- fails "Regexp.union returns a Regexp with the encoding of multiple non-conflicting Strings containing non-ASCII-compatible characters"
69
- end
@@ -1,4 +0,0 @@
1
- opal_unsupported_filter "Set" do
2
- fails "Set#eql? returns true when the passed argument is a Set and contains the same elements"
3
- fails "Set#initialize is private"
4
- end
@@ -1,6 +0,0 @@
1
- opal_unsupported_filter "Singleton" do
2
- fails "Singleton#_dump returns an empty string from a singleton subclass"
3
- fails "Singleton#_dump returns an empty string"
4
- fails "Singleton.allocate is a private method"
5
- fails "Singleton.new is a private method"
6
- end
@@ -1,546 +0,0 @@
1
- opal_unsupported_filter "String" do
2
- fails "BasicObject#__id__ returns a different value for two String literals"
3
- fails "Ruby character strings Unicode escaping can be done with \\u{} and one to six hex digits"
4
- fails "Ruby character strings Unicode escaping with ASCII_8BIT source encoding produces a UTF-8-encoded string when escaping non-ASCII characters via \\u" # Expected #<Encoding:UTF-16LE> to equal #<Encoding:UTF-8>
5
- fails "Ruby character strings Unicode escaping with ASCII_8BIT source encoding produces a UTF-8-encoded string when escaping non-ASCII characters via \\u{}" # Expected #<Encoding:UTF-16LE> to equal #<Encoding:UTF-8>
6
- fails "Ruby character strings Unicode escaping with ASCII_8BIT source encoding produces an ASCII string when escaping ASCII characters via \\u" # Expected #<Encoding:UTF-16LE> to equal #<Encoding:ASCII-8BIT>
7
- fails "Ruby character strings Unicode escaping with ASCII_8BIT source encoding produces an ASCII string when escaping ASCII characters via \\u{}" # Expected #<Encoding:UTF-16LE> to equal #<Encoding:ASCII-8BIT>
8
- fails "Ruby character strings Unicode escaping with US-ASCII source encoding produces a UTF-8-encoded string when escaping non-ASCII characters via \\u"
9
- fails "Ruby character strings Unicode escaping with US-ASCII source encoding produces a UTF-8-encoded string when escaping non-ASCII characters via \\u{}"
10
- fails "Ruby character strings Unicode escaping with US-ASCII source encoding produces an ASCII string when escaping ASCII characters via \\u"
11
- fails "Ruby character strings Unicode escaping with US-ASCII source encoding produces an ASCII string when escaping ASCII characters via \\u{}"
12
- fails "Ruby character strings are produced from control character shortcuts"
13
- fails "Ruby character strings backslashes follow the same rules as interpolation"
14
- fails "Ruby character strings taints the result of interpolation when an interpolated value is tainted"
15
- fails "Ruby character strings untrusts the result of interpolation when an interpolated value is untrusted"
16
- fails "String#% always taints the result when the format string is tainted"
17
- fails "String#% supports negative bignums with %u or %d"
18
- fails "String#% taints result for %p when argument.inspect is tainted"
19
- fails "String#% taints result for %s when argument is tainted"
20
- fails "String#* always taints the result when self is tainted"
21
- fails "String#+ taints the result when self or other is tainted"
22
- fails "String#+ when self and the argument are in different ASCII-compatible encodings raises Encoding::CompatibilityError if neither are ASCII-only"
23
- fails "String#+ when self and the argument are in different ASCII-compatible encodings uses self's encoding if both are ASCII-only"
24
- fails "String#+ when self and the argument are in different ASCII-compatible encodings uses self's encoding if the argument is ASCII-only"
25
- fails "String#+ when self and the argument are in different ASCII-compatible encodings uses the argument's encoding if self is ASCII-only"
26
- fails "String#+ when self is ASCII-8BIT and argument is US-ASCII uses ASCII-8BIT encoding"
27
- fails "String#+ when self is in an ASCII-incompatible encoding incompatible with the argument's encoding raises Encoding::CompatibilityError if neither are empty"
28
- fails "String#+ when self is in an ASCII-incompatible encoding incompatible with the argument's encoding uses self's encoding if both are empty"
29
- fails "String#+ when self is in an ASCII-incompatible encoding incompatible with the argument's encoding uses self's encoding if the argument is empty"
30
- fails "String#+ when self is in an ASCII-incompatible encoding incompatible with the argument's encoding uses the argument's encoding if self is empty"
31
- fails "String#+ when the argument is in an ASCII-incompatible encoding incompatible with self's encoding raises Encoding::CompatibilityError if neither are empty"
32
- fails "String#+ when the argument is in an ASCII-incompatible encoding incompatible with self's encoding uses self's encoding if both are empty"
33
- fails "String#+ when the argument is in an ASCII-incompatible encoding incompatible with self's encoding uses self's encoding if the argument is empty"
34
- fails "String#+ when the argument is in an ASCII-incompatible encoding incompatible with self's encoding uses the argument's encoding if self is empty"
35
- fails "String#<< concatenates the given argument to self and returns self"
36
- fails "String#<< converts the given argument to a String using to_str"
37
- fails "String#<< raises a RuntimeError when self is frozen"
38
- fails "String#<< raises a TypeError if the given argument can't be converted to a String"
39
- fails "String#<< returns a String when given a subclass instance"
40
- fails "String#<< returns an instance of same class when called on a subclass"
41
- fails "String#<< taints self if other is tainted"
42
- fails "String#<< untrusts self if other is untrusted"
43
- fails "String#<< when self and the argument are in different ASCII-compatible encodings raises Encoding::CompatibilityError if neither are ASCII-only"
44
- fails "String#<< when self and the argument are in different ASCII-compatible encodings uses self's encoding if both are ASCII-only"
45
- fails "String#<< when self and the argument are in different ASCII-compatible encodings uses self's encoding if the argument is ASCII-only"
46
- fails "String#<< when self and the argument are in different ASCII-compatible encodings uses the argument's encoding if self is ASCII-only"
47
- fails "String#<< when self is ASCII-8BIT and argument is US-ASCII uses ASCII-8BIT encoding"
48
- fails "String#<< when self is in an ASCII-incompatible encoding incompatible with the argument's encoding raises Encoding::CompatibilityError if neither are empty"
49
- fails "String#<< when self is in an ASCII-incompatible encoding incompatible with the argument's encoding uses self's encoding if both are empty"
50
- fails "String#<< when self is in an ASCII-incompatible encoding incompatible with the argument's encoding uses self's encoding if the argument is empty"
51
- fails "String#<< when self is in an ASCII-incompatible encoding incompatible with the argument's encoding uses the argument's encoding if self is empty"
52
- fails "String#<< when the argument is in an ASCII-incompatible encoding incompatible with self's encoding raises Encoding::CompatibilityError if neither are empty"
53
- fails "String#<< when the argument is in an ASCII-incompatible encoding incompatible with self's encoding uses self's encoding if both are empty"
54
- fails "String#<< when the argument is in an ASCII-incompatible encoding incompatible with self's encoding uses self's encoding if the argument is empty"
55
- fails "String#<< when the argument is in an ASCII-incompatible encoding incompatible with self's encoding uses the argument's encoding if self is empty"
56
- fails "String#<< with Integer concatencates the argument interpreted as a codepoint"
57
- fails "String#<< with Integer doesn't call to_int on its argument"
58
- fails "String#<< with Integer raises RangeError if the argument is an invalid codepoint for self's encoding"
59
- fails "String#<< with Integer raises RangeError if the argument is negative"
60
- fails "String#<< with Integer raises a RuntimeError when self is frozen"
61
- fails "String#<< with Integer returns a ASCII-8BIT string if self is US-ASCII and the argument is between 128-255 (inclusive)"
62
- fails "String#<=> with String compares the indices of the encodings when the strings have identical non-ASCII-compatible bytes"
63
- fails "String#<=> with String ignores encoding difference"
64
- fails "String#<=> with String returns -1 if self is bytewise less than other"
65
- fails "String#<=> with String returns 0 with identical ASCII-compatible bytes of different encodings"
66
- fails "String#<=> with String returns 1 if self is bytewise greater than other"
67
- fails "String#== considers encoding compatibility"
68
- fails "String#== considers encoding difference of incompatible string"
69
- fails "String#== ignores encoding difference of compatible string"
70
- fails "String#=== considers encoding compatibility"
71
- fails "String#=== considers encoding difference of incompatible string"
72
- fails "String#=== ignores encoding difference of compatible string"
73
- fails "String#[] with Range always taints resulting strings when self is tainted"
74
- fails "String#[] with Regexp, index always taints resulting strings when self or regexp is tainted"
75
- fails "String#[] with String taints resulting strings when other is tainted"
76
- fails "String#[] with Symbol raises TypeError"
77
- fails "String#[] with index, length always taints resulting strings when self is tainted"
78
- fails "String#[]= with Fixnum index allows assignment to the zero'th element of an empty String"
79
- fails "String#[]= with Fixnum index calls #to_str to convert other to a String"
80
- fails "String#[]= with Fixnum index calls to_int on index"
81
- fails "String#[]= with Fixnum index raises IndexError if the string index doesn't match a position in the string"
82
- fails "String#[]= with Fixnum index raises a RuntimeError when self is frozen"
83
- fails "String#[]= with Fixnum index raises a TypeError if other_str can't be converted to a String"
84
- fails "String#[]= with Fixnum index raises an IndexError without changing self if idx is outside of self"
85
- fails "String#[]= with Fixnum index replaces the char at idx with other_str"
86
- fails "String#[]= with Fixnum index taints self if other_str is tainted"
87
- fails "String#[]= with Fixnum index, count appends other_str to the end of the string if idx == the length of the string"
88
- fails "String#[]= with Fixnum index, count calls #to_int to convert the index and count objects"
89
- fails "String#[]= with Fixnum index, count calls #to_str to convert the replacement object"
90
- fails "String#[]= with Fixnum index, count counts negative idx values from end of the string"
91
- fails "String#[]= with Fixnum index, count deletes characters if other_str is an empty string"
92
- fails "String#[]= with Fixnum index, count deletes characters up to the maximum length of the existing string"
93
- fails "String#[]= with Fixnum index, count overwrites and deletes characters if count is more than the length of other_str"
94
- fails "String#[]= with Fixnum index, count raises a TypeError if #to_int for count does not return an Integer"
95
- fails "String#[]= with Fixnum index, count raises a TypeError if #to_int for index does not return an Integer"
96
- fails "String#[]= with Fixnum index, count raises a TypeError if other_str is a type other than String"
97
- fails "String#[]= with Fixnum index, count raises a TypeError of #to_str does not return a String"
98
- fails "String#[]= with Fixnum index, count raises an IndexError if count < 0"
99
- fails "String#[]= with Fixnum index, count raises an IndexError if |idx| is greater than the length of the string"
100
- fails "String#[]= with Fixnum index, count starts at idx and overwrites count characters before inserting the rest of other_str"
101
- fails "String#[]= with Fixnum index, count taints self if other_str is tainted"
102
- fails "String#[]= with String index raises an IndexError if the search String is not found"
103
- fails "String#[]= with String index replaces characters with no characters"
104
- fails "String#[]= with String index replaces fewer characters with more characters"
105
- fails "String#[]= with String index replaces more characters with fewer characters"
106
- fails "String#[]= with a Range index raises a RangeError if negative Range begin is out of range"
107
- fails "String#[]= with a Range index raises a RangeError if positive Range begin is greater than String size"
108
- fails "String#[]= with a Range index replaces a partial string"
109
- fails "String#[]= with a Range index replaces the contents with a longer String"
110
- fails "String#[]= with a Range index replaces the contents with a shorter String"
111
- fails "String#[]= with a Range index treats a negative out-of-range Range end with a negative Range begin as a zero count"
112
- fails "String#[]= with a Range index treats a negative out-of-range Range end with a positive Range begin as a zero count"
113
- fails "String#[]= with a Range index uses the Range end as an index rather than a count"
114
- fails "String#[]= with a Range index with an empty replacement does not replace a character with a zero exclude-end range"
115
- fails "String#[]= with a Range index with an empty replacement does not replace a character with a zero-index, zero exclude-end range"
116
- fails "String#[]= with a Range index with an empty replacement replaces a character with a zero non-exclude-end range"
117
- fails "String#[]= with a Range index with an empty replacement replaces a character with zero-index, zero non-exclude-end range"
118
- fails "String#[]= with a Regexp index calls #to_str to convert the replacement"
119
- fails "String#[]= with a Regexp index checks the match before calling #to_str to convert the replacement"
120
- fails "String#[]= with a Regexp index raises IndexError if the regexp index doesn't match a position in the string"
121
- fails "String#[]= with a Regexp index replaces the matched text with the rhs"
122
- fails "String#[]= with a Regexp index with 3 arguments allows the specified capture to be negative and count from the end"
123
- fails "String#[]= with a Regexp index with 3 arguments calls #to_int to convert the second object"
124
- fails "String#[]= with a Regexp index with 3 arguments checks the match index before calling #to_str to convert the replacement"
125
- fails "String#[]= with a Regexp index with 3 arguments raises IndexError if the specified capture isn't available"
126
- fails "String#[]= with a Regexp index with 3 arguments raises a TypeError if #to_int does not return a Fixnum"
127
- fails "String#[]= with a Regexp index with 3 arguments uses the 2nd of 3 arguments as which capture should be replaced"
128
- fails "String#[]= with a Regexp index with 3 arguments when the optional capture does not match raises an IndexError before setting the replacement"
129
- fails "String#capitalize is locale insensitive (only upcases a-z and only downcases A-Z)"
130
- fails "String#capitalize taints resulting string when self is tainted"
131
- fails "String#capitalize! capitalizes self in place"
132
- fails "String#capitalize! raises a RuntimeError when self is frozen"
133
- fails "String#capitalize! returns nil when no changes are made"
134
- fails "String#center with length, padding taints result when self or padstr is tainted"
135
- fails "String#center with length, padding when padding is tainted and self is untainted returns a tainted string if and only if length is longer than self"
136
- fails "String#chars is unicode aware"
137
- fails "String#chomp when passed '' taints the result if self is tainted"
138
- fails "String#chomp when passed '\\n' taints the result if self is tainted"
139
- fails "String#chomp when passed a String does not taint the result when the argument is tainted"
140
- fails "String#chomp when passed a String taints the result if self is tainted"
141
- fails "String#chomp when passed nil returns a copy of the String"
142
- fails "String#chomp when passed nil taints the result if self is tainted"
143
- fails "String#chomp when passed no argument returns a copy of the String when it is not modified"
144
- fails "String#chomp when passed no argument taints the result if self is tainted"
145
- fails "String#chomp! raises a RuntimeError on a frozen instance when it is modified"
146
- fails "String#chomp! raises a RuntimeError on a frozen instance when it would not be modified"
147
- fails "String#chomp! when passed '' does not remove a final carriage return"
148
- fails "String#chomp! when passed '' removes a final carriage return, newline"
149
- fails "String#chomp! when passed '' removes a final newline"
150
- fails "String#chomp! when passed '' removes more than one trailing carriage return, newline pairs"
151
- fails "String#chomp! when passed '' removes more than one trailing newlines"
152
- fails "String#chomp! when passed '' returns nil when self is empty"
153
- fails "String#chomp! when passed '' taints the result if self is tainted"
154
- fails "String#chomp! when passed '\\n' removes one trailing carriage return"
155
- fails "String#chomp! when passed '\\n' removes one trailing carrige return, newline pair"
156
- fails "String#chomp! when passed '\\n' removes one trailing newline"
157
- fails "String#chomp! when passed '\\n' returns nil when self is empty"
158
- fails "String#chomp! when passed '\\n' taints the result if self is tainted"
159
- fails "String#chomp! when passed a String does not taint the result when the argument is tainted"
160
- fails "String#chomp! when passed a String removes the trailing characters if they match the argument"
161
- fails "String#chomp! when passed a String returns nil if the argument does not match the trailing characters"
162
- fails "String#chomp! when passed a String returns nil when self is empty"
163
- fails "String#chomp! when passed a String taints the result if self is tainted"
164
- fails "String#chomp! when passed an Object calls #to_str to convert to a String"
165
- fails "String#chomp! when passed an Object raises a TypeError if #to_str does not return a String"
166
- fails "String#chomp! when passed nil returns nil when self is empty"
167
- fails "String#chomp! when passed nil returns nil"
168
- fails "String#chomp! when passed no argument modifies self"
169
- fails "String#chomp! when passed no argument removes one trailing carriage return"
170
- fails "String#chomp! when passed no argument removes one trailing carrige return, newline pair"
171
- fails "String#chomp! when passed no argument removes one trailing newline"
172
- fails "String#chomp! when passed no argument removes trailing characters that match $/ when it has been assigned a value"
173
- fails "String#chomp! when passed no argument returns nil if self is not modified"
174
- fails "String#chomp! when passed no argument returns nil when self is empty"
175
- fails "String#chomp! when passed no argument returns subclass instances when called on a subclass"
176
- fails "String#chomp! when passed no argument taints the result if self is tainted"
177
- fails "String#chop returns a new string when applied to an empty string"
178
- fails "String#chop taints result when self is tainted"
179
- fails "String#chop untrusts result when self is untrusted"
180
- fails "String#chop! does not remove more than the final carriage return, newline"
181
- fails "String#chop! raises a RuntimeError on a frozen instance that is modified"
182
- fails "String#chop! raises a RuntimeError on a frozen instance that would not be modified"
183
- fails "String#chop! removes the carrige return, newline if they are the only characters"
184
- fails "String#chop! removes the final carriage return"
185
- fails "String#chop! removes the final carriage return, newline"
186
- fails "String#chop! removes the final character"
187
- fails "String#chop! removes the final newline"
188
- fails "String#chop! returns nil when called on an empty string"
189
- fails "String#chop! returns self if modifications were made"
190
- fails "String#clone does not modify the original string when changing cloned string" # string can't be modified
191
- fails "String#concat concatenates the given argument to self and returns self"
192
- fails "String#concat converts the given argument to a String using to_str"
193
- fails "String#concat raises a RuntimeError when self is frozen"
194
- fails "String#concat raises a TypeError if the given argument can't be converted to a String"
195
- fails "String#concat returns a String when given a subclass instance"
196
- fails "String#concat returns an instance of same class when called on a subclass"
197
- fails "String#concat taints self if other is tainted"
198
- fails "String#concat untrusts self if other is untrusted"
199
- fails "String#concat when self and the argument are in different ASCII-compatible encodings raises Encoding::CompatibilityError if neither are ASCII-only"
200
- fails "String#concat when self and the argument are in different ASCII-compatible encodings uses self's encoding if both are ASCII-only"
201
- fails "String#concat when self and the argument are in different ASCII-compatible encodings uses self's encoding if the argument is ASCII-only"
202
- fails "String#concat when self and the argument are in different ASCII-compatible encodings uses the argument's encoding if self is ASCII-only"
203
- fails "String#concat when self is ASCII-8BIT and argument is US-ASCII uses ASCII-8BIT encoding"
204
- fails "String#concat when self is in an ASCII-incompatible encoding incompatible with the argument's encoding raises Encoding::CompatibilityError if neither are empty"
205
- fails "String#concat when self is in an ASCII-incompatible encoding incompatible with the argument's encoding uses self's encoding if both are empty"
206
- fails "String#concat when self is in an ASCII-incompatible encoding incompatible with the argument's encoding uses self's encoding if the argument is empty"
207
- fails "String#concat when self is in an ASCII-incompatible encoding incompatible with the argument's encoding uses the argument's encoding if self is empty"
208
- fails "String#concat when the argument is in an ASCII-incompatible encoding incompatible with self's encoding raises Encoding::CompatibilityError if neither are empty"
209
- fails "String#concat when the argument is in an ASCII-incompatible encoding incompatible with self's encoding uses self's encoding if both are empty"
210
- fails "String#concat when the argument is in an ASCII-incompatible encoding incompatible with self's encoding uses self's encoding if the argument is empty"
211
- fails "String#concat when the argument is in an ASCII-incompatible encoding incompatible with self's encoding uses the argument's encoding if self is empty"
212
- fails "String#concat with Integer concatencates the argument interpreted as a codepoint"
213
- fails "String#concat with Integer doesn't call to_int on its argument"
214
- fails "String#concat with Integer raises RangeError if the argument is an invalid codepoint for self's encoding"
215
- fails "String#concat with Integer raises RangeError if the argument is negative"
216
- fails "String#concat with Integer raises a RuntimeError when self is frozen"
217
- fails "String#concat with Integer returns a ASCII-8BIT string if self is US-ASCII and the argument is between 128-255 (inclusive)"
218
- fails "String#count returns the number of occurrences of a multi-byte character"
219
- fails "String#delete taints result when self is tainted"
220
- fails "String#delete! modifies self in place and returns self"
221
- fails "String#delete! raises a RuntimeError when self is frozen"
222
- fails "String#delete! returns nil if no modifications were made"
223
- fails "String#downcase is locale insensitive (only replaces A-Z)"
224
- fails "String#downcase taints result when self is tainted"
225
- fails "String#downcase! modifies self in place"
226
- fails "String#downcase! raises a RuntimeError when self is frozen"
227
- fails "String#downcase! returns nil if no modifications were made"
228
- fails "String#dump untrusts the result if self is untrusted"
229
- fails "String#dup does not modify the original string when changing dupped string"
230
- fails "String#each_char is unicode aware"
231
- fails "String#each_line does not care if the string is modified while substituting"
232
- fails "String#each_line raises a TypeError when the separator is a symbol"
233
- fails "String#each_line taints substrings that are passed to the block if self is tainted"
234
- fails "String#eql? considers encoding compatibility"
235
- fails "String#eql? considers encoding difference of incompatible string"
236
- fails "String#eql? ignores encoding difference of compatible string"
237
- fails "String#gsub with pattern and Hash ignores non-String keys"
238
- fails "String#gsub with pattern and Hash taints the result if a hash value is tainted"
239
- fails "String#gsub with pattern and Hash taints the result if the original string is tainted"
240
- fails "String#gsub with pattern and Hash untrusts the result if a hash value is untrusted"
241
- fails "String#gsub with pattern and Hash untrusts the result if the original string is untrusted"
242
- fails "String#gsub with pattern and block raises an ArgumentError if encoding is not valid"
243
- fails "String#gsub with pattern and block raises an Encoding::CompatibilityError if the encodings are not compatible"
244
- fails "String#gsub with pattern and block replaces the incompatible part properly even if the encodings are not compatible"
245
- fails "String#gsub with pattern and block untrusts the result if the original string or replacement is untrusted"
246
- fails "String#gsub with pattern and block uses the compatible encoding if they are compatible"
247
- fails "String#gsub with pattern and replacement doesn't freak out when replacing ^" #Only fails "Text\nFoo".gsub(/^/, ' ').should == " Text\n Foo"
248
- fails "String#gsub with pattern and replacement replaces \\k named backreferences with the regexp's corresponding capture"
249
- fails "String#gsub with pattern and replacement returns a copy of self with all occurrences of pattern replaced with replacement" #Only fails str.gsub(/\Ah\S+\s*/, "huh? ").should == "huh? homely world. hah!"
250
- fails "String#gsub with pattern and replacement supports \\G which matches at the beginning of the remaining (non-matched) string"
251
- fails "String#gsub with pattern and replacement taints the result if the original string or replacement is tainted"
252
- fails "String#gsub with pattern and replacement untrusts the result if the original string or replacement is untrusted"
253
- fails "String#gsub! with pattern and Hash coerces the hash values with #to_s"
254
- fails "String#gsub! with pattern and Hash doesn't interpolate special sequences like \\1 for the block's return value"
255
- fails "String#gsub! with pattern and Hash ignores keys that don't correspond to matches"
256
- fails "String#gsub! with pattern and Hash ignores non-String keys"
257
- fails "String#gsub! with pattern and Hash keeps tainted state"
258
- fails "String#gsub! with pattern and Hash keeps untrusted state"
259
- fails "String#gsub! with pattern and Hash replaces self with an empty string if the pattern matches but the hash specifies no replacements"
260
- fails "String#gsub! with pattern and Hash returns self with all occurrences of pattern replaced with the value of the corresponding hash key"
261
- fails "String#gsub! with pattern and Hash sets $~ to MatchData of last match and nil when there's none for access from outside"
262
- fails "String#gsub! with pattern and Hash taints self if a hash value is tainted"
263
- fails "String#gsub! with pattern and Hash untrusts self if a hash value is untrusted"
264
- fails "String#gsub! with pattern and Hash uses a key's value as many times as needed"
265
- fails "String#gsub! with pattern and Hash uses the hash's default value for missing keys"
266
- fails "String#gsub! with pattern and Hash uses the hash's value set from default_proc for missing keys"
267
- fails "String#gsub! with pattern and block modifies self in place and returns self"
268
- fails "String#gsub! with pattern and block raises a RuntimeError when self is frozen"
269
- fails "String#gsub! with pattern and block raises an ArgumentError if encoding is not valid"
270
- fails "String#gsub! with pattern and block raises an Encoding::CompatibilityError if the encodings are not compatible"
271
- fails "String#gsub! with pattern and block replaces the incompatible part properly even if the encodings are not compatible"
272
- fails "String#gsub! with pattern and block returns nil if no modifications were made"
273
- fails "String#gsub! with pattern and block taints self if block's result is tainted"
274
- fails "String#gsub! with pattern and block untrusts self if block's result is untrusted"
275
- fails "String#gsub! with pattern and block uses the compatible encoding if they are compatible"
276
- fails "String#gsub! with pattern and replacement modifies self in place and returns self"
277
- fails "String#gsub! with pattern and replacement modifies self in place with multi-byte characters and returns self"
278
- fails "String#gsub! with pattern and replacement raises a RuntimeError when self is frozen"
279
- fails "String#gsub! with pattern and replacement returns nil if no modifications were made"
280
- fails "String#gsub! with pattern and replacement taints self if replacement is tainted"
281
- fails "String#gsub! with pattern and replacement untrusts self if replacement is untrusted"
282
- fails "String#gsub! with pattern and without replacement and block returned Enumerator size should return nil"
283
- fails "String#gsub! with pattern and without replacement and block returns an enumerator"
284
- fails "String#index raises a TypeError if passed a Symbol"
285
- fails "String#index with Regexp supports \\G which matches at the given start offset"
286
- fails "String#initialize is a private method"
287
- fails "String#initialize with an argument carries over the encoding invalidity"
288
- fails "String#initialize with an argument does not trust self if other is trusted"
289
- fails "String#initialize with an argument does not untaint self if other is untainted"
290
- fails "String#initialize with an argument raises a RuntimeError on a frozen instance that is modified"
291
- fails "String#initialize with an argument raises a RuntimeError on a frozen instance when self-replacing"
292
- fails "String#initialize with an argument raises a TypeError if other can't be converted to string"
293
- fails "String#initialize with an argument replaces the content of self with other"
294
- fails "String#initialize with an argument replaces the encoding of self with that of other"
295
- fails "String#initialize with an argument returns self"
296
- fails "String#initialize with an argument taints self if other is tainted"
297
- fails "String#initialize with an argument tries to convert other to string using to_str"
298
- fails "String#initialize with an argument untrusts self if other is untrusted"
299
- fails "String#insert with index, other converts index to an integer using to_int"
300
- fails "String#insert with index, other converts other to a string using to_str"
301
- fails "String#insert with index, other inserts after the given character on an negative count"
302
- fails "String#insert with index, other inserts other before the character at the given index"
303
- fails "String#insert with index, other modifies self in place"
304
- fails "String#insert with index, other raises a RuntimeError if self is frozen"
305
- fails "String#insert with index, other raises a TypeError if other can't be converted to string"
306
- fails "String#insert with index, other raises an IndexError if the index is beyond string"
307
- fails "String#insert with index, other taints self if string to insert is tainted"
308
- fails "String#inspect returns a string with a NUL character replaced by \\x notation"
309
- fails "String#inspect returns a string with non-printing characters replaced by \\x notation"
310
- fails "String#inspect taints the result if self is tainted"
311
- fails "String#inspect untrusts the result if self is untrusted"
312
- fails "String#lines does not care if the string is modified while substituting"
313
- fails "String#lines raises a TypeError when the separator is a symbol"
314
- fails "String#lines taints substrings that are passed to the block if self is tainted"
315
- fails "String#ljust with length, padding taints result when self or padstr is tainted"
316
- fails "String#ljust with length, padding when padding is tainted and self is untainted returns a tainted string if and only if length is longer than self"
317
- fails "String#lstrip taints the result when self is tainted"
318
- fails "String#lstrip! modifies self in place and returns self"
319
- fails "String#lstrip! raises a RuntimeError on a frozen instance that is modified"
320
- fails "String#lstrip! raises a RuntimeError on a frozen instance that would not be modified"
321
- fails "String#lstrip! returns nil if no modifications were made"
322
- fails "String#match matches \\G at the start of the string"
323
- fails "String#next taints the result if self is tainted"
324
- fails "String#next! is equivalent to succ, but modifies self in place (still returns self)"
325
- fails "String#next! raises a RuntimeError if self is frozen"
326
- fails "String#prepend converts the given argument to a String using to_str"
327
- fails "String#prepend prepends the given argument to self and returns self"
328
- fails "String#prepend raises a RuntimeError when self if frozen"
329
- fails "String#prepend raises a TypeError if the given argument can't be converted to a String"
330
- fails "String#prepend taints self if other is tainted"
331
- fails "String#prepend works when given a subclass instance"
332
- fails "String#replace carries over the encoding invalidity"
333
- fails "String#replace does not trust self if other is trusted"
334
- fails "String#replace does not untaint self if other is untainted"
335
- fails "String#replace raises a RuntimeError on a frozen instance that is modified"
336
- fails "String#replace raises a RuntimeError on a frozen instance when self-replacing"
337
- fails "String#replace raises a TypeError if other can't be converted to string"
338
- fails "String#replace replaces the content of self with other"
339
- fails "String#replace replaces the encoding of self with that of other"
340
- fails "String#replace returns self"
341
- fails "String#replace taints self if other is tainted"
342
- fails "String#replace tries to convert other to string using to_str"
343
- fails "String#replace untrusts self if other is untrusted"
344
- fails "String#reverse taints the result if self is tainted"
345
- fails "String#reverse! raises a RuntimeError on a frozen instance that is modified"
346
- fails "String#reverse! raises a RuntimeError on a frozen instance that would not be modified"
347
- fails "String#reverse! reverses self in place and always returns self"
348
- fails "String#rindex with Regexp supports \\G which matches at the given start offset"
349
- fails "String#rjust with length, padding taints result when self or padstr is tainted"
350
- fails "String#rjust with length, padding when padding is tainted and self is untainted returns a tainted string if and only if length is longer than self"
351
- fails "String#rstrip taints the result when self is tainted"
352
- fails "String#rstrip! modifies self in place and returns self"
353
- fails "String#rstrip! modifies self removing trailing NULL bytes and whitespace"
354
- fails "String#rstrip! raises a RuntimeError on a frozen instance that is modified"
355
- fails "String#rstrip! raises a RuntimeError on a frozen instance that would not be modified"
356
- fails "String#rstrip! returns nil if no modifications were made"
357
- fails "String#scan supports \\G which matches the end of the previous match / string start for first match"
358
- fails "String#scan taints the results if the Regexp argument is tainted"
359
- fails "String#scan taints the results if the String argument is tainted"
360
- fails "String#scan taints the results when passed a Regexp argument if self is tainted"
361
- fails "String#scan taints the results when passed a String argument if self is tainted"
362
- fails "String#scan with pattern and block taints the results if the Regexp argument is tainted"
363
- fails "String#scan with pattern and block taints the results if the String argument is tainted"
364
- fails "String#scan with pattern and block taints the results when passed a Regexp argument if self is tainted"
365
- fails "String#scan with pattern and block taints the results when passed a String argument if self is tainted"
366
- fails "String#setbyte allows changing bytes in multi-byte characters"
367
- fails "String#setbyte calls #to_int to convert the index"
368
- fails "String#setbyte calls to_int to convert the value"
369
- fails "String#setbyte can invalidate a String's encoding"
370
- fails "String#setbyte changes the byte at the given index to the new byte"
371
- fails "String#setbyte does not modify the original string when using String.new"
372
- fails "String#setbyte modifies the receiver"
373
- fails "String#setbyte raises a RuntimeError if self is frozen"
374
- fails "String#setbyte raises a TypeError unless the second argument is an Integer"
375
- fails "String#setbyte raises an IndexError if the index is greater than the String bytesize"
376
- fails "String#setbyte raises an IndexError if the nexgative index is greater magnitude than the String bytesize"
377
- fails "String#setbyte regards a negative index as counting from the end of the String"
378
- fails "String#setbyte returns an Integer"
379
- fails "String#setbyte sets a byte at an index greater than String size"
380
- fails "String#slice with Range always taints resulting strings when self is tainted"
381
- fails "String#slice with Regexp, index always taints resulting strings when self or regexp is tainted"
382
- fails "String#slice with String taints resulting strings when other is tainted"
383
- fails "String#slice with Symbol raises TypeError"
384
- fails "String#slice with index, length always taints resulting strings when self is tainted"
385
- fails "String#slice! Range always taints resulting strings when self is tainted"
386
- fails "String#slice! Range calls to_int on range arguments"
387
- fails "String#slice! Range deletes and return the substring given by the offsets of the range"
388
- fails "String#slice! Range raises a RuntimeError on a frozen instance that is modified"
389
- fails "String#slice! Range raises a RuntimeError on a frozen instance that would not be modified"
390
- fails "String#slice! Range returns nil if the given range is out of self"
391
- fails "String#slice! Range returns subclass instances"
392
- fails "String#slice! Range works with Range subclasses"
393
- fails "String#slice! with Regexp always taints resulting strings when self or regexp is tainted"
394
- fails "String#slice! with Regexp deletes and returns the first match from self"
395
- fails "String#slice! with Regexp doesn't taint self when regexp is tainted"
396
- fails "String#slice! with Regexp raises a RuntimeError on a frozen instance that is modified"
397
- fails "String#slice! with Regexp raises a RuntimeError on a frozen instance that would not be modified"
398
- fails "String#slice! with Regexp returns nil if there was no match"
399
- fails "String#slice! with Regexp returns subclass instances"
400
- fails "String#slice! with Regexp sets $~ to MatchData when there is a match and nil when there's none"
401
- fails "String#slice! with Regexp, index accepts a Float for capture index"
402
- fails "String#slice! with Regexp, index always taints resulting strings when self or regexp is tainted"
403
- fails "String#slice! with Regexp, index calls #to_int to convert an Object to capture index"
404
- fails "String#slice! with Regexp, index deletes and returns the capture for idx from self"
405
- fails "String#slice! with Regexp, index doesn't taint self when regexp is tainted"
406
- fails "String#slice! with Regexp, index raises a RuntimeError if self is frozen"
407
- fails "String#slice! with Regexp, index returns nil if there is no capture for idx"
408
- fails "String#slice! with Regexp, index returns nil if there was no match"
409
- fails "String#slice! with Regexp, index returns subclass instances"
410
- fails "String#slice! with Regexp, index sets $~ to MatchData when there is a match and nil when there's none"
411
- fails "String#slice! with String doesn't call to_str on its argument"
412
- fails "String#slice! with String doesn't set $~"
413
- fails "String#slice! with String raises a RuntimeError if self is frozen"
414
- fails "String#slice! with String removes and returns the first occurrence of other_str from self"
415
- fails "String#slice! with String returns a subclass instance when given a subclass instance"
416
- fails "String#slice! with String returns nil if self does not contain other"
417
- fails "String#slice! with String taints resulting strings when other is tainted"
418
- fails "String#slice! with index calls to_int on index"
419
- fails "String#slice! with index deletes and return the char at the given position"
420
- fails "String#slice! with index raises a RuntimeError if self is frozen"
421
- fails "String#slice! with index returns nil if idx is outside of self"
422
- fails "String#slice! with index, length always taints resulting strings when self is tainted"
423
- fails "String#slice! with index, length calls to_int on idx and length"
424
- fails "String#slice! with index, length deletes and returns the substring at idx and the given length"
425
- fails "String#slice! with index, length raises a RuntimeError if self is frozen"
426
- fails "String#slice! with index, length returns nil if the length is negative"
427
- fails "String#slice! with index, length returns subclass instances"
428
- fails "String#split with Regexp doesn't taints the resulting strings if the Regexp is tainted"
429
- fails "String#split with Regexp respects the encoding of the regexp when splitting between characters"
430
- fails "String#split with Regexp retains the encoding of the source string"
431
- fails "String#split with Regexp returns an ArgumentError if an invalid UTF-8 string is supplied"
432
- fails "String#split with Regexp splits a string on each character for a multibyte encoding and empty split"
433
- fails "String#split with Regexp taints an empty string if self is tainted"
434
- fails "String#split with Regexp taints the resulting strings if self is tainted"
435
- fails "String#split with String taints the resulting strings if self is tainted"
436
- fails "String#squeeze taints the result when self is tainted"
437
- fails "String#squeeze! modifies self in place and returns self"
438
- fails "String#squeeze! raises a RuntimeError when self is frozen"
439
- fails "String#squeeze! raises an ArgumentError when the parameter is out of sequence"
440
- fails "String#squeeze! returns nil if no modifications were made"
441
- fails "String#strip taints the result when self is tainted"
442
- fails "String#strip! modifies self in place and returns self"
443
- fails "String#strip! modifies self removing trailing NULL bytes and whitespace"
444
- fails "String#strip! raises a RuntimeError on a frozen instance that is modified"
445
- fails "String#strip! raises a RuntimeError on a frozen instance that would not be modified"
446
- fails "String#strip! returns nil if no modifications where made"
447
- fails "String#sub with pattern and Hash ignores non-String keys"
448
- fails "String#sub with pattern and Hash taints the result if a hash value is tainted"
449
- fails "String#sub with pattern and Hash taints the result if the original string is tainted"
450
- fails "String#sub with pattern and Hash untrusts the result if a hash value is untrusted"
451
- fails "String#sub with pattern and Hash untrusts the result if the original string is untrusted"
452
- fails "String#sub with pattern and block doesn't raise a RuntimeError if the string is modified while substituting"
453
- fails "String#sub with pattern and block taints the result if the original string or replacement is tainted"
454
- fails "String#sub with pattern, replacement raises a TypeError when pattern is a Symbol"
455
- fails "String#sub with pattern, replacement supports \\G which matches at the beginning of the string"
456
- fails "String#sub with pattern, replacement taints the result if the original string or replacement is tainted"
457
- fails "String#sub! with pattern and Hash coerces the hash values with #to_s"
458
- fails "String#sub! with pattern and Hash doesn't interpolate special sequences like \\1 for the block's return value"
459
- fails "String#sub! with pattern and Hash ignores non-String keys"
460
- fails "String#sub! with pattern and Hash keeps tainted state"
461
- fails "String#sub! with pattern and Hash keeps untrusted state"
462
- fails "String#sub! with pattern and Hash removes keys that don't correspond to matches"
463
- fails "String#sub! with pattern and Hash returns self with the first occurrence of pattern replaced with the value of the corresponding hash key"
464
- fails "String#sub! with pattern and Hash sets $~ to MatchData of first match and nil when there's none for access from outside"
465
- fails "String#sub! with pattern and Hash taints self if a hash value is tainted"
466
- fails "String#sub! with pattern and Hash untrusts self if a hash value is untrusted"
467
- fails "String#sub! with pattern and Hash uses a key's value only a single time"
468
- fails "String#sub! with pattern and Hash uses the hash's default value for missing keys"
469
- fails "String#sub! with pattern and Hash uses the hash's value set from default_proc for missing keys"
470
- fails "String#sub! with pattern and block modifies self in place and returns self"
471
- fails "String#sub! with pattern and block raises a RuntimeError if the string is modified while substituting"
472
- fails "String#sub! with pattern and block raises a RuntimeError when self is frozen"
473
- fails "String#sub! with pattern and block returns nil if no modifications were made"
474
- fails "String#sub! with pattern and block sets $~ for access from the block"
475
- fails "String#sub! with pattern and block taints self if block's result is tainted"
476
- fails "String#sub! with pattern and without replacement and block raises a ArgumentError"
477
- fails "String#sub! with pattern, replacement modifies self in place and returns self"
478
- fails "String#sub! with pattern, replacement raises a RuntimeError when self is frozen"
479
- fails "String#sub! with pattern, replacement returns nil if no modifications were made"
480
- fails "String#sub! with pattern, replacement taints self if replacement is tainted"
481
- fails "String#succ taints the result if self is tainted"
482
- fails "String#succ! is equivalent to succ, but modifies self in place (still returns self)"
483
- fails "String#succ! raises a RuntimeError if self is frozen"
484
- fails "String#swapcase taints resulting string when self is tainted"
485
- fails "String#swapcase! modifies self in place"
486
- fails "String#swapcase! raises a RuntimeError when self is frozen"
487
- fails "String#swapcase! returns nil if no modifications were made"
488
- fails "String#to_i with bases parses a String in base 10"
489
- fails "String#to_i with bases parses a String in base 11"
490
- fails "String#to_i with bases parses a String in base 12"
491
- fails "String#to_i with bases parses a String in base 13"
492
- fails "String#to_i with bases parses a String in base 14"
493
- fails "String#to_i with bases parses a String in base 15"
494
- fails "String#to_i with bases parses a String in base 16"
495
- fails "String#to_i with bases parses a String in base 17"
496
- fails "String#to_i with bases parses a String in base 18"
497
- fails "String#to_i with bases parses a String in base 19"
498
- fails "String#to_i with bases parses a String in base 2"
499
- fails "String#to_i with bases parses a String in base 20"
500
- fails "String#to_i with bases parses a String in base 21"
501
- fails "String#to_i with bases parses a String in base 22"
502
- fails "String#to_i with bases parses a String in base 23"
503
- fails "String#to_i with bases parses a String in base 24"
504
- fails "String#to_i with bases parses a String in base 25"
505
- fails "String#to_i with bases parses a String in base 26"
506
- fails "String#to_i with bases parses a String in base 27"
507
- fails "String#to_i with bases parses a String in base 28"
508
- fails "String#to_i with bases parses a String in base 29"
509
- fails "String#to_i with bases parses a String in base 3"
510
- fails "String#to_i with bases parses a String in base 30"
511
- fails "String#to_i with bases parses a String in base 31"
512
- fails "String#to_i with bases parses a String in base 32"
513
- fails "String#to_i with bases parses a String in base 33"
514
- fails "String#to_i with bases parses a String in base 34"
515
- fails "String#to_i with bases parses a String in base 35"
516
- fails "String#to_i with bases parses a String in base 36"
517
- fails "String#to_i with bases parses a String in base 4"
518
- fails "String#to_i with bases parses a String in base 5"
519
- fails "String#to_i with bases parses a String in base 6"
520
- fails "String#to_i with bases parses a String in base 7"
521
- fails "String#to_i with bases parses a String in base 8"
522
- fails "String#to_i with bases parses a String in base 9"
523
- fails "String#to_s taints the result when self is tainted"
524
- fails "String#to_str taints the result when self is tainted"
525
- fails "String#tr taints the result when self is tainted"
526
- fails "String#tr! does not modify self if from_str is empty"
527
- fails "String#tr! modifies self in place"
528
- fails "String#tr! raises a RuntimeError if self is frozen"
529
- fails "String#tr! returns nil if no modification was made"
530
- fails "String#tr_s taints the result when self is tainted"
531
- fails "String#tr_s! does not modify self if from_str is empty"
532
- fails "String#tr_s! modifies self in place"
533
- fails "String#tr_s! raises a RuntimeError if self is frozen"
534
- fails "String#tr_s! returns nil if no modification was made"
535
- fails "String#upcase is locale insensitive (only replaces a-z)"
536
- fails "String#upcase taints result when self is tainted"
537
- fails "String#upcase! modifies self in place"
538
- fails "String#upcase! raises a RuntimeError when self is frozen"
539
- fails "String#upcase! returns nil if no modifications were made"
540
- fails "String#upto does not work with symbols"
541
- fails "String.allocate returns a binary String"
542
- fails "String.allocate returns a fully-formed String"
543
- fails "String.new returns a binary String"
544
- fails "String.new returns a fully-formed String"
545
- fails "String.new returns a new string given a string argument"
546
- end