opal 1.0.5 → 1.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (394) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +14 -12
  3. data/.gitattributes +1 -1
  4. data/.github/workflows/build.yml +15 -10
  5. data/.jshintrc +1 -1
  6. data/.overcommit.yml +35 -0
  7. data/.rubocop.yml +44 -7
  8. data/{.rubocop_todo.yml → .rubocop/todo.yml} +4 -5
  9. data/CHANGELOG.md +87 -2
  10. data/Gemfile +1 -2
  11. data/HACKING.md +2 -9
  12. data/README.md +20 -17
  13. data/UNRELEASED.md +108 -0
  14. data/benchmark-ips/bm_array_pop_1.rb +8 -0
  15. data/benchmark-ips/bm_array_shift.rb +7 -0
  16. data/benchmark-ips/class_shovel_vs_singleton_class.rb +16 -0
  17. data/bin/build-browser-source-map-support +5 -0
  18. data/bin/format-filters +54 -0
  19. data/bin/remove-filters +39 -0
  20. data/docs/roda-sprockets.md +86 -0
  21. data/docs/sinatra.md +5 -12
  22. data/examples/rack/Gemfile +1 -0
  23. data/examples/rack/app/application.rb +3 -0
  24. data/examples/rack/config.ru +5 -4
  25. data/exe/opal-repl +2 -83
  26. data/lib/opal/ast/builder.rb +1 -1
  27. data/lib/opal/builder.rb +2 -10
  28. data/lib/opal/builder_processors.rb +1 -1
  29. data/lib/opal/cli_runners.rb +27 -37
  30. data/lib/opal/cli_runners/applescript.rb +5 -44
  31. data/lib/opal/cli_runners/chrome.js +7 -35
  32. data/lib/opal/cli_runners/chrome.rb +75 -17
  33. data/lib/opal/cli_runners/compiler.rb +17 -0
  34. data/lib/opal/cli_runners/nashorn.rb +9 -43
  35. data/lib/opal/cli_runners/nodejs.rb +18 -47
  36. data/lib/opal/cli_runners/server.rb +18 -6
  37. data/lib/opal/cli_runners/source-map-support-browser.js +6445 -0
  38. data/lib/opal/cli_runners/source-map-support.js +639 -0
  39. data/lib/opal/cli_runners/system_runner.rb +45 -0
  40. data/lib/opal/compiler.rb +57 -29
  41. data/lib/opal/config.rb +0 -5
  42. data/lib/opal/erb.rb +1 -1
  43. data/lib/opal/magic_comments.rb +34 -0
  44. data/lib/opal/nodes/args/arity_check.rb +2 -1
  45. data/lib/opal/nodes/base.rb +1 -1
  46. data/lib/opal/nodes/call.rb +1 -4
  47. data/lib/opal/nodes/def.rb +2 -0
  48. data/lib/opal/nodes/iter.rb +1 -1
  49. data/lib/opal/nodes/literal.rb +19 -14
  50. data/lib/opal/nodes/logic.rb +5 -80
  51. data/lib/opal/nodes/masgn.rb +2 -0
  52. data/lib/opal/nodes/rescue.rb +1 -1
  53. data/lib/opal/nodes/super.rb +24 -10
  54. data/lib/opal/nodes/top.rb +5 -4
  55. data/lib/opal/parser/with_c_lexer.rb +2 -1
  56. data/lib/opal/parser/with_ruby_lexer.rb +1 -1
  57. data/lib/opal/path_reader.rb +2 -2
  58. data/lib/opal/paths.rb +8 -5
  59. data/lib/opal/repl.rb +103 -0
  60. data/lib/opal/rewriter.rb +4 -0
  61. data/lib/opal/rewriters/for_rewriter.rb +1 -1
  62. data/lib/opal/rewriters/js_reserved_words.rb +7 -7
  63. data/lib/opal/rewriters/numblocks.rb +31 -0
  64. data/lib/opal/rewriters/returnable_logic.rb +33 -0
  65. data/lib/opal/version.rb +1 -1
  66. data/opal.gemspec +25 -25
  67. data/opal/corelib/array.rb +160 -118
  68. data/opal/corelib/array/pack.rb +5 -3
  69. data/opal/corelib/basic_object.rb +4 -4
  70. data/opal/corelib/class.rb +2 -1
  71. data/opal/corelib/comparable.rb +49 -31
  72. data/opal/corelib/constants.rb +5 -5
  73. data/opal/corelib/enumerable.rb +108 -46
  74. data/opal/corelib/enumerator.rb +27 -12
  75. data/opal/corelib/file.rb +3 -1
  76. data/opal/corelib/hash.rb +6 -1
  77. data/opal/corelib/helpers.rb +8 -28
  78. data/opal/corelib/io.rb +12 -7
  79. data/opal/corelib/kernel.rb +45 -14
  80. data/opal/corelib/kernel/format.rb +3 -1
  81. data/opal/corelib/math.rb +8 -6
  82. data/opal/corelib/method.rb +8 -0
  83. data/opal/corelib/module.rb +17 -2
  84. data/opal/corelib/number.rb +3 -12
  85. data/opal/corelib/proc.rb +16 -0
  86. data/opal/corelib/random/mersenne_twister.rb +147 -0
  87. data/opal/corelib/range.rb +3 -13
  88. data/opal/corelib/regexp.rb +10 -6
  89. data/opal/corelib/runtime.js +208 -81
  90. data/opal/corelib/string.rb +55 -49
  91. data/opal/corelib/string/encoding.rb +109 -32
  92. data/opal/corelib/string/unpack.rb +2 -17
  93. data/opal/corelib/struct.rb +14 -1
  94. data/opal/corelib/time.rb +4 -0
  95. data/opal/opal.rb +1 -1
  96. data/opal/opal/mini.rb +1 -1
  97. data/package.json +1 -0
  98. data/spec/README.md +10 -0
  99. data/spec/filters/bugs/array.rb +76 -0
  100. data/spec/filters/bugs/base64.rb +10 -0
  101. data/spec/filters/bugs/basicobject.rb +12 -0
  102. data/spec/filters/bugs/bigdecimal.rb +248 -0
  103. data/spec/filters/bugs/class.rb +12 -0
  104. data/spec/filters/bugs/complex.rb +7 -0
  105. data/spec/filters/bugs/date.rb +104 -0
  106. data/spec/filters/bugs/encoding.rb +259 -0
  107. data/spec/filters/bugs/enumerable.rb +26 -0
  108. data/spec/filters/bugs/enumerator.rb +48 -0
  109. data/spec/filters/bugs/exception.rb +120 -0
  110. data/spec/filters/bugs/file.rb +48 -0
  111. data/spec/filters/bugs/float.rb +74 -0
  112. data/spec/filters/bugs/hash.rb +60 -0
  113. data/spec/filters/bugs/integer.rb +78 -0
  114. data/spec/filters/bugs/io.rb +9 -0
  115. data/spec/filters/bugs/kernel.rb +401 -0
  116. data/spec/filters/bugs/language.rb +451 -0
  117. data/spec/filters/bugs/marshal.rb +50 -0
  118. data/spec/filters/bugs/math.rb +4 -0
  119. data/spec/filters/bugs/method.rb +79 -0
  120. data/spec/filters/bugs/module.rb +281 -0
  121. data/spec/filters/bugs/nilclass.rb +4 -0
  122. data/spec/filters/bugs/numeric.rb +27 -0
  123. data/spec/filters/bugs/openstruct.rb +8 -0
  124. data/spec/filters/bugs/pack_unpack.rb +138 -0
  125. data/spec/filters/bugs/pathname.rb +9 -0
  126. data/spec/filters/bugs/proc.rb +80 -0
  127. data/spec/filters/bugs/random.rb +20 -0
  128. data/spec/filters/bugs/range.rb +139 -0
  129. data/spec/filters/bugs/rational.rb +12 -0
  130. data/spec/filters/bugs/regexp.rb +91 -0
  131. data/spec/filters/bugs/set.rb +51 -0
  132. data/spec/filters/bugs/singleton.rb +7 -0
  133. data/spec/filters/bugs/string.rb +341 -0
  134. data/spec/filters/bugs/stringscanner.rb +78 -0
  135. data/spec/filters/bugs/struct.rb +26 -0
  136. data/spec/filters/bugs/symbol.rb +7 -0
  137. data/spec/filters/bugs/time.rb +109 -0
  138. data/spec/filters/bugs/unboundmethod.rb +33 -0
  139. data/spec/filters/bugs/warnings.rb +30 -0
  140. data/spec/filters/unsupported/array.rb +168 -0
  141. data/spec/filters/unsupported/basicobject.rb +15 -0
  142. data/spec/filters/unsupported/bignum.rb +55 -0
  143. data/spec/filters/unsupported/class.rb +5 -0
  144. data/spec/filters/unsupported/delegator.rb +6 -0
  145. data/spec/filters/unsupported/enumerable.rb +12 -0
  146. data/spec/filters/unsupported/enumerator.rb +14 -0
  147. data/spec/filters/unsupported/file.rb +4 -0
  148. data/spec/filters/unsupported/fixnum.rb +15 -0
  149. data/spec/filters/unsupported/float.rb +47 -0
  150. data/spec/filters/unsupported/freeze.rb +259 -0
  151. data/spec/filters/unsupported/hash.rb +44 -0
  152. data/spec/filters/unsupported/integer.rb +101 -0
  153. data/spec/filters/unsupported/kernel.rb +35 -0
  154. data/spec/filters/unsupported/language.rb +25 -0
  155. data/spec/filters/unsupported/marshal.rb +44 -0
  156. data/spec/filters/unsupported/matchdata.rb +63 -0
  157. data/spec/filters/unsupported/math.rb +4 -0
  158. data/spec/filters/unsupported/pathname.rb +4 -0
  159. data/spec/filters/unsupported/privacy.rb +287 -0
  160. data/spec/filters/unsupported/proc.rb +4 -0
  161. data/spec/filters/unsupported/random.rb +5 -0
  162. data/spec/filters/unsupported/range.rb +8 -0
  163. data/spec/filters/unsupported/regexp.rb +70 -0
  164. data/spec/filters/unsupported/set.rb +5 -0
  165. data/spec/filters/unsupported/singleton.rb +7 -0
  166. data/spec/filters/unsupported/string.rb +687 -0
  167. data/spec/filters/unsupported/struct.rb +7 -0
  168. data/spec/filters/unsupported/symbol.rb +21 -0
  169. data/spec/filters/unsupported/taint.rb +162 -0
  170. data/spec/filters/unsupported/thread.rb +10 -0
  171. data/spec/filters/unsupported/time.rb +204 -0
  172. data/spec/filters/unsupported/usage_of_files.rb +262 -0
  173. data/spec/lib/builder_processors_spec.rb +44 -0
  174. data/spec/lib/builder_spec.rb +133 -0
  175. data/spec/lib/cli_runners/server_spec.rb +25 -0
  176. data/spec/lib/cli_runners_spec.rb +16 -0
  177. data/spec/lib/cli_spec.rb +256 -0
  178. data/spec/lib/compiler_spec.rb +693 -0
  179. data/spec/lib/config_spec.rb +112 -0
  180. data/spec/lib/dependency_resolver_spec.rb +43 -0
  181. data/spec/lib/deprecations_spec.rb +17 -0
  182. data/spec/lib/fixtures/complex_sprockets.js.rb.erb +4 -0
  183. data/spec/lib/fixtures/file_with_directives.js +2 -0
  184. data/spec/lib/fixtures/jst_file.js.jst +1 -0
  185. data/spec/lib/fixtures/no_requires.rb +1 -0
  186. data/spec/lib/fixtures/opal_file.rb +2 -0
  187. data/spec/lib/fixtures/require_tree_test.rb +3 -0
  188. data/spec/lib/fixtures/required_file.js +1 -0
  189. data/spec/lib/fixtures/required_tree_test/required_file1.rb +1 -0
  190. data/spec/lib/fixtures/required_tree_test/required_file2.rb +1 -0
  191. data/spec/lib/fixtures/requires.rb +7 -0
  192. data/spec/lib/fixtures/source_location_test.rb +7 -0
  193. data/spec/lib/fixtures/source_map.rb +1 -0
  194. data/spec/lib/fixtures/source_map/subfolder/other_file.rb +1 -0
  195. data/spec/lib/fixtures/sprockets_file.js.rb +3 -0
  196. data/spec/lib/fixtures/sprockets_require_tree_test.rb +3 -0
  197. data/spec/lib/path_reader_spec.rb +47 -0
  198. data/spec/lib/paths_spec.rb +18 -0
  199. data/spec/lib/repl_spec.rb +28 -0
  200. data/spec/lib/rewriters/base_spec.rb +68 -0
  201. data/spec/lib/rewriters/binary_operator_assignment_spec.rb +153 -0
  202. data/spec/lib/rewriters/block_to_iter_spec.rb +28 -0
  203. data/spec/lib/rewriters/dot_js_syntax_spec.rb +108 -0
  204. data/spec/lib/rewriters/explicit_writer_return_spec.rb +186 -0
  205. data/spec/lib/rewriters/for_rewriter_spec.rb +92 -0
  206. data/spec/lib/rewriters/hashes/key_duplicates_rewriter_spec.rb +47 -0
  207. data/spec/lib/rewriters/js_reserved_words_spec.rb +119 -0
  208. data/spec/lib/rewriters/logical_operator_assignment_spec.rb +202 -0
  209. data/spec/lib/rewriters/opal_engine_check_spec.rb +84 -0
  210. data/spec/lib/rewriters/returnable_logic_spec.rb +52 -0
  211. data/spec/lib/rewriters/rubyspec/filters_rewriter_spec.rb +59 -0
  212. data/spec/lib/simple_server_spec.rb +56 -0
  213. data/spec/lib/source_map/file_spec.rb +67 -0
  214. data/spec/lib/source_map/index_spec.rb +80 -0
  215. data/spec/lib/spec_helper.rb +105 -0
  216. data/spec/mspec-opal/formatters.rb +197 -0
  217. data/spec/mspec-opal/runner.rb +172 -0
  218. data/spec/opal/compiler/irb_spec.rb +44 -0
  219. data/spec/opal/compiler/unicode_spec.rb +10 -0
  220. data/spec/opal/core/array/dup_spec.rb +23 -0
  221. data/spec/opal/core/array/intersection_spec.rb +38 -0
  222. data/spec/opal/core/array/minus_spec.rb +38 -0
  223. data/spec/opal/core/array/union_spec.rb +38 -0
  224. data/spec/opal/core/array/uniq_spec.rb +49 -0
  225. data/spec/opal/core/class/inherited_spec.rb +18 -0
  226. data/spec/opal/core/enumerable/all_break_spec.rb +5 -0
  227. data/spec/opal/core/enumerable/any_break_spec.rb +5 -0
  228. data/spec/opal/core/enumerable/collect_break_spec.rb +13 -0
  229. data/spec/opal/core/enumerable/count_break_spec.rb +5 -0
  230. data/spec/opal/core/enumerable/detect_break_spec.rb +5 -0
  231. data/spec/opal/core/enumerable/drop_while_break_spec.rb +5 -0
  232. data/spec/opal/core/enumerable/each_slice_break_spec.rb +6 -0
  233. data/spec/opal/core/enumerable/each_with_index_break_spec.rb +5 -0
  234. data/spec/opal/core/enumerable/each_with_object_break_spec.rb +5 -0
  235. data/spec/opal/core/enumerable/find_all_break_spec.rb +5 -0
  236. data/spec/opal/core/enumerable/find_index_break_spec.rb +5 -0
  237. data/spec/opal/core/enumerable/grep_break_spec.rb +5 -0
  238. data/spec/opal/core/enumerable/max_break_spec.rb +5 -0
  239. data/spec/opal/core/enumerable/max_by_break_spec.rb +5 -0
  240. data/spec/opal/core/enumerable/min_break_spec.rb +5 -0
  241. data/spec/opal/core/enumerable/min_by_break_spec.rb +5 -0
  242. data/spec/opal/core/enumerable/none_break_spec.rb +5 -0
  243. data/spec/opal/core/enumerable/one_break_spec.rb +5 -0
  244. data/spec/opal/core/enumerable/reduce_break_spec.rb +5 -0
  245. data/spec/opal/core/enumerable/take_while_break_spec.rb +5 -0
  246. data/spec/opal/core/enumerator/with_index_spec.rb +6 -0
  247. data/spec/opal/core/exception_spec.rb +8 -0
  248. data/spec/opal/core/fixtures/require_tree_files/file 1.rb +1 -0
  249. data/spec/opal/core/fixtures/require_tree_files/file 2.rb +1 -0
  250. data/spec/opal/core/fixtures/require_tree_files/file 3.rb +1 -0
  251. data/spec/opal/core/fixtures/require_tree_files/file 4.rb +1 -0
  252. data/spec/opal/core/fixtures/require_tree_files/file 5.rb +1 -0
  253. data/spec/opal/core/fixtures/require_tree_files/nested/nested 1.rb +1 -0
  254. data/spec/opal/core/fixtures/require_tree_files/nested/nested 2.rb +1 -0
  255. data/spec/opal/core/fixtures/require_tree_files/other/other 1.rb +1 -0
  256. data/spec/opal/core/fixtures/require_tree_with_dot/file 1.rb +1 -0
  257. data/spec/opal/core/fixtures/require_tree_with_dot/file 2.rb +1 -0
  258. data/spec/opal/core/fixtures/require_tree_with_dot/file 3.rb +1 -0
  259. data/spec/opal/core/fixtures/require_tree_with_dot/index.rb +3 -0
  260. data/spec/opal/core/hash/internals_spec.rb +339 -0
  261. data/spec/opal/core/helpers_spec.rb +14 -0
  262. data/spec/opal/core/iterable_props_spec.rb +53 -0
  263. data/spec/opal/core/kernel/at_exit_spec.rb +70 -0
  264. data/spec/opal/core/kernel/freeze_spec.rb +15 -0
  265. data/spec/opal/core/kernel/instance_variables_spec.rb +110 -0
  266. data/spec/opal/core/kernel/methods_spec.rb +25 -0
  267. data/spec/opal/core/kernel/public_methods_spec.rb +25 -0
  268. data/spec/opal/core/kernel/require_tree_spec.rb +18 -0
  269. data/spec/opal/core/kernel/respond_to_spec.rb +15 -0
  270. data/spec/opal/core/language/DATA/characters_support_spec.rb +9 -0
  271. data/spec/opal/core/language/DATA/empty___END___spec.rb +7 -0
  272. data/spec/opal/core/language/DATA/multiple___END___spec.rb +10 -0
  273. data/spec/opal/core/language/arguments/mlhs_arg_spec.rb +18 -0
  274. data/spec/opal/core/language/keyword_arguments_spec.rb +9 -0
  275. data/spec/opal/core/language/numblocks_spec.rb +16 -0
  276. data/spec/opal/core/language/safe_navigator_spec.rb +7 -0
  277. data/spec/opal/core/language/while_spec.rb +31 -0
  278. data/spec/opal/core/language_spec.rb +29 -0
  279. data/spec/opal/core/marshal/dump_spec.rb +81 -0
  280. data/spec/opal/core/marshal/load_spec.rb +13 -0
  281. data/spec/opal/core/module_spec.rb +27 -0
  282. data/spec/opal/core/object_id_spec.rb +56 -0
  283. data/spec/opal/core/regexp/interpolation_spec.rb +40 -0
  284. data/spec/opal/core/regexp/match_spec.rb +78 -0
  285. data/spec/opal/core/runtime/bridged_classes_spec.rb +123 -0
  286. data/spec/opal/core/runtime/constants_spec.rb +16 -0
  287. data/spec/opal/core/runtime/eval_spec.rb +5 -0
  288. data/spec/opal/core/runtime/exit_spec.rb +29 -0
  289. data/spec/opal/core/runtime/is_a_spec.rb +48 -0
  290. data/spec/opal/core/runtime/loaded_spec.rb +20 -0
  291. data/spec/opal/core/runtime/main_methods_spec.rb +39 -0
  292. data/spec/opal/core/runtime/method_missing_spec.rb +68 -0
  293. data/spec/opal/core/runtime/rescue_spec.rb +37 -0
  294. data/spec/opal/core/runtime/string_spec.rb +25 -0
  295. data/spec/opal/core/runtime/truthy_spec.rb +61 -0
  296. data/spec/opal/core/runtime_spec.rb +58 -0
  297. data/spec/opal/core/string/each_byte_spec.rb +19 -0
  298. data/spec/opal/core/string/gsub_spec.rb +35 -0
  299. data/spec/opal/core/string/to_sym_spec.rb +9 -0
  300. data/spec/opal/core/string_spec.rb +28 -0
  301. data/spec/opal/core/struct/dup_spec.rb +11 -0
  302. data/spec/opal/core/time_spec.rb +68 -0
  303. data/spec/opal/stdlib/erb/erb_spec.rb +30 -0
  304. data/spec/opal/stdlib/erb/inline_block.opalerb +3 -0
  305. data/spec/opal/stdlib/erb/quoted.opalerb +1 -0
  306. data/spec/opal/stdlib/erb/simple.opalerb +1 -0
  307. data/spec/opal/stdlib/js_spec.rb +72 -0
  308. data/spec/opal/stdlib/json/ext_spec.rb +55 -0
  309. data/spec/opal/stdlib/json/parse_spec.rb +37 -0
  310. data/spec/opal/stdlib/logger/logger_spec.rb +308 -0
  311. data/spec/opal/stdlib/native/alias_native_spec.rb +27 -0
  312. data/spec/opal/stdlib/native/array_spec.rb +11 -0
  313. data/spec/opal/stdlib/native/date_spec.rb +12 -0
  314. data/spec/opal/stdlib/native/deprecated_include_spec.rb +8 -0
  315. data/spec/opal/stdlib/native/each_spec.rb +13 -0
  316. data/spec/opal/stdlib/native/element_reference_spec.rb +16 -0
  317. data/spec/opal/stdlib/native/exposure_spec.rb +33 -0
  318. data/spec/opal/stdlib/native/ext_spec.rb +19 -0
  319. data/spec/opal/stdlib/native/hash_spec.rb +67 -0
  320. data/spec/opal/stdlib/native/initialize_spec.rb +17 -0
  321. data/spec/opal/stdlib/native/method_missing_spec.rb +51 -0
  322. data/spec/opal/stdlib/native/native_alias_spec.rb +26 -0
  323. data/spec/opal/stdlib/native/native_class_spec.rb +18 -0
  324. data/spec/opal/stdlib/native/native_module_spec.rb +13 -0
  325. data/spec/opal/stdlib/native/native_reader_spec.rb +22 -0
  326. data/spec/opal/stdlib/native/native_writer_spec.rb +30 -0
  327. data/spec/opal/stdlib/native/new_spec.rb +92 -0
  328. data/spec/opal/stdlib/native/struct_spec.rb +12 -0
  329. data/spec/opal/stdlib/pp_spec.rb +5 -0
  330. data/spec/opal/stdlib/promise/always_spec.rb +49 -0
  331. data/spec/opal/stdlib/promise/error_spec.rb +15 -0
  332. data/spec/opal/stdlib/promise/rescue_spec.rb +53 -0
  333. data/spec/opal/stdlib/promise/then_spec.rb +79 -0
  334. data/spec/opal/stdlib/promise/trace_spec.rb +51 -0
  335. data/spec/opal/stdlib/promise/value_spec.rb +15 -0
  336. data/spec/opal/stdlib/promise/when_spec.rb +34 -0
  337. data/spec/opal/stdlib/source_map_spec.rb +8 -0
  338. data/spec/opal/stdlib/strscan/scan_spec.rb +11 -0
  339. data/spec/opal/stdlib/template/paths_spec.rb +10 -0
  340. data/spec/opal/stdlib/thread/mutex_spec.rb +40 -0
  341. data/spec/opal/stdlib/thread/thread_queue_spec.rb +32 -0
  342. data/spec/opal/stdlib/thread/thread_spec.rb +60 -0
  343. data/spec/ruby_specs +183 -0
  344. data/spec/spec_helper.rb +31 -0
  345. data/spec/support/guard_platform.rb +4 -0
  346. data/spec/support/match_helpers.rb +57 -0
  347. data/spec/support/mspec_rspec_adapter.rb +33 -0
  348. data/spec/support/rewriters_helper.rb +54 -0
  349. data/spec/support/source_map_helper.rb +190 -0
  350. data/stdlib/base64.rb +2 -2
  351. data/stdlib/bigdecimal.rb +15 -3
  352. data/stdlib/bigdecimal/bignumber.js.rb +1 -1
  353. data/stdlib/bigdecimal/util.rb +148 -0
  354. data/stdlib/delegate.rb +8 -0
  355. data/stdlib/nodejs/fileutils.rb +1 -1
  356. data/stdlib/nodejs/kernel.rb +0 -13
  357. data/stdlib/nodejs/stacktrace.rb +4 -179
  358. data/stdlib/ostruct.rb +5 -0
  359. data/stdlib/pp.rb +586 -19
  360. data/stdlib/prettyprint.rb +556 -0
  361. data/stdlib/rbconfig/sizeof.rb +2 -0
  362. data/stdlib/securerandom.rb +32 -0
  363. data/stdlib/set.rb +36 -0
  364. data/stdlib/strscan.rb +15 -0
  365. data/tasks/benchmarking.rake +1 -1
  366. data/tasks/releasing.rake +0 -3
  367. data/tasks/testing.rake +16 -11
  368. data/tasks/testing/mspec_special_calls.rb +1 -19
  369. data/test/nodejs/fixtures/cat.png +0 -0
  370. data/test/nodejs/fixtures/hello.rb +1 -0
  371. data/test/nodejs/fixtures/iso88591.txt +1 -0
  372. data/test/nodejs/fixtures/utf8.txt +1 -0
  373. data/test/nodejs/fixtures/win1258.txt +1 -0
  374. data/test/nodejs/test_dir.rb +39 -0
  375. data/test/nodejs/test_env.rb +62 -0
  376. data/test/nodejs/test_error.rb +29 -0
  377. data/test/nodejs/test_file.rb +206 -0
  378. data/test/nodejs/test_file_encoding.rb +20 -0
  379. data/test/nodejs/test_io.rb +18 -0
  380. data/test/nodejs/test_opal_builder.rb +12 -0
  381. data/test/nodejs/test_pathname.rb +16 -0
  382. data/test/opal/cat.png +0 -0
  383. data/test/opal/http_server.rb +52 -0
  384. data/test/opal/test_base64.rb +115 -0
  385. data/test/opal/test_keyword.rb +590 -0
  386. data/test/opal/test_matrix.rb +661 -0
  387. data/test/opal/test_openuri.rb +53 -0
  388. data/test/opal/unsupported_and_bugs.rb +39 -0
  389. data/yarn.lock +1114 -3
  390. metadata +889 -31
  391. data/lib/opal/nodes/runtime_helpers.rb +0 -51
  392. data/opal/corelib/random/MersenneTwister.js +0 -137
  393. data/opal/corelib/random/mersenne_twister.js.rb +0 -13
  394. data/stdlib/bigdecimal/kernel.rb +0 -5
@@ -0,0 +1,4 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "Proc" do
3
+ fails "Proc#hash returns an Integer"
4
+ end
@@ -0,0 +1,5 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "Random" do
3
+ fails "Random#bytes returns the same numeric output for a given huge seed accross all implementations and platforms"
4
+ fails "Random#bytes returns the same numeric output for a given seed accross all implementations and platforms"
5
+ end
@@ -0,0 +1,8 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "Range" do
3
+ fails "Range#initialize is private"
4
+ fails "Range#inspect returns a tainted string if either end is tainted"
5
+ fails "Range#inspect returns a untrusted string if either end is untrusted"
6
+ fails "Range#to_s returns a tainted string if either end is tainted"
7
+ fails "Range#to_s returns a untrusted string if either end is untrusted"
8
+ end
@@ -0,0 +1,70 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "Regexp" do
3
+ fails "Regexp with character classes doesn't match non-ASCII characters with [[:ascii:]]"
4
+ fails "Regexp#options does not include Regexp::FIXEDENCODING for a Regexp literal with the 'n' option"
5
+ fails "Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 'e' option"
6
+ fails "Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 's' option"
7
+ fails "Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 'u' option"
8
+ fails "Regexp#options includes Regexp::NOENCODING for a Regexp literal with the 'n' option"
9
+ fails "Regexp#source has US-ASCII encoding when created from an ASCII-only \\u{} literal"
10
+ fails "Regexp#source has UTF-8 encoding when created from a non-ASCII-only \\u{} literal"
11
+ fails "Regexp#to_s deals properly with uncaptured groups"
12
+ fails "Regexp#to_s displays groups with options"
13
+ fails "Regexp#to_s displays options if included"
14
+ fails "Regexp#to_s displays single group with same options as main regex as the main regex"
15
+ fails "Regexp#to_s handles abusive option groups"
16
+ 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"
17
+ fails "Regexp.escape sets the encoding of the result to US-ASCII if there are only US-ASCII characters present in the input String"
18
+ 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"
19
+ fails "Regexp.new given a String accepts a Fixnum of two or more options ORed together as the second argument"
20
+ fails "Regexp.new given a String ignores the third argument if it is 'e' or 'euc' (case-insensitive)"
21
+ fails "Regexp.new given a String ignores the third argument if it is 's' or 'sjis' (case-insensitive)"
22
+ fails "Regexp.new given a String ignores the third argument if it is 'u' or 'utf8' (case-insensitive)"
23
+ fails "Regexp.new given a String uses ASCII_8BIT encoding if third argument is 'n' or 'none' (case insensitive) and non-ascii characters"
24
+ fails "Regexp.new given a String uses US_ASCII encoding if third argument is 'n' or 'none' (case insensitive) and only ascii characters"
25
+ fails "Regexp.new given a String with escaped characters accepts \\u{HHHHHH} for a single Unicode codepoint"
26
+ fails "Regexp.new given a String with escaped characters accepts \\u{HHHHH} for a single Unicode codepoint"
27
+ fails "Regexp.new given a String with escaped characters accepts \\u{HHHH} followed by characters"
28
+ fails "Regexp.new given a String with escaped characters accepts \\u{HHHH} for a single Unicode codepoint"
29
+ fails "Regexp.new given a String with escaped characters accepts \\u{HHH} for a single Unicode codepoint"
30
+ fails "Regexp.new given a String with escaped characters accepts \\u{HH} for a single Unicode codepoint"
31
+ fails "Regexp.new given a String with escaped characters accepts \\u{H} for a single Unicode codepoint"
32
+ fails "Regexp.new given a String with escaped characters accepts a combination of escaped octal and hexadecimal digits and \\u{HHHH}"
33
+ fails "Regexp.new given a String with escaped characters accepts characters followed by \\u{HHHH}"
34
+ fails "Regexp.new given a String with escaped characters accepts escaped hexadecimal digits followed by \\u{HHHH}"
35
+ fails "Regexp.new given a String with escaped characters accepts escaped octal digits followed by \\u{HHHH}"
36
+ fails "Regexp.new given a String with escaped characters raises a RegexpError if less than four digits are given for \\uHHHH"
37
+ fails "Regexp.new given a String with escaped characters raises a RegexpError if the \\u{} escape is empty"
38
+ 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"
39
+ 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"
40
+ 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"
41
+ 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"
42
+ 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"
43
+ 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"
44
+ fails "Regexp.new given a String with escaped characters returns a Regexp with source String having the input String's encoding"
45
+ fails "Regexp.new given a String with escaped characters returns a Regexp with the input String's encoding"
46
+ 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"
47
+ fails "Regexp.quote sets the encoding of the result to US-ASCII if there are only US-ASCII characters present in the input String"
48
+ 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"
49
+ fails "Regexp.try_convert returns the argument if given a Regexp"
50
+ 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"
51
+ 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"
52
+ 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"
53
+ 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"
54
+ fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and an ASCII-only Regexp"
55
+ fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and an ASCII-only String"
56
+ 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"
57
+ 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"
58
+ fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and an ASCII-only Regexp"
59
+ fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and an ASCII-only String"
60
+ fails "Regexp.union raises ArgumentError if the arguments include conflicting ASCII-incompatible Regexps"
61
+ fails "Regexp.union raises ArgumentError if the arguments include conflicting ASCII-incompatible Strings" # Expected ArgumentError but no exception was raised (/a|b/ was returned)
62
+ fails "Regexp.union raises ArgumentError if the arguments include conflicting fixed encoding Regexps"
63
+ fails "Regexp.union returns a Regexp with US-ASCII encoding if all arguments are ASCII-only"
64
+ fails "Regexp.union returns a Regexp with UTF-8 if one part is UTF-8"
65
+ fails "Regexp.union returns a Regexp with the encoding of a String containing non-ASCII-compatible characters and another ASCII-only String"
66
+ fails "Regexp.union returns a Regexp with the encoding of a String containing non-ASCII-compatible characters"
67
+ fails "Regexp.union returns a Regexp with the encoding of an ASCII-incompatible String argument"
68
+ fails "Regexp.union returns a Regexp with the encoding of multiple non-conflicting ASCII-incompatible String arguments"
69
+ fails "Regexp.union returns a Regexp with the encoding of multiple non-conflicting Strings containing non-ASCII-compatible characters"
70
+ end
@@ -0,0 +1,5 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "Set" do
3
+ fails "Set#eql? returns true when the passed argument is a Set and contains the same elements"
4
+ fails "Set#initialize is private"
5
+ end
@@ -0,0 +1,7 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "Singleton" do
3
+ fails "Singleton#_dump returns an empty string from a singleton subclass"
4
+ fails "Singleton#_dump returns an empty string"
5
+ fails "Singleton.allocate is a private method"
6
+ fails "Singleton.new is a private method"
7
+ end
@@ -0,0 +1,687 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "String" do
3
+ fails "BasicObject#__id__ returns a different value for two String literals"
4
+ fails "Ruby character strings Unicode escaping can be done with \\u{} and one to six hex digits"
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 a UTF-8-encoded string when escaping non-ASCII characters via \\u{}" # Expected #<Encoding:UTF-16LE> to equal #<Encoding:UTF-8>
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 ASCII_8BIT source encoding produces an ASCII string when escaping ASCII characters via \\u{}" # Expected #<Encoding:UTF-16LE> to equal #<Encoding:ASCII-8BIT>
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 a UTF-8-encoded string when escaping non-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 Unicode escaping with US-ASCII source encoding produces an ASCII string when escaping ASCII characters via \\u{}"
13
+ fails "Ruby character strings are produced from control character shortcuts"
14
+ fails "Ruby character strings backslashes follow the same rules as interpolation"
15
+ fails "Ruby character strings taints the result of interpolation when an interpolated value is tainted"
16
+ fails "Ruby character strings untrusts the result of interpolation when an interpolated value is untrusted"
17
+ fails "String#% always taints the result when the format string is tainted"
18
+ fails "String#% supports negative bignums with %u or %d"
19
+ fails "String#% taints result for %p when argument.inspect is tainted"
20
+ fails "String#% taints result for %s when argument is tainted"
21
+ fails "String#* always taints the result when self is tainted"
22
+ fails "String#+ taints the result when self or other is tainted"
23
+ fails "String#+ when self and the argument are in different ASCII-compatible encodings raises Encoding::CompatibilityError if neither are ASCII-only"
24
+ fails "String#+ when self and the argument are in different ASCII-compatible encodings uses self's encoding if both are ASCII-only"
25
+ fails "String#+ when self and the argument are in different ASCII-compatible encodings uses self's encoding if the argument is ASCII-only"
26
+ fails "String#+ when self and the argument are in different ASCII-compatible encodings uses the argument's encoding if self is ASCII-only"
27
+ fails "String#+ when self is ASCII-8BIT and argument is US-ASCII uses ASCII-8BIT encoding"
28
+ fails "String#+ when self is in an ASCII-incompatible encoding incompatible with the argument's encoding raises Encoding::CompatibilityError if neither are empty"
29
+ fails "String#+ when self is in an ASCII-incompatible encoding incompatible with the argument's encoding uses self's encoding if both are empty"
30
+ 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"
31
+ 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"
32
+ fails "String#+ when the argument is in an ASCII-incompatible encoding incompatible with self's encoding raises Encoding::CompatibilityError if neither are empty"
33
+ fails "String#+ when the argument is in an ASCII-incompatible encoding incompatible with self's encoding uses self's encoding if both are empty"
34
+ 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"
35
+ 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"
36
+ fails "String#<< concatenates the given argument to self and returns self"
37
+ fails "String#<< converts the given argument to a String using to_str"
38
+ fails "String#<< raises a RuntimeError when self is frozen"
39
+ fails "String#<< raises a TypeError if the given argument can't be converted to a String"
40
+ fails "String#<< returns a String when given a subclass instance"
41
+ fails "String#<< returns an instance of same class when called on a subclass"
42
+ fails "String#<< taints self if other is tainted"
43
+ fails "String#<< untrusts self if other is untrusted"
44
+ fails "String#<< when self and the argument are in different ASCII-compatible encodings raises Encoding::CompatibilityError if neither are ASCII-only"
45
+ fails "String#<< when self and the argument are in different ASCII-compatible encodings uses self's encoding if both are ASCII-only"
46
+ fails "String#<< when self and the argument are in different ASCII-compatible encodings uses self's encoding if the argument is ASCII-only"
47
+ fails "String#<< when self and the argument are in different ASCII-compatible encodings uses the argument's encoding if self is ASCII-only"
48
+ fails "String#<< when self is ASCII-8BIT and argument is US-ASCII uses ASCII-8BIT encoding"
49
+ fails "String#<< when self is in an ASCII-incompatible encoding incompatible with the argument's encoding raises Encoding::CompatibilityError if neither are empty"
50
+ fails "String#<< when self is in an ASCII-incompatible encoding incompatible with the argument's encoding uses self's encoding if both are empty"
51
+ 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"
52
+ 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"
53
+ fails "String#<< when the argument is in an ASCII-incompatible encoding incompatible with self's encoding raises Encoding::CompatibilityError if neither are empty"
54
+ fails "String#<< when the argument is in an ASCII-incompatible encoding incompatible with self's encoding uses self's encoding if both are empty"
55
+ 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"
56
+ 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"
57
+ fails "String#<< with Integer concatenates the argument interpreted as a codepoint" # NotImplementedError: String#<< not supported. Mutable String methods are not supported in Opal.
58
+ fails "String#<< with Integer doesn't call to_int on its argument"
59
+ fails "String#<< with Integer raises RangeError if the argument is an invalid codepoint for self's encoding"
60
+ fails "String#<< with Integer raises RangeError if the argument is negative"
61
+ fails "String#<< with Integer raises a RuntimeError when self is frozen"
62
+ fails "String#<< with Integer returns a ASCII-8BIT string if self is US-ASCII and the argument is between 128-255 (inclusive)"
63
+ fails "String#<=> with String compares the indices of the encodings when the strings have identical non-ASCII-compatible bytes"
64
+ fails "String#<=> with String ignores encoding difference"
65
+ fails "String#<=> with String returns -1 if self is bytewise less than other"
66
+ fails "String#<=> with String returns 0 with identical ASCII-compatible bytes of different encodings"
67
+ fails "String#<=> with String returns 1 if self is bytewise greater than other"
68
+ fails "String#== considers encoding compatibility"
69
+ fails "String#== considers encoding difference of incompatible string"
70
+ fails "String#== ignores encoding difference of compatible string"
71
+ fails "String#=== considers encoding compatibility"
72
+ fails "String#=== considers encoding difference of incompatible string"
73
+ fails "String#=== ignores encoding difference of compatible string"
74
+ fails "String#[] with Range always taints resulting strings when self is tainted"
75
+ fails "String#[] with Regexp, index always taints resulting strings when self or regexp is tainted"
76
+ fails "String#[] with String taints resulting strings when other is tainted"
77
+ fails "String#[] with Symbol raises TypeError"
78
+ fails "String#[] with index, length always taints resulting strings when self is tainted"
79
+ fails "String#[]= with Fixnum index allows assignment to the zero'th element of an empty String"
80
+ fails "String#[]= with Fixnum index calls #to_str to convert other to a String"
81
+ fails "String#[]= with Fixnum index calls to_int on index"
82
+ fails "String#[]= with Fixnum index raises IndexError if the string index doesn't match a position in the string"
83
+ fails "String#[]= with Fixnum index raises a RuntimeError when self is frozen"
84
+ fails "String#[]= with Fixnum index raises a TypeError if other_str can't be converted to a String"
85
+ fails "String#[]= with Fixnum index raises an IndexError without changing self if idx is outside of self"
86
+ fails "String#[]= with Fixnum index replaces the char at idx with other_str"
87
+ fails "String#[]= with Fixnum index taints self if other_str is tainted"
88
+ fails "String#[]= with Fixnum index, count appends other_str to the end of the string if idx == the length of the string"
89
+ fails "String#[]= with Fixnum index, count calls #to_int to convert the index and count objects"
90
+ fails "String#[]= with Fixnum index, count calls #to_str to convert the replacement object"
91
+ fails "String#[]= with Fixnum index, count counts negative idx values from end of the string"
92
+ fails "String#[]= with Fixnum index, count deletes characters if other_str is an empty string"
93
+ fails "String#[]= with Fixnum index, count deletes characters up to the maximum length of the existing string"
94
+ fails "String#[]= with Fixnum index, count overwrites and deletes characters if count is more than the length of other_str"
95
+ fails "String#[]= with Fixnum index, count raises a TypeError if #to_int for count does not return an Integer"
96
+ fails "String#[]= with Fixnum index, count raises a TypeError if #to_int for index does not return an Integer"
97
+ fails "String#[]= with Fixnum index, count raises a TypeError if other_str is a type other than String"
98
+ fails "String#[]= with Fixnum index, count raises a TypeError of #to_str does not return a String"
99
+ fails "String#[]= with Fixnum index, count raises an IndexError if count < 0"
100
+ fails "String#[]= with Fixnum index, count raises an IndexError if |idx| is greater than the length of the string"
101
+ fails "String#[]= with Fixnum index, count starts at idx and overwrites count characters before inserting the rest of other_str"
102
+ fails "String#[]= with Fixnum index, count taints self if other_str is tainted"
103
+ fails "String#[]= with String index raises an IndexError if the search String is not found"
104
+ fails "String#[]= with String index replaces characters with no characters"
105
+ fails "String#[]= with String index replaces fewer characters with more characters"
106
+ fails "String#[]= with String index replaces more characters with fewer characters"
107
+ fails "String#[]= with a Range index raises a RangeError if negative Range begin is out of range"
108
+ fails "String#[]= with a Range index raises a RangeError if positive Range begin is greater than String size"
109
+ fails "String#[]= with a Range index replaces a partial string"
110
+ fails "String#[]= with a Range index replaces the contents with a longer String"
111
+ fails "String#[]= with a Range index replaces the contents with a shorter String"
112
+ fails "String#[]= with a Range index treats a negative out-of-range Range end with a negative Range begin as a zero count"
113
+ fails "String#[]= with a Range index treats a negative out-of-range Range end with a positive Range begin as a zero count"
114
+ fails "String#[]= with a Range index uses the Range end as an index rather than a count"
115
+ fails "String#[]= with a Range index with an empty replacement does not replace a character with a zero exclude-end range"
116
+ fails "String#[]= with a Range index with an empty replacement does not replace a character with a zero-index, zero exclude-end range"
117
+ fails "String#[]= with a Range index with an empty replacement replaces a character with a zero non-exclude-end range"
118
+ fails "String#[]= with a Range index with an empty replacement replaces a character with zero-index, zero non-exclude-end range"
119
+ fails "String#[]= with a Regexp index calls #to_str to convert the replacement"
120
+ fails "String#[]= with a Regexp index checks the match before calling #to_str to convert the replacement"
121
+ fails "String#[]= with a Regexp index raises IndexError if the regexp index doesn't match a position in the string"
122
+ fails "String#[]= with a Regexp index replaces the matched text with the rhs"
123
+ fails "String#[]= with a Regexp index with 3 arguments allows the specified capture to be negative and count from the end"
124
+ fails "String#[]= with a Regexp index with 3 arguments calls #to_int to convert the second object"
125
+ fails "String#[]= with a Regexp index with 3 arguments checks the match index before calling #to_str to convert the replacement"
126
+ fails "String#[]= with a Regexp index with 3 arguments raises IndexError if the specified capture isn't available"
127
+ fails "String#[]= with a Regexp index with 3 arguments raises a TypeError if #to_int does not return a Fixnum"
128
+ fails "String#[]= with a Regexp index with 3 arguments uses the 2nd of 3 arguments as which capture should be replaced"
129
+ fails "String#[]= with a Regexp index with 3 arguments when the optional capture does not match raises an IndexError before setting the replacement"
130
+ fails "String#capitalize is locale insensitive (only upcases a-z and only downcases A-Z)"
131
+ fails "String#capitalize taints resulting string when self is tainted"
132
+ fails "String#capitalize! capitalizes self in place for all of Unicode" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
133
+ fails "String#capitalize! capitalizes self in place"
134
+ fails "String#capitalize! does not allow invalid options" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
135
+ fails "String#capitalize! does not allow the :fold option for upcasing" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
136
+ fails "String#capitalize! full Unicode case mapping modifies self in place for all of Unicode with no option" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
137
+ fails "String#capitalize! full Unicode case mapping only capitalizes the first resulting character when upcasing a character produces a multi-character sequence" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
138
+ fails "String#capitalize! full Unicode case mapping updates string metadata" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
139
+ fails "String#capitalize! modifies self in place for ASCII-only case mapping does not capitalize non-ASCII characters" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
140
+ fails "String#capitalize! modifies self in place for full Unicode case mapping adapted for Lithuanian allows Turkic as an extra option (and applies Turkic semantics)" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
141
+ fails "String#capitalize! modifies self in place for full Unicode case mapping adapted for Lithuanian currently works the same as full Unicode case mapping" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
142
+ fails "String#capitalize! modifies self in place for full Unicode case mapping adapted for Lithuanian does not allow any other additional option" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
143
+ fails "String#capitalize! modifies self in place for full Unicode case mapping adapted for Turkic languages allows Lithuanian as an extra option" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
144
+ fails "String#capitalize! modifies self in place for full Unicode case mapping adapted for Turkic languages capitalizes ASCII characters according to Turkic semantics" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
145
+ fails "String#capitalize! modifies self in place for full Unicode case mapping adapted for Turkic languages does not allow any other additional option" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
146
+ fails "String#capitalize! raises a RuntimeError when self is frozen"
147
+ fails "String#capitalize! returns nil when no changes are made"
148
+ fails "String#center with length, padding taints result when self or padstr is tainted"
149
+ 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"
150
+ fails "String#chars is unicode aware"
151
+ fails "String#chomp when passed '' taints the result if self is tainted"
152
+ fails "String#chomp when passed '\\n' taints the result if self is tainted"
153
+ fails "String#chomp when passed a String does not taint the result when the argument is tainted"
154
+ fails "String#chomp when passed a String taints the result if self is tainted"
155
+ fails "String#chomp when passed nil returns a copy of the String"
156
+ fails "String#chomp when passed nil taints the result if self is tainted"
157
+ fails "String#chomp when passed no argument returns a copy of the String when it is not modified"
158
+ fails "String#chomp when passed no argument taints the result if self is tainted"
159
+ fails "String#chomp! raises a RuntimeError on a frozen instance when it is modified"
160
+ fails "String#chomp! raises a RuntimeError on a frozen instance when it would not be modified"
161
+ fails "String#chomp! removes the final carriage return, newline from a multibyte String" # NotImplementedError: String#chomp! not supported. Mutable String methods are not supported in Opal.
162
+ fails "String#chomp! removes the final carriage return, newline from a non-ASCII String when the record separator is changed" # ArgumentError: unknown encoding name - utf-32be
163
+ fails "String#chomp! removes the final carriage return, newline from a non-ASCII String" # ArgumentError: unknown encoding name - utf-32be
164
+ fails "String#chomp! returns nil when the String is not modified" # NotImplementedError: String#chomp! not supported. Mutable String methods are not supported in Opal.
165
+ fails "String#chomp! when passed '' does not remove a final carriage return"
166
+ fails "String#chomp! when passed '' removes a final carriage return, newline"
167
+ fails "String#chomp! when passed '' removes a final newline"
168
+ fails "String#chomp! when passed '' removes more than one trailing carriage return, newline pairs"
169
+ fails "String#chomp! when passed '' removes more than one trailing newlines"
170
+ fails "String#chomp! when passed '' returns nil when self is empty"
171
+ fails "String#chomp! when passed '' taints the result if self is tainted"
172
+ fails "String#chomp! when passed '\\n' removes one trailing carriage return"
173
+ fails "String#chomp! when passed '\\n' removes one trailing carriage return, newline pair" # NotImplementedError: String#chomp! not supported. Mutable String methods are not supported in Opal.
174
+ fails "String#chomp! when passed '\\n' removes one trailing newline"
175
+ fails "String#chomp! when passed '\\n' returns nil when self is empty"
176
+ fails "String#chomp! when passed '\\n' taints the result if self is tainted"
177
+ fails "String#chomp! when passed a String does not taint the result when the argument is tainted"
178
+ fails "String#chomp! when passed a String removes the trailing characters if they match the argument"
179
+ fails "String#chomp! when passed a String returns nil if the argument does not match the trailing characters"
180
+ fails "String#chomp! when passed a String returns nil when self is empty"
181
+ fails "String#chomp! when passed a String taints the result if self is tainted"
182
+ fails "String#chomp! when passed an Object calls #to_str to convert to a String"
183
+ fails "String#chomp! when passed an Object raises a TypeError if #to_str does not return a String"
184
+ fails "String#chomp! when passed nil returns nil when self is empty"
185
+ fails "String#chomp! when passed nil returns nil"
186
+ fails "String#chomp! when passed no argument modifies self"
187
+ fails "String#chomp! when passed no argument removes one trailing carriage return"
188
+ fails "String#chomp! when passed no argument removes one trailing carriage return, newline pair" # NotImplementedError: String#chomp! not supported. Mutable String methods are not supported in Opal.
189
+ fails "String#chomp! when passed no argument removes one trailing newline"
190
+ fails "String#chomp! when passed no argument removes trailing characters that match $/ when it has been assigned a value"
191
+ fails "String#chomp! when passed no argument returns nil if self is not modified"
192
+ fails "String#chomp! when passed no argument returns nil when self is empty"
193
+ fails "String#chomp! when passed no argument returns subclass instances when called on a subclass"
194
+ fails "String#chomp! when passed no argument taints the result if self is tainted"
195
+ fails "String#chop returns a new string when applied to an empty string"
196
+ fails "String#chop taints result when self is tainted"
197
+ fails "String#chop untrusts result when self is untrusted"
198
+ fails "String#chop! does not remove more than the final carriage return, newline"
199
+ fails "String#chop! raises a RuntimeError on a frozen instance that is modified"
200
+ fails "String#chop! raises a RuntimeError on a frozen instance that would not be modified"
201
+ fails "String#chop! removes a multi-byte character" # NotImplementedError: String#chop! not supported. Mutable String methods are not supported in Opal.
202
+ fails "String#chop! removes the carriage return, newline if they are the only characters" # NotImplementedError: String#chop! not supported. Mutable String methods are not supported in Opal.
203
+ fails "String#chop! removes the final carriage return"
204
+ fails "String#chop! removes the final carriage return, newline from a multibyte String" # NotImplementedError: String#chop! not supported. Mutable String methods are not supported in Opal.
205
+ fails "String#chop! removes the final carriage return, newline from a non-ASCII String" # ArgumentError: unknown encoding name - utf-32be
206
+ fails "String#chop! removes the final carriage return, newline"
207
+ fails "String#chop! removes the final character"
208
+ fails "String#chop! removes the final newline"
209
+ fails "String#chop! returns nil when called on an empty string"
210
+ fails "String#chop! returns self if modifications were made"
211
+ fails "String#clear preserves its encoding" # NameError: uninitialized constant Encoding::SHIFT_JIS
212
+ fails "String#clear raises a RuntimeError if self is frozen" # NoMethodError: undefined method `clear' for "Jolene":String
213
+ fails "String#clear returns self after emptying it" # NoMethodError: undefined method `clear' for "Jolene":String
214
+ fails "String#clear sets self equal to the empty String" # NoMethodError: undefined method `clear' for "Jolene":String
215
+ fails "String#clear works with multibyte Strings" # NoMethodError: undefined method `clear' for "靥ࡶ":String
216
+ fails "String#clone copies instance variables" # Strings are immutable, so they can't have ivars
217
+ fails "String#clone does not modify the original string when changing cloned string" # string can't be modified
218
+ fails "String#concat concatenates the given argument to self and returns self"
219
+ fails "String#concat concatenates the initial value when given arguments contain 2 self"
220
+ fails "String#concat converts the given argument to a String using to_str"
221
+ fails "String#concat raises a RuntimeError when self is frozen"
222
+ fails "String#concat raises a TypeError if the given argument can't be converted to a String"
223
+ fails "String#concat returns a String when given a subclass instance"
224
+ fails "String#concat returns an instance of same class when called on a subclass"
225
+ fails "String#concat returns self when given no arguments"
226
+ fails "String#concat taints self if other is tainted"
227
+ fails "String#concat takes multiple arguments"
228
+ fails "String#concat untrusts self if other is untrusted"
229
+ fails "String#concat when self and the argument are in different ASCII-compatible encodings raises Encoding::CompatibilityError if neither are ASCII-only"
230
+ fails "String#concat when self and the argument are in different ASCII-compatible encodings uses self's encoding if both are ASCII-only"
231
+ fails "String#concat when self and the argument are in different ASCII-compatible encodings uses self's encoding if the argument is ASCII-only"
232
+ fails "String#concat when self and the argument are in different ASCII-compatible encodings uses the argument's encoding if self is ASCII-only"
233
+ fails "String#concat when self is ASCII-8BIT and argument is US-ASCII uses ASCII-8BIT encoding"
234
+ fails "String#concat when self is in an ASCII-incompatible encoding incompatible with the argument's encoding raises Encoding::CompatibilityError if neither are empty"
235
+ 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"
236
+ 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"
237
+ 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"
238
+ fails "String#concat when the argument is in an ASCII-incompatible encoding incompatible with self's encoding raises Encoding::CompatibilityError if neither are empty"
239
+ 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"
240
+ 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"
241
+ 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"
242
+ fails "String#concat with Integer concatenates the argument interpreted as a codepoint" # NoMethodError: undefined method `concat' for ""
243
+ fails "String#concat with Integer doesn't call to_int on its argument"
244
+ fails "String#concat with Integer raises RangeError if the argument is an invalid codepoint for self's encoding"
245
+ fails "String#concat with Integer raises RangeError if the argument is negative"
246
+ fails "String#concat with Integer raises a RuntimeError when self is frozen"
247
+ fails "String#concat with Integer returns a ASCII-8BIT string if self is US-ASCII and the argument is between 128-255 (inclusive)"
248
+ fails "String#count returns the number of occurrences of a multi-byte character"
249
+ fails "String#delete taints result when self is tainted"
250
+ fails "String#delete! modifies self in place and returns self"
251
+ fails "String#delete! raises a RuntimeError when self is frozen"
252
+ fails "String#delete! returns nil if no modifications were made"
253
+ fails "String#delete_prefix returns a copy of the string, when the prefix isn't found" # Fails because "string".equal?("string") is always true
254
+ fails "String#delete_prefix! calls to_str on its argument"
255
+ fails "String#delete_prefix! doesn't set $~"
256
+ fails "String#delete_prefix! removes the found prefix"
257
+ fails "String#delete_prefix! returns nil if no change is made"
258
+ fails "String#delete_suffix returns a copy of the string, when the suffix isn't found" # Fails because "string".equal?("string") is always true
259
+ fails "String#delete_suffix! calls to_str on its argument"
260
+ fails "String#delete_suffix! doesn't set $~"
261
+ fails "String#delete_suffix! removes the found prefix"
262
+ fails "String#delete_suffix! returns nil if no change is made"
263
+ fails "String#downcase is locale insensitive (only replaces A-Z)"
264
+ fails "String#downcase taints result when self is tainted"
265
+ fails "String#downcase! ASCII-only case mapping does not downcase non-ASCII characters" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
266
+ fails "String#downcase! case folding case folds special characters" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
267
+ fails "String#downcase! does not allow invalid options" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
268
+ fails "String#downcase! full Unicode case mapping adapted for Lithuanian allows Turkic as an extra option (and applies Turkic semantics)" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
269
+ fails "String#downcase! full Unicode case mapping adapted for Lithuanian currently works the same as full Unicode case mapping" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
270
+ fails "String#downcase! full Unicode case mapping adapted for Lithuanian does not allow any other additional option" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
271
+ fails "String#downcase! full Unicode case mapping adapted for Turkic languages allows Lithuanian as an extra option" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
272
+ fails "String#downcase! full Unicode case mapping adapted for Turkic languages does not allow any other additional option" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
273
+ fails "String#downcase! full Unicode case mapping adapted for Turkic languages downcases characters according to Turkic semantics" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
274
+ fails "String#downcase! full Unicode case mapping modifies self in place for all of Unicode with no option" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
275
+ fails "String#downcase! full Unicode case mapping updates string metadata" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
276
+ fails "String#downcase! modifies self in place for all of Unicode" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
277
+ fails "String#downcase! modifies self in place"
278
+ fails "String#downcase! raises a RuntimeError when self is frozen"
279
+ fails "String#downcase! returns nil if no modifications were made"
280
+ fails "String#downcase! sets the result String encoding to the source String encoding" # Expected #<Encoding:UTF-16LE> to be identical to #<Encoding:UTF-8>
281
+ fails "String#dump untrusts the result if self is untrusted"
282
+ fails "String#dup copies instance variables" # Strings are immutable, so they can't have ivars
283
+ fails "String#dup does not copy singleton methods" # TypeError: can't define singleton
284
+ fails "String#dup does not modify the original string when changing dupped string"
285
+ fails "String#each_char is unicode aware"
286
+ fails "String#each_line does not care if the string is modified while substituting"
287
+ fails "String#each_line raises a TypeError when the separator is a symbol"
288
+ fails "String#each_line taints substrings that are passed to the block if self is tainted"
289
+ fails "String#encode! given the xml: :attr option replaces all instances of '&' with '&amp;'" # NoMethodError: undefined method `default_internal' for Encoding
290
+ fails "String#encode! given the xml: :attr option replaces all instances of '<' with '&lt;'" # NoMethodError: undefined method `default_internal' for Encoding
291
+ fails "String#encode! given the xml: :attr option replaces all instances of '>' with '&gt;'" # NoMethodError: undefined method `default_internal' for Encoding
292
+ fails "String#encode! given the xml: :attr option replaces all instances of '\"' with '&quot;'" # NoMethodError: undefined method `default_internal' for Encoding
293
+ fails "String#encode! given the xml: :attr option replaces undefined characters with their upper-case hexadecimal numeric character references" # NoMethodError: undefined method `default_internal' for Encoding
294
+ fails "String#encode! given the xml: :attr option surrounds the encoded text with double-quotes" # NoMethodError: undefined method `default_internal' for Encoding
295
+ fails "String#encode! given the xml: :text option does not replace '\"'" # NoMethodError: undefined method `default_internal' for Encoding
296
+ fails "String#encode! given the xml: :text option replaces all instances of '&' with '&amp;'" # NoMethodError: undefined method `default_internal' for Encoding
297
+ fails "String#encode! given the xml: :text option replaces all instances of '<' with '&lt;'" # NoMethodError: undefined method `default_internal' for Encoding
298
+ fails "String#encode! given the xml: :text option replaces all instances of '>' with '&gt;'" # NoMethodError: undefined method `default_internal' for Encoding
299
+ fails "String#encode! given the xml: :text option replaces undefined characters with their upper-case hexadecimal numeric character references" # NoMethodError: undefined method `default_internal' for Encoding
300
+ fails "String#encode! raises ArgumentError if the value of the :xml option is not :text or :attr" # NoMethodError: undefined method `default_internal' for Encoding
301
+ fails "String#encode! raises a RuntimeError when called on a frozen String when it's a no-op" # NoMethodError: undefined method `default_internal' for Encoding
302
+ fails "String#encode! raises a RuntimeError when called on a frozen String" # NoMethodError: undefined method `default_internal' for Encoding
303
+ fails "String#encode! when passed no options raises an Encoding::ConverterNotFoundError when no conversion is possible" # NoMethodError: undefined method `default_internal' for Encoding
304
+ fails "String#encode! when passed no options returns self for a ASCII-only String when Encoding.default_internal is nil" # NoMethodError: undefined method `default_internal' for Encoding
305
+ fails "String#encode! when passed no options returns self when Encoding.default_internal is nil" # NoMethodError: undefined method `default_internal' for Encoding
306
+ fails "String#encode! when passed no options transcodes a 7-bit String despite no generic converting being available" # NoMethodError: undefined method `default_internal' for Encoding
307
+ fails "String#encode! when passed no options transcodes to Encoding.default_internal when set" # NoMethodError: undefined method `default_internal' for Encoding
308
+ fails "String#encode! when passed options calls #to_hash to convert the object" # NoMethodError: undefined method `default_internal' for Encoding
309
+ fails "String#encode! when passed options does not process transcoding options if not transcoding" # NoMethodError: undefined method `default_internal' for Encoding
310
+ fails "String#encode! when passed options raises an Encoding::ConverterNotFoundError when no conversion is possible despite 'invalid: :replace, undef: :replace'" # NoMethodError: undefined method `default_internal' for Encoding
311
+ fails "String#encode! when passed options replaces invalid characters when replacing Emacs-Mule encoded strings" # NoMethodError: undefined method `default_internal' for Encoding
312
+ fails "String#encode! when passed options returns self for ASCII-only String when Encoding.default_internal is nil" # NoMethodError: undefined method `default_internal' for Encoding
313
+ fails "String#encode! when passed options transcodes to Encoding.default_internal when set" # NoMethodError: undefined method `default_internal' for Encoding
314
+ fails "String#encode! when passed to encoding accepts a String argument" # NoMethodError: undefined method `default_internal' for Encoding
315
+ fails "String#encode! when passed to encoding calls #to_str to convert the object to an Encoding" # NoMethodError: undefined method `default_internal' for Encoding
316
+ fails "String#encode! when passed to encoding raises an Encoding::ConverterNotFoundError for an invalid encoding" # NoMethodError: undefined method `default_internal' for Encoding
317
+ fails "String#encode! when passed to encoding raises an Encoding::ConverterNotFoundError when no conversion is possible" # NoMethodError: undefined method `default_internal' for Encoding
318
+ fails "String#encode! when passed to encoding returns self" # NoMethodError: undefined method `default_internal' for Encoding
319
+ fails "String#encode! when passed to encoding transcodes Japanese multibyte characters" # NoMethodError: undefined method `default_internal' for Encoding
320
+ fails "String#encode! when passed to encoding transcodes a 7-bit String despite no generic converting being available" # NoMethodError: undefined method `default_internal' for Encoding
321
+ fails "String#encode! when passed to encoding transcodes to the passed encoding" # NoMethodError: undefined method `default_internal' for Encoding
322
+ fails "String#encode! when passed to, from calls #to_str to convert the from object to an Encoding" # NoMethodError: undefined method `default_internal' for Encoding
323
+ fails "String#encode! when passed to, from returns self" # NoMethodError: undefined method `default_internal' for Encoding
324
+ fails "String#encode! when passed to, from transcodes between the encodings ignoring the String encoding" # NoMethodError: undefined method `default_internal' for Encoding
325
+ fails "String#encode! when passed to, from, options calls #to_hash to convert the options object" # NoMethodError: undefined method `default_internal' for Encoding
326
+ fails "String#encode! when passed to, from, options calls #to_str to convert the from object to an encoding" # NoMethodError: undefined method `default_internal' for Encoding
327
+ fails "String#encode! when passed to, from, options calls #to_str to convert the to object to an encoding" # NoMethodError: undefined method `default_internal' for Encoding
328
+ fails "String#encode! when passed to, from, options replaces invalid characters in the destination encoding" # NoMethodError: undefined method `default_internal' for Encoding
329
+ fails "String#encode! when passed to, from, options replaces undefined characters in the destination encoding" # NoMethodError: undefined method `default_internal' for Encoding
330
+ fails "String#encode! when passed to, options calls #to_hash to convert the options object" # NoMethodError: undefined method `default_internal' for Encoding
331
+ fails "String#encode! when passed to, options replaces invalid characters in the destination encoding" # NoMethodError: undefined method `default_internal' for Encoding
332
+ fails "String#encode! when passed to, options replaces undefined characters in the destination encoding" # NoMethodError: undefined method `default_internal' for Encoding
333
+ fails "String#eql? considers encoding compatibility"
334
+ fails "String#eql? considers encoding difference of incompatible string"
335
+ fails "String#eql? ignores encoding difference of compatible string"
336
+ fails "String#gsub with pattern and Hash ignores non-String keys"
337
+ fails "String#gsub with pattern and Hash taints the result if a hash value is tainted"
338
+ fails "String#gsub with pattern and Hash taints the result if the original string is tainted"
339
+ fails "String#gsub with pattern and Hash untrusts the result if a hash value is untrusted"
340
+ fails "String#gsub with pattern and Hash untrusts the result if the original string is untrusted"
341
+ fails "String#gsub with pattern and block raises an ArgumentError if encoding is not valid"
342
+ fails "String#gsub with pattern and block raises an Encoding::CompatibilityError if the encodings are not compatible"
343
+ fails "String#gsub with pattern and block replaces the incompatible part properly even if the encodings are not compatible"
344
+ fails "String#gsub with pattern and block untrusts the result if the original string or replacement is untrusted"
345
+ fails "String#gsub with pattern and block uses the compatible encoding if they are compatible"
346
+ fails "String#gsub with pattern and replacement doesn't freak out when replacing ^" #Only fails "Text\nFoo".gsub(/^/, ' ').should == " Text\n Foo"
347
+ fails "String#gsub with pattern and replacement replaces \\k named backreferences with the regexp's corresponding capture"
348
+ 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!"
349
+ fails "String#gsub with pattern and replacement supports \\G which matches at the beginning of the remaining (non-matched) string"
350
+ fails "String#gsub with pattern and replacement taints the result if the original string or replacement is tainted"
351
+ fails "String#gsub with pattern and replacement untrusts the result if the original string or replacement is untrusted"
352
+ fails "String#gsub! with pattern and Hash coerces the hash values with #to_s"
353
+ fails "String#gsub! with pattern and Hash doesn't interpolate special sequences like \\1 for the block's return value"
354
+ fails "String#gsub! with pattern and Hash ignores keys that don't correspond to matches"
355
+ fails "String#gsub! with pattern and Hash ignores non-String keys"
356
+ fails "String#gsub! with pattern and Hash keeps tainted state"
357
+ fails "String#gsub! with pattern and Hash keeps untrusted state"
358
+ fails "String#gsub! with pattern and Hash replaces self with an empty string if the pattern matches but the hash specifies no replacements"
359
+ fails "String#gsub! with pattern and Hash returns self with all occurrences of pattern replaced with the value of the corresponding hash key"
360
+ fails "String#gsub! with pattern and Hash sets $~ to MatchData of last match and nil when there's none for access from outside"
361
+ fails "String#gsub! with pattern and Hash taints self if a hash value is tainted"
362
+ fails "String#gsub! with pattern and Hash untrusts self if a hash value is untrusted"
363
+ fails "String#gsub! with pattern and Hash uses a key's value as many times as needed"
364
+ fails "String#gsub! with pattern and Hash uses the hash's default value for missing keys"
365
+ fails "String#gsub! with pattern and Hash uses the hash's value set from default_proc for missing keys"
366
+ fails "String#gsub! with pattern and block modifies self in place and returns self"
367
+ fails "String#gsub! with pattern and block raises a RuntimeError when self is frozen"
368
+ fails "String#gsub! with pattern and block raises an ArgumentError if encoding is not valid"
369
+ fails "String#gsub! with pattern and block raises an Encoding::CompatibilityError if the encodings are not compatible"
370
+ fails "String#gsub! with pattern and block replaces the incompatible part properly even if the encodings are not compatible"
371
+ fails "String#gsub! with pattern and block returns nil if no modifications were made"
372
+ fails "String#gsub! with pattern and block taints self if block's result is tainted"
373
+ fails "String#gsub! with pattern and block untrusts self if block's result is untrusted"
374
+ fails "String#gsub! with pattern and block uses the compatible encoding if they are compatible"
375
+ fails "String#gsub! with pattern and replacement modifies self in place and returns self"
376
+ fails "String#gsub! with pattern and replacement modifies self in place with multi-byte characters and returns self"
377
+ fails "String#gsub! with pattern and replacement raises a RuntimeError when self is frozen"
378
+ fails "String#gsub! with pattern and replacement returns nil if no modifications were made"
379
+ fails "String#gsub! with pattern and replacement taints self if replacement is tainted"
380
+ fails "String#gsub! with pattern and replacement untrusts self if replacement is untrusted"
381
+ fails "String#gsub! with pattern and without replacement and block returned Enumerator size should return nil"
382
+ fails "String#gsub! with pattern and without replacement and block returns an enumerator"
383
+ fails "String#index raises a TypeError if passed a Symbol"
384
+ fails "String#index with Regexp supports \\G which matches at the given start offset"
385
+ fails "String#initialize is a private method"
386
+ fails "String#initialize with an argument carries over the encoding invalidity"
387
+ fails "String#initialize with an argument does not trust self if other is trusted"
388
+ fails "String#initialize with an argument does not untaint self if other is untainted"
389
+ fails "String#initialize with an argument raises a RuntimeError on a frozen instance that is modified"
390
+ fails "String#initialize with an argument raises a RuntimeError on a frozen instance when self-replacing"
391
+ fails "String#initialize with an argument raises a TypeError if other can't be converted to string"
392
+ fails "String#initialize with an argument replaces the content of self with other"
393
+ fails "String#initialize with an argument replaces the encoding of self with that of other"
394
+ fails "String#initialize with an argument returns self"
395
+ fails "String#initialize with an argument taints self if other is tainted"
396
+ fails "String#initialize with an argument tries to convert other to string using to_str"
397
+ fails "String#initialize with an argument untrusts self if other is untrusted"
398
+ fails "String#insert with index, other converts index to an integer using to_int"
399
+ fails "String#insert with index, other converts other to a string using to_str"
400
+ fails "String#insert with index, other inserts after the given character on an negative count"
401
+ fails "String#insert with index, other inserts other before the character at the given index"
402
+ fails "String#insert with index, other modifies self in place"
403
+ fails "String#insert with index, other raises a RuntimeError if self is frozen"
404
+ fails "String#insert with index, other raises a TypeError if other can't be converted to string"
405
+ fails "String#insert with index, other raises an IndexError if the index is beyond string"
406
+ fails "String#insert with index, other taints self if string to insert is tainted"
407
+ fails "String#inspect returns a string with a NUL character replaced by \\x notation"
408
+ fails "String#inspect returns a string with non-printing characters replaced by \\x notation"
409
+ fails "String#inspect taints the result if self is tainted"
410
+ fails "String#inspect untrusts the result if self is untrusted"
411
+ fails "String#lines does not care if the string is modified while substituting"
412
+ fails "String#lines raises a TypeError when the separator is a symbol"
413
+ fails "String#lines taints substrings that are passed to the block if self is tainted"
414
+ fails "String#ljust with length, padding taints result when self or padstr is tainted"
415
+ 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"
416
+ fails "String#lstrip taints the result when self is tainted"
417
+ fails "String#lstrip! modifies self in place and returns self"
418
+ fails "String#lstrip! raises a RuntimeError on a frozen instance that is modified"
419
+ fails "String#lstrip! raises a RuntimeError on a frozen instance that would not be modified"
420
+ fails "String#lstrip! returns nil if no modifications were made"
421
+ fails "String#match matches \\G at the start of the string"
422
+ fails "String#next taints the result if self is tainted"
423
+ fails "String#next! is equivalent to succ, but modifies self in place (still returns self)"
424
+ fails "String#next! raises a RuntimeError if self is frozen"
425
+ fails "String#prepend converts the given argument to a String using to_str"
426
+ fails "String#prepend prepends the given argument to self and returns self"
427
+ fails "String#prepend prepends the initial value when given arguments contain 2 self"
428
+ fails "String#prepend raises a RuntimeError when self if frozen"
429
+ fails "String#prepend raises a RuntimeError when self is frozen" # NoMethodError: undefined method `prepend' for "hello":String
430
+ fails "String#prepend raises a TypeError if the given argument can't be converted to a String"
431
+ fails "String#prepend returns self when given no arguments"
432
+ fails "String#prepend taints self if other is tainted"
433
+ fails "String#prepend takes multiple arguments"
434
+ fails "String#prepend works when given a subclass instance"
435
+ fails "String#replace carries over the encoding invalidity"
436
+ fails "String#replace does not trust self if other is trusted"
437
+ fails "String#replace does not untaint self if other is untainted"
438
+ fails "String#replace raises a RuntimeError on a frozen instance that is modified"
439
+ fails "String#replace raises a RuntimeError on a frozen instance when self-replacing"
440
+ fails "String#replace raises a TypeError if other can't be converted to string"
441
+ fails "String#replace replaces the content of self with other"
442
+ fails "String#replace replaces the encoding of self with that of other"
443
+ fails "String#replace returns self"
444
+ fails "String#replace taints self if other is tainted"
445
+ fails "String#replace tries to convert other to string using to_str"
446
+ fails "String#replace untrusts self if other is untrusted"
447
+ fails "String#reverse taints the result if self is tainted"
448
+ fails "String#reverse! raises a RuntimeError on a frozen instance that is modified"
449
+ fails "String#reverse! raises a RuntimeError on a frozen instance that would not be modified"
450
+ fails "String#reverse! reverses a string with multi byte characters" # NotImplementedError: String#reverse! not supported. Mutable String methods are not supported in Opal.
451
+ fails "String#reverse! reverses self in place and always returns self"
452
+ fails "String#rindex with Regexp supports \\G which matches at the given start offset"
453
+ fails "String#rjust with length, padding taints result when self or padstr is tainted"
454
+ 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"
455
+ fails "String#rstrip taints the result when self is tainted"
456
+ fails "String#rstrip! modifies self in place and returns self"
457
+ fails "String#rstrip! modifies self removing trailing NULL bytes and whitespace"
458
+ fails "String#rstrip! raises a RuntimeError on a frozen instance that is modified"
459
+ fails "String#rstrip! raises a RuntimeError on a frozen instance that would not be modified"
460
+ fails "String#rstrip! returns nil if no modifications were made"
461
+ fails "String#scan supports \\G which matches the end of the previous match / string start for first match"
462
+ fails "String#scan taints the results if the Regexp argument is tainted"
463
+ fails "String#scan taints the results if the String argument is tainted"
464
+ fails "String#scan taints the results when passed a Regexp argument if self is tainted"
465
+ fails "String#scan taints the results when passed a String argument if self is tainted"
466
+ fails "String#scan with pattern and block taints the results if the Regexp argument is tainted"
467
+ fails "String#scan with pattern and block taints the results if the String argument is tainted"
468
+ fails "String#scan with pattern and block taints the results when passed a Regexp argument if self is tainted"
469
+ fails "String#scan with pattern and block taints the results when passed a String argument if self is tainted"
470
+ fails "String#setbyte allows changing bytes in multi-byte characters"
471
+ fails "String#setbyte calls #to_int to convert the index"
472
+ fails "String#setbyte calls to_int to convert the value"
473
+ fails "String#setbyte can invalidate a String's encoding"
474
+ fails "String#setbyte changes the byte at the given index to the new byte"
475
+ fails "String#setbyte does not modify the original string when using String.new"
476
+ fails "String#setbyte modifies the receiver"
477
+ fails "String#setbyte raises a RuntimeError if self is frozen"
478
+ fails "String#setbyte raises a TypeError unless the second argument is an Integer"
479
+ fails "String#setbyte raises an IndexError if the index is greater than the String bytesize"
480
+ fails "String#setbyte raises an IndexError if the negative index is greater magnitude than the String bytesize" # NoMethodError: undefined method `setbyte' for "???"
481
+ fails "String#setbyte regards a negative index as counting from the end of the String"
482
+ fails "String#setbyte returns an Integer"
483
+ fails "String#setbyte sets a byte at an index greater than String size"
484
+ fails "String#slice with Range always taints resulting strings when self is tainted"
485
+ fails "String#slice with Regexp, index always taints resulting strings when self or regexp is tainted"
486
+ fails "String#slice with String taints resulting strings when other is tainted"
487
+ fails "String#slice with Symbol raises TypeError"
488
+ fails "String#slice with index, length always taints resulting strings when self is tainted"
489
+ fails "String#slice! Range always taints resulting strings when self is tainted"
490
+ fails "String#slice! Range calls to_int on range arguments"
491
+ fails "String#slice! Range deletes and return the substring given by the offsets of the range"
492
+ fails "String#slice! Range raises a RuntimeError on a frozen instance that is modified"
493
+ fails "String#slice! Range raises a RuntimeError on a frozen instance that would not be modified"
494
+ fails "String#slice! Range returns nil if the given range is out of self"
495
+ fails "String#slice! Range returns subclass instances"
496
+ fails "String#slice! Range returns the substring given by the character offsets of the range" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
497
+ fails "String#slice! Range works with Range subclasses"
498
+ fails "String#slice! with Regexp always taints resulting strings when self or regexp is tainted"
499
+ fails "String#slice! with Regexp deletes and returns the first match from self"
500
+ fails "String#slice! with Regexp doesn't taint self when regexp is tainted"
501
+ fails "String#slice! with Regexp raises a RuntimeError on a frozen instance that is modified"
502
+ fails "String#slice! with Regexp raises a RuntimeError on a frozen instance that would not be modified"
503
+ fails "String#slice! with Regexp returns nil if there was no match"
504
+ fails "String#slice! with Regexp returns subclass instances"
505
+ fails "String#slice! with Regexp returns the matching portion of self with a multi byte character" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
506
+ fails "String#slice! with Regexp sets $~ to MatchData when there is a match and nil when there's none"
507
+ fails "String#slice! with Regexp, index accepts a Float for capture index"
508
+ fails "String#slice! with Regexp, index always taints resulting strings when self or regexp is tainted"
509
+ fails "String#slice! with Regexp, index calls #to_int to convert an Object to capture index"
510
+ fails "String#slice! with Regexp, index deletes and returns the capture for idx from self"
511
+ fails "String#slice! with Regexp, index doesn't taint self when regexp is tainted"
512
+ fails "String#slice! with Regexp, index raises a RuntimeError if self is frozen"
513
+ fails "String#slice! with Regexp, index returns nil if there is no capture for idx"
514
+ fails "String#slice! with Regexp, index returns nil if there was no match"
515
+ fails "String#slice! with Regexp, index returns subclass instances"
516
+ fails "String#slice! with Regexp, index returns the encoding aware capture for the given index" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
517
+ fails "String#slice! with Regexp, index sets $~ to MatchData when there is a match and nil when there's none"
518
+ fails "String#slice! with String doesn't call to_str on its argument"
519
+ fails "String#slice! with String doesn't set $~"
520
+ fails "String#slice! with String raises a RuntimeError if self is frozen"
521
+ fails "String#slice! with String removes and returns the first occurrence of other_str from self"
522
+ fails "String#slice! with String returns a subclass instance when given a subclass instance"
523
+ fails "String#slice! with String returns nil if self does not contain other"
524
+ fails "String#slice! with String taints resulting strings when other is tainted"
525
+ fails "String#slice! with index calls to_int on index"
526
+ fails "String#slice! with index deletes and return the char at the given position"
527
+ fails "String#slice! with index raises a RuntimeError if self is frozen"
528
+ fails "String#slice! with index returns nil if idx is outside of self"
529
+ fails "String#slice! with index returns the character given by the character index" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
530
+ fails "String#slice! with index, length always taints resulting strings when self is tainted"
531
+ fails "String#slice! with index, length calls to_int on idx and length"
532
+ fails "String#slice! with index, length deletes and returns the substring at idx and the given length"
533
+ fails "String#slice! with index, length raises a RuntimeError if self is frozen"
534
+ fails "String#slice! with index, length returns nil if the length is negative"
535
+ fails "String#slice! with index, length returns subclass instances"
536
+ fails "String#slice! with index, length returns the substring given by the character offsets" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
537
+ fails "String#slice! with index, length treats invalid bytes as single bytes" # NoMethodError: undefined method `pack' for [230, 203]:Array
538
+ fails "String#split with Regexp doesn't taints the resulting strings if the Regexp is tainted"
539
+ fails "String#split with Regexp respects the encoding of the regexp when splitting between characters"
540
+ fails "String#split with Regexp retains the encoding of the source string"
541
+ fails "String#split with Regexp returns an ArgumentError if an invalid UTF-8 string is supplied"
542
+ fails "String#split with Regexp splits a string on each character for a multibyte encoding and empty split"
543
+ fails "String#split with Regexp taints an empty string if self is tainted"
544
+ fails "String#split with Regexp taints the resulting strings if self is tainted"
545
+ fails "String#split with String taints the resulting strings if self is tainted"
546
+ fails "String#squeeze taints the result when self is tainted"
547
+ fails "String#squeeze! modifies self in place and returns self"
548
+ fails "String#squeeze! raises a RuntimeError when self is frozen"
549
+ fails "String#squeeze! raises an ArgumentError when the parameter is out of sequence"
550
+ fails "String#squeeze! returns nil if no modifications were made"
551
+ fails "String#strip taints the result when self is tainted"
552
+ fails "String#strip! modifies self in place and returns self"
553
+ fails "String#strip! modifies self removing trailing NULL bytes and whitespace"
554
+ fails "String#strip! raises a RuntimeError on a frozen instance that is modified"
555
+ fails "String#strip! raises a RuntimeError on a frozen instance that would not be modified"
556
+ fails "String#strip! returns nil if no modifications where made"
557
+ fails "String#sub with pattern and Hash ignores non-String keys"
558
+ fails "String#sub with pattern and Hash taints the result if a hash value is tainted"
559
+ fails "String#sub with pattern and Hash taints the result if the original string is tainted"
560
+ fails "String#sub with pattern and Hash untrusts the result if a hash value is untrusted"
561
+ fails "String#sub with pattern and Hash untrusts the result if the original string is untrusted"
562
+ fails "String#sub with pattern and block doesn't raise a RuntimeError if the string is modified while substituting"
563
+ fails "String#sub with pattern and block taints the result if the original string or replacement is tainted"
564
+ fails "String#sub with pattern, replacement raises a TypeError when pattern is a Symbol"
565
+ fails "String#sub with pattern, replacement supports \\G which matches at the beginning of the string"
566
+ fails "String#sub with pattern, replacement taints the result if the original string or replacement is tainted"
567
+ fails "String#sub! with pattern and Hash coerces the hash values with #to_s"
568
+ fails "String#sub! with pattern and Hash doesn't interpolate special sequences like \\1 for the block's return value"
569
+ fails "String#sub! with pattern and Hash ignores non-String keys"
570
+ fails "String#sub! with pattern and Hash keeps tainted state"
571
+ fails "String#sub! with pattern and Hash keeps untrusted state"
572
+ fails "String#sub! with pattern and Hash removes keys that don't correspond to matches"
573
+ fails "String#sub! with pattern and Hash returns self with the first occurrence of pattern replaced with the value of the corresponding hash key"
574
+ fails "String#sub! with pattern and Hash sets $~ to MatchData of first match and nil when there's none for access from outside"
575
+ fails "String#sub! with pattern and Hash taints self if a hash value is tainted"
576
+ fails "String#sub! with pattern and Hash untrusts self if a hash value is untrusted"
577
+ fails "String#sub! with pattern and Hash uses a key's value only a single time"
578
+ fails "String#sub! with pattern and Hash uses the hash's default value for missing keys"
579
+ fails "String#sub! with pattern and Hash uses the hash's value set from default_proc for missing keys"
580
+ fails "String#sub! with pattern and block modifies self in place and returns self"
581
+ fails "String#sub! with pattern and block raises a RuntimeError if the string is modified while substituting"
582
+ fails "String#sub! with pattern and block raises a RuntimeError when self is frozen"
583
+ fails "String#sub! with pattern and block returns nil if no modifications were made"
584
+ fails "String#sub! with pattern and block sets $~ for access from the block"
585
+ fails "String#sub! with pattern and block taints self if block's result is tainted"
586
+ fails "String#sub! with pattern and without replacement and block raises a ArgumentError"
587
+ fails "String#sub! with pattern, replacement modifies self in place and returns self"
588
+ fails "String#sub! with pattern, replacement raises a RuntimeError when self is frozen"
589
+ fails "String#sub! with pattern, replacement returns nil if no modifications were made"
590
+ fails "String#sub! with pattern, replacement taints self if replacement is tainted"
591
+ fails "String#succ taints the result if self is tainted"
592
+ fails "String#succ! is equivalent to succ, but modifies self in place (still returns self)"
593
+ fails "String#succ! raises a RuntimeError if self is frozen"
594
+ fails "String#swapcase taints resulting string when self is tainted"
595
+ fails "String#swapcase! does not allow invalid options" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
596
+ fails "String#swapcase! does not allow the :fold option for upcasing" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
597
+ fails "String#swapcase! full Unicode case mapping adapted for Lithuanian allows Turkic as an extra option (and applies Turkic semantics)" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
598
+ fails "String#swapcase! full Unicode case mapping adapted for Lithuanian currently works the same as full Unicode case mapping" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
599
+ fails "String#swapcase! full Unicode case mapping adapted for Lithuanian does not allow any other additional option" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
600
+ fails "String#swapcase! full Unicode case mapping modifies self in place for all of Unicode with no option" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
601
+ fails "String#swapcase! full Unicode case mapping updates string metadata" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
602
+ fails "String#swapcase! modifies self in place for ASCII-only case mapping does not swapcase non-ASCII characters" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
603
+ fails "String#swapcase! modifies self in place for all of Unicode" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
604
+ fails "String#swapcase! modifies self in place for full Unicode case mapping adapted for Turkic languages allows Lithuanian as an extra option" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
605
+ fails "String#swapcase! modifies self in place for full Unicode case mapping adapted for Turkic languages does not allow any other additional option" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
606
+ fails "String#swapcase! modifies self in place for full Unicode case mapping adapted for Turkic languages swaps case of ASCII characters according to Turkic semantics" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
607
+ fails "String#swapcase! modifies self in place"
608
+ fails "String#swapcase! raises a RuntimeError when self is frozen"
609
+ fails "String#swapcase! returns nil if no modifications were made"
610
+ fails "String#to_i with bases parses a String in base 10"
611
+ fails "String#to_i with bases parses a String in base 11"
612
+ fails "String#to_i with bases parses a String in base 12"
613
+ fails "String#to_i with bases parses a String in base 13"
614
+ fails "String#to_i with bases parses a String in base 14"
615
+ fails "String#to_i with bases parses a String in base 15"
616
+ fails "String#to_i with bases parses a String in base 16"
617
+ fails "String#to_i with bases parses a String in base 17"
618
+ fails "String#to_i with bases parses a String in base 18"
619
+ fails "String#to_i with bases parses a String in base 19"
620
+ fails "String#to_i with bases parses a String in base 2"
621
+ fails "String#to_i with bases parses a String in base 20"
622
+ fails "String#to_i with bases parses a String in base 21"
623
+ fails "String#to_i with bases parses a String in base 22"
624
+ fails "String#to_i with bases parses a String in base 23"
625
+ fails "String#to_i with bases parses a String in base 24"
626
+ fails "String#to_i with bases parses a String in base 25"
627
+ fails "String#to_i with bases parses a String in base 26"
628
+ fails "String#to_i with bases parses a String in base 27"
629
+ fails "String#to_i with bases parses a String in base 28"
630
+ fails "String#to_i with bases parses a String in base 29"
631
+ fails "String#to_i with bases parses a String in base 3"
632
+ fails "String#to_i with bases parses a String in base 30"
633
+ fails "String#to_i with bases parses a String in base 31"
634
+ fails "String#to_i with bases parses a String in base 32"
635
+ fails "String#to_i with bases parses a String in base 33"
636
+ fails "String#to_i with bases parses a String in base 34"
637
+ fails "String#to_i with bases parses a String in base 35"
638
+ fails "String#to_i with bases parses a String in base 36"
639
+ fails "String#to_i with bases parses a String in base 4"
640
+ fails "String#to_i with bases parses a String in base 5"
641
+ fails "String#to_i with bases parses a String in base 6"
642
+ fails "String#to_i with bases parses a String in base 7"
643
+ fails "String#to_i with bases parses a String in base 8"
644
+ fails "String#to_i with bases parses a String in base 9"
645
+ fails "String#to_s taints the result when self is tainted"
646
+ fails "String#to_str taints the result when self is tainted"
647
+ fails "String#tr taints the result when self is tainted"
648
+ fails "String#tr! does not modify self if from_str is empty"
649
+ fails "String#tr! modifies self in place"
650
+ fails "String#tr! raises a RuntimeError if self is frozen"
651
+ fails "String#tr! returns nil if no modification was made"
652
+ fails "String#tr_s taints the result when self is tainted"
653
+ fails "String#tr_s! does not modify self if from_str is empty"
654
+ fails "String#tr_s! modifies self in place"
655
+ fails "String#tr_s! raises a RuntimeError if self is frozen"
656
+ fails "String#tr_s! returns nil if no modification was made"
657
+ fails "String#unicode_normalize! modifies original string (nfc)"
658
+ fails "String#unicode_normalize! modifies self in place (nfd)"
659
+ fails "String#unicode_normalize! modifies self in place (nfkc)"
660
+ fails "String#unicode_normalize! modifies self in place (nfkd)"
661
+ fails "String#unicode_normalize! normalizes code points and modifies the receiving string"
662
+ fails "String#unicode_normalize! raises an ArgumentError if the specified form is invalid"
663
+ fails "String#unicode_normalize! raises an Encoding::CompatibilityError if the string is not in an unicode encoding"
664
+ fails "String#upcase is locale insensitive (only replaces a-z)"
665
+ fails "String#upcase taints result when self is tainted"
666
+ fails "String#upcase! does not allow invalid options" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
667
+ fails "String#upcase! does not allow the :fold option for upcasing" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
668
+ fails "String#upcase! full Unicode case mapping modifies self in place for all of Unicode with no option" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
669
+ fails "String#upcase! full Unicode case mapping updates string metadata for self" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
670
+ fails "String#upcase! modifies self in place for ASCII-only case mapping does not upcase non-ASCII characters" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
671
+ fails "String#upcase! modifies self in place for all of Unicode" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
672
+ fails "String#upcase! modifies self in place for full Unicode case mapping adapted for Lithuanian allows Turkic as an extra option (and applies Turkic semantics)" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
673
+ fails "String#upcase! modifies self in place for full Unicode case mapping adapted for Lithuanian currently works the same as full Unicode case mapping" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
674
+ fails "String#upcase! modifies self in place for full Unicode case mapping adapted for Lithuanian does not allow any other additional option" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
675
+ fails "String#upcase! modifies self in place for full Unicode case mapping adapted for Turkic languages allows Lithuanian as an extra option" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
676
+ fails "String#upcase! modifies self in place for full Unicode case mapping adapted for Turkic languages does not allow any other additional option" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
677
+ fails "String#upcase! modifies self in place for full Unicode case mapping adapted for Turkic languages upcases ASCII characters according to Turkic semantics" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
678
+ fails "String#upcase! modifies self in place"
679
+ fails "String#upcase! raises a RuntimeError when self is frozen"
680
+ fails "String#upcase! returns nil if no modifications were made"
681
+ fails "String#upto does not work with symbols"
682
+ fails "String.allocate returns a binary String"
683
+ fails "String.allocate returns a fully-formed String"
684
+ fails "String.new returns a binary String"
685
+ fails "String.new returns a fully-formed String"
686
+ fails "String.new returns a new string given a string argument"
687
+ end