opal 1.0.1 → 1.1.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (406) hide show
  1. checksums.yaml +4 -4
  2. data/.codeclimate.yml +14 -12
  3. data/.gitattributes +1 -1
  4. data/.github/FUNDING.yml +1 -0
  5. data/.github/workflows/build.yml +90 -0
  6. data/.jshintrc +1 -1
  7. data/.overcommit.yml +35 -0
  8. data/.rubocop.yml +44 -7
  9. data/{.rubocop_todo.yml → .rubocop/todo.yml} +4 -5
  10. data/CHANGELOG.md +129 -7
  11. data/Gemfile +2 -3
  12. data/HACKING.md +2 -9
  13. data/README.md +20 -17
  14. data/UNRELEASED.md +106 -7
  15. data/benchmark-ips/bm_array_pop_1.rb +8 -0
  16. data/benchmark-ips/bm_array_shift.rb +7 -0
  17. data/benchmark-ips/class_shovel_vs_singleton_class.rb +16 -0
  18. data/bin/build-browser-source-map-support +5 -0
  19. data/bin/format-filters +54 -0
  20. data/bin/git-submodule-fast-install +49 -0
  21. data/bin/remove-filters +39 -0
  22. data/bin/setup +4 -0
  23. data/bin/yarn +11 -0
  24. data/docs/releasing.md +18 -0
  25. data/docs/roda-sprockets.md +86 -0
  26. data/docs/sinatra.md +5 -12
  27. data/examples/rack/Gemfile +1 -0
  28. data/examples/rack/app/application.rb +3 -0
  29. data/examples/rack/config.ru +5 -4
  30. data/exe/opal-repl +2 -83
  31. data/lib/opal/ast/builder.rb +1 -1
  32. data/lib/opal/builder.rb +2 -10
  33. data/lib/opal/builder_processors.rb +1 -1
  34. data/lib/opal/cli.rb +4 -1
  35. data/lib/opal/cli_options.rb +11 -3
  36. data/lib/opal/cli_runners.rb +27 -37
  37. data/lib/opal/cli_runners/applescript.rb +5 -44
  38. data/lib/opal/cli_runners/chrome.js +7 -35
  39. data/lib/opal/cli_runners/chrome.rb +77 -19
  40. data/lib/opal/cli_runners/compiler.rb +17 -0
  41. data/lib/opal/cli_runners/nashorn.rb +9 -43
  42. data/lib/opal/cli_runners/nodejs.rb +18 -47
  43. data/lib/opal/cli_runners/server.rb +18 -6
  44. data/lib/opal/cli_runners/source-map-support-browser.js +6445 -0
  45. data/lib/opal/cli_runners/source-map-support.js +639 -0
  46. data/lib/opal/cli_runners/system_runner.rb +45 -0
  47. data/lib/opal/compiler.rb +57 -29
  48. data/lib/opal/config.rb +0 -5
  49. data/lib/opal/erb.rb +1 -1
  50. data/lib/opal/magic_comments.rb +34 -0
  51. data/lib/opal/nodes/args/arity_check.rb +2 -1
  52. data/lib/opal/nodes/base.rb +1 -1
  53. data/lib/opal/nodes/call.rb +1 -4
  54. data/lib/opal/nodes/def.rb +2 -0
  55. data/lib/opal/nodes/iter.rb +1 -1
  56. data/lib/opal/nodes/literal.rb +19 -14
  57. data/lib/opal/nodes/logic.rb +5 -80
  58. data/lib/opal/nodes/masgn.rb +2 -0
  59. data/lib/opal/nodes/rescue.rb +1 -1
  60. data/lib/opal/nodes/super.rb +24 -10
  61. data/lib/opal/nodes/top.rb +5 -4
  62. data/lib/opal/parser/patch.rb +15 -0
  63. data/lib/opal/parser/with_c_lexer.rb +2 -1
  64. data/lib/opal/parser/with_ruby_lexer.rb +1 -1
  65. data/lib/opal/path_reader.rb +2 -2
  66. data/lib/opal/paths.rb +8 -5
  67. data/lib/opal/repl.rb +103 -0
  68. data/lib/opal/rewriter.rb +4 -0
  69. data/lib/opal/rewriters/for_rewriter.rb +1 -1
  70. data/lib/opal/rewriters/js_reserved_words.rb +7 -7
  71. data/lib/opal/rewriters/numblocks.rb +31 -0
  72. data/lib/opal/rewriters/returnable_logic.rb +33 -0
  73. data/lib/opal/util.rb +11 -48
  74. data/lib/opal/version.rb +1 -1
  75. data/opal.gemspec +25 -25
  76. data/opal/corelib/array.rb +160 -118
  77. data/opal/corelib/array/pack.rb +5 -3
  78. data/opal/corelib/basic_object.rb +4 -4
  79. data/opal/corelib/class.rb +2 -1
  80. data/opal/corelib/comparable.rb +49 -31
  81. data/opal/corelib/constants.rb +5 -5
  82. data/opal/corelib/enumerable.rb +108 -46
  83. data/opal/corelib/enumerator.rb +27 -12
  84. data/opal/corelib/file.rb +3 -1
  85. data/opal/corelib/hash.rb +6 -1
  86. data/opal/corelib/helpers.rb +8 -28
  87. data/opal/corelib/io.rb +12 -7
  88. data/opal/corelib/kernel.rb +45 -14
  89. data/opal/corelib/kernel/format.rb +3 -1
  90. data/opal/corelib/math.rb +8 -6
  91. data/opal/corelib/method.rb +8 -0
  92. data/opal/corelib/module.rb +17 -2
  93. data/opal/corelib/number.rb +3 -12
  94. data/opal/corelib/proc.rb +16 -0
  95. data/opal/corelib/random/mersenne_twister.rb +147 -0
  96. data/opal/corelib/range.rb +3 -13
  97. data/opal/corelib/regexp.rb +10 -6
  98. data/opal/corelib/runtime.js +208 -81
  99. data/opal/corelib/string.rb +55 -49
  100. data/opal/corelib/string/encoding.rb +109 -32
  101. data/opal/corelib/string/unpack.rb +2 -17
  102. data/opal/corelib/struct.rb +14 -1
  103. data/opal/corelib/time.rb +4 -0
  104. data/opal/opal.rb +1 -1
  105. data/opal/opal/mini.rb +1 -1
  106. data/package.json +16 -0
  107. data/spec/README.md +10 -0
  108. data/spec/filters/bugs/array.rb +76 -0
  109. data/spec/filters/bugs/base64.rb +10 -0
  110. data/spec/filters/bugs/basicobject.rb +12 -0
  111. data/spec/filters/bugs/bigdecimal.rb +248 -0
  112. data/spec/filters/bugs/class.rb +12 -0
  113. data/spec/filters/bugs/complex.rb +7 -0
  114. data/spec/filters/bugs/date.rb +104 -0
  115. data/spec/filters/bugs/encoding.rb +259 -0
  116. data/spec/filters/bugs/enumerable.rb +26 -0
  117. data/spec/filters/bugs/enumerator.rb +48 -0
  118. data/spec/filters/bugs/exception.rb +120 -0
  119. data/spec/filters/bugs/file.rb +48 -0
  120. data/spec/filters/bugs/float.rb +74 -0
  121. data/spec/filters/bugs/hash.rb +60 -0
  122. data/spec/filters/bugs/integer.rb +78 -0
  123. data/spec/filters/bugs/io.rb +9 -0
  124. data/spec/filters/bugs/kernel.rb +401 -0
  125. data/spec/filters/bugs/language.rb +451 -0
  126. data/spec/filters/bugs/marshal.rb +50 -0
  127. data/spec/filters/bugs/math.rb +4 -0
  128. data/spec/filters/bugs/method.rb +79 -0
  129. data/spec/filters/bugs/module.rb +281 -0
  130. data/spec/filters/bugs/nilclass.rb +4 -0
  131. data/spec/filters/bugs/numeric.rb +27 -0
  132. data/spec/filters/bugs/openstruct.rb +8 -0
  133. data/spec/filters/bugs/pack_unpack.rb +138 -0
  134. data/spec/filters/bugs/pathname.rb +9 -0
  135. data/spec/filters/bugs/proc.rb +80 -0
  136. data/spec/filters/bugs/random.rb +20 -0
  137. data/spec/filters/bugs/range.rb +139 -0
  138. data/spec/filters/bugs/rational.rb +12 -0
  139. data/spec/filters/bugs/regexp.rb +91 -0
  140. data/spec/filters/bugs/set.rb +51 -0
  141. data/spec/filters/bugs/singleton.rb +7 -0
  142. data/spec/filters/bugs/string.rb +341 -0
  143. data/spec/filters/bugs/stringscanner.rb +78 -0
  144. data/spec/filters/bugs/struct.rb +26 -0
  145. data/spec/filters/bugs/symbol.rb +7 -0
  146. data/spec/filters/bugs/time.rb +109 -0
  147. data/spec/filters/bugs/unboundmethod.rb +33 -0
  148. data/spec/filters/bugs/warnings.rb +30 -0
  149. data/spec/filters/unsupported/array.rb +168 -0
  150. data/spec/filters/unsupported/basicobject.rb +15 -0
  151. data/spec/filters/unsupported/bignum.rb +55 -0
  152. data/spec/filters/unsupported/class.rb +5 -0
  153. data/spec/filters/unsupported/delegator.rb +6 -0
  154. data/spec/filters/unsupported/enumerable.rb +12 -0
  155. data/spec/filters/unsupported/enumerator.rb +14 -0
  156. data/spec/filters/unsupported/file.rb +4 -0
  157. data/spec/filters/unsupported/fixnum.rb +15 -0
  158. data/spec/filters/unsupported/float.rb +47 -0
  159. data/spec/filters/unsupported/freeze.rb +259 -0
  160. data/spec/filters/unsupported/hash.rb +44 -0
  161. data/spec/filters/unsupported/integer.rb +101 -0
  162. data/spec/filters/unsupported/kernel.rb +35 -0
  163. data/spec/filters/unsupported/language.rb +25 -0
  164. data/spec/filters/unsupported/marshal.rb +44 -0
  165. data/spec/filters/unsupported/matchdata.rb +63 -0
  166. data/spec/filters/unsupported/math.rb +4 -0
  167. data/spec/filters/unsupported/pathname.rb +4 -0
  168. data/spec/filters/unsupported/privacy.rb +287 -0
  169. data/spec/filters/unsupported/proc.rb +4 -0
  170. data/spec/filters/unsupported/random.rb +5 -0
  171. data/spec/filters/unsupported/range.rb +8 -0
  172. data/spec/filters/unsupported/regexp.rb +70 -0
  173. data/spec/filters/unsupported/set.rb +5 -0
  174. data/spec/filters/unsupported/singleton.rb +7 -0
  175. data/spec/filters/unsupported/string.rb +687 -0
  176. data/spec/filters/unsupported/struct.rb +7 -0
  177. data/spec/filters/unsupported/symbol.rb +21 -0
  178. data/spec/filters/unsupported/taint.rb +162 -0
  179. data/spec/filters/unsupported/thread.rb +10 -0
  180. data/spec/filters/unsupported/time.rb +204 -0
  181. data/spec/filters/unsupported/usage_of_files.rb +262 -0
  182. data/spec/lib/builder_processors_spec.rb +44 -0
  183. data/spec/lib/builder_spec.rb +133 -0
  184. data/spec/lib/cli_runners/server_spec.rb +25 -0
  185. data/spec/lib/cli_runners_spec.rb +16 -0
  186. data/spec/lib/cli_spec.rb +256 -0
  187. data/spec/lib/compiler_spec.rb +693 -0
  188. data/spec/lib/config_spec.rb +112 -0
  189. data/spec/lib/dependency_resolver_spec.rb +43 -0
  190. data/spec/lib/deprecations_spec.rb +17 -0
  191. data/spec/lib/fixtures/complex_sprockets.js.rb.erb +4 -0
  192. data/spec/lib/fixtures/file_with_directives.js +2 -0
  193. data/spec/lib/fixtures/jst_file.js.jst +1 -0
  194. data/spec/lib/fixtures/no_requires.rb +1 -0
  195. data/spec/lib/fixtures/opal_file.rb +2 -0
  196. data/spec/lib/fixtures/require_tree_test.rb +3 -0
  197. data/spec/lib/fixtures/required_file.js +1 -0
  198. data/spec/lib/fixtures/required_tree_test/required_file1.rb +1 -0
  199. data/spec/lib/fixtures/required_tree_test/required_file2.rb +1 -0
  200. data/spec/lib/fixtures/requires.rb +7 -0
  201. data/spec/lib/fixtures/source_location_test.rb +7 -0
  202. data/spec/lib/fixtures/source_map.rb +1 -0
  203. data/spec/lib/fixtures/source_map/subfolder/other_file.rb +1 -0
  204. data/spec/lib/fixtures/sprockets_file.js.rb +3 -0
  205. data/spec/lib/fixtures/sprockets_require_tree_test.rb +3 -0
  206. data/spec/lib/path_reader_spec.rb +47 -0
  207. data/spec/lib/paths_spec.rb +18 -0
  208. data/spec/lib/repl_spec.rb +28 -0
  209. data/spec/lib/rewriters/base_spec.rb +68 -0
  210. data/spec/lib/rewriters/binary_operator_assignment_spec.rb +153 -0
  211. data/spec/lib/rewriters/block_to_iter_spec.rb +28 -0
  212. data/spec/lib/rewriters/dot_js_syntax_spec.rb +108 -0
  213. data/spec/lib/rewriters/explicit_writer_return_spec.rb +186 -0
  214. data/spec/lib/rewriters/for_rewriter_spec.rb +92 -0
  215. data/spec/lib/rewriters/hashes/key_duplicates_rewriter_spec.rb +47 -0
  216. data/spec/lib/rewriters/js_reserved_words_spec.rb +119 -0
  217. data/spec/lib/rewriters/logical_operator_assignment_spec.rb +202 -0
  218. data/spec/lib/rewriters/opal_engine_check_spec.rb +84 -0
  219. data/spec/lib/rewriters/returnable_logic_spec.rb +52 -0
  220. data/spec/lib/rewriters/rubyspec/filters_rewriter_spec.rb +59 -0
  221. data/spec/lib/simple_server_spec.rb +56 -0
  222. data/spec/lib/source_map/file_spec.rb +67 -0
  223. data/spec/lib/source_map/index_spec.rb +80 -0
  224. data/spec/lib/spec_helper.rb +105 -0
  225. data/spec/mspec-opal/formatters.rb +197 -0
  226. data/spec/mspec-opal/runner.rb +172 -0
  227. data/spec/opal/compiler/irb_spec.rb +44 -0
  228. data/spec/opal/compiler/unicode_spec.rb +10 -0
  229. data/spec/opal/core/array/dup_spec.rb +23 -0
  230. data/spec/opal/core/array/intersection_spec.rb +38 -0
  231. data/spec/opal/core/array/minus_spec.rb +38 -0
  232. data/spec/opal/core/array/union_spec.rb +38 -0
  233. data/spec/opal/core/array/uniq_spec.rb +49 -0
  234. data/spec/opal/core/class/inherited_spec.rb +18 -0
  235. data/spec/opal/core/enumerable/all_break_spec.rb +5 -0
  236. data/spec/opal/core/enumerable/any_break_spec.rb +5 -0
  237. data/spec/opal/core/enumerable/collect_break_spec.rb +13 -0
  238. data/spec/opal/core/enumerable/count_break_spec.rb +5 -0
  239. data/spec/opal/core/enumerable/detect_break_spec.rb +5 -0
  240. data/spec/opal/core/enumerable/drop_while_break_spec.rb +5 -0
  241. data/spec/opal/core/enumerable/each_slice_break_spec.rb +6 -0
  242. data/spec/opal/core/enumerable/each_with_index_break_spec.rb +5 -0
  243. data/spec/opal/core/enumerable/each_with_object_break_spec.rb +5 -0
  244. data/spec/opal/core/enumerable/find_all_break_spec.rb +5 -0
  245. data/spec/opal/core/enumerable/find_index_break_spec.rb +5 -0
  246. data/spec/opal/core/enumerable/grep_break_spec.rb +5 -0
  247. data/spec/opal/core/enumerable/max_break_spec.rb +5 -0
  248. data/spec/opal/core/enumerable/max_by_break_spec.rb +5 -0
  249. data/spec/opal/core/enumerable/min_break_spec.rb +5 -0
  250. data/spec/opal/core/enumerable/min_by_break_spec.rb +5 -0
  251. data/spec/opal/core/enumerable/none_break_spec.rb +5 -0
  252. data/spec/opal/core/enumerable/one_break_spec.rb +5 -0
  253. data/spec/opal/core/enumerable/reduce_break_spec.rb +5 -0
  254. data/spec/opal/core/enumerable/take_while_break_spec.rb +5 -0
  255. data/spec/opal/core/enumerator/with_index_spec.rb +6 -0
  256. data/spec/opal/core/exception_spec.rb +8 -0
  257. data/spec/opal/core/fixtures/require_tree_files/file 1.rb +1 -0
  258. data/spec/opal/core/fixtures/require_tree_files/file 2.rb +1 -0
  259. data/spec/opal/core/fixtures/require_tree_files/file 3.rb +1 -0
  260. data/spec/opal/core/fixtures/require_tree_files/file 4.rb +1 -0
  261. data/spec/opal/core/fixtures/require_tree_files/file 5.rb +1 -0
  262. data/spec/opal/core/fixtures/require_tree_files/nested/nested 1.rb +1 -0
  263. data/spec/opal/core/fixtures/require_tree_files/nested/nested 2.rb +1 -0
  264. data/spec/opal/core/fixtures/require_tree_files/other/other 1.rb +1 -0
  265. data/spec/opal/core/fixtures/require_tree_with_dot/file 1.rb +1 -0
  266. data/spec/opal/core/fixtures/require_tree_with_dot/file 2.rb +1 -0
  267. data/spec/opal/core/fixtures/require_tree_with_dot/file 3.rb +1 -0
  268. data/spec/opal/core/fixtures/require_tree_with_dot/index.rb +3 -0
  269. data/spec/opal/core/hash/internals_spec.rb +339 -0
  270. data/spec/opal/core/helpers_spec.rb +14 -0
  271. data/spec/opal/core/iterable_props_spec.rb +53 -0
  272. data/spec/opal/core/kernel/at_exit_spec.rb +70 -0
  273. data/spec/opal/core/kernel/freeze_spec.rb +15 -0
  274. data/spec/opal/core/kernel/instance_variables_spec.rb +110 -0
  275. data/spec/opal/core/kernel/methods_spec.rb +25 -0
  276. data/spec/opal/core/kernel/public_methods_spec.rb +25 -0
  277. data/spec/opal/core/kernel/require_tree_spec.rb +18 -0
  278. data/spec/opal/core/kernel/respond_to_spec.rb +15 -0
  279. data/spec/opal/core/language/DATA/characters_support_spec.rb +9 -0
  280. data/spec/opal/core/language/DATA/empty___END___spec.rb +7 -0
  281. data/spec/opal/core/language/DATA/multiple___END___spec.rb +10 -0
  282. data/spec/opal/core/language/arguments/mlhs_arg_spec.rb +18 -0
  283. data/spec/opal/core/language/keyword_arguments_spec.rb +9 -0
  284. data/spec/opal/core/language/numblocks_spec.rb +16 -0
  285. data/spec/opal/core/language/safe_navigator_spec.rb +7 -0
  286. data/spec/opal/core/language/while_spec.rb +31 -0
  287. data/spec/opal/core/language_spec.rb +29 -0
  288. data/spec/opal/core/marshal/dump_spec.rb +81 -0
  289. data/spec/opal/core/marshal/load_spec.rb +13 -0
  290. data/spec/opal/core/module_spec.rb +27 -0
  291. data/spec/opal/core/object_id_spec.rb +56 -0
  292. data/spec/opal/core/regexp/interpolation_spec.rb +40 -0
  293. data/spec/opal/core/regexp/match_spec.rb +78 -0
  294. data/spec/opal/core/runtime/bridged_classes_spec.rb +123 -0
  295. data/spec/opal/core/runtime/constants_spec.rb +16 -0
  296. data/spec/opal/core/runtime/eval_spec.rb +5 -0
  297. data/spec/opal/core/runtime/exit_spec.rb +29 -0
  298. data/spec/opal/core/runtime/is_a_spec.rb +48 -0
  299. data/spec/opal/core/runtime/loaded_spec.rb +20 -0
  300. data/spec/opal/core/runtime/main_methods_spec.rb +39 -0
  301. data/spec/opal/core/runtime/method_missing_spec.rb +68 -0
  302. data/spec/opal/core/runtime/rescue_spec.rb +37 -0
  303. data/spec/opal/core/runtime/string_spec.rb +25 -0
  304. data/spec/opal/core/runtime/truthy_spec.rb +61 -0
  305. data/spec/opal/core/runtime_spec.rb +58 -0
  306. data/spec/opal/core/string/each_byte_spec.rb +19 -0
  307. data/spec/opal/core/string/gsub_spec.rb +35 -0
  308. data/spec/opal/core/string/to_sym_spec.rb +9 -0
  309. data/spec/opal/core/string_spec.rb +28 -0
  310. data/spec/opal/core/struct/dup_spec.rb +11 -0
  311. data/spec/opal/core/time_spec.rb +68 -0
  312. data/spec/opal/stdlib/erb/erb_spec.rb +30 -0
  313. data/spec/opal/stdlib/erb/inline_block.opalerb +3 -0
  314. data/spec/opal/stdlib/erb/quoted.opalerb +1 -0
  315. data/spec/opal/stdlib/erb/simple.opalerb +1 -0
  316. data/spec/opal/stdlib/js_spec.rb +72 -0
  317. data/spec/opal/stdlib/json/ext_spec.rb +55 -0
  318. data/spec/opal/stdlib/json/parse_spec.rb +37 -0
  319. data/spec/opal/stdlib/logger/logger_spec.rb +308 -0
  320. data/spec/opal/stdlib/native/alias_native_spec.rb +27 -0
  321. data/spec/opal/stdlib/native/array_spec.rb +11 -0
  322. data/spec/opal/stdlib/native/date_spec.rb +12 -0
  323. data/spec/opal/stdlib/native/deprecated_include_spec.rb +8 -0
  324. data/spec/opal/stdlib/native/each_spec.rb +13 -0
  325. data/spec/opal/stdlib/native/element_reference_spec.rb +16 -0
  326. data/spec/opal/stdlib/native/exposure_spec.rb +33 -0
  327. data/spec/opal/stdlib/native/ext_spec.rb +19 -0
  328. data/spec/opal/stdlib/native/hash_spec.rb +67 -0
  329. data/spec/opal/stdlib/native/initialize_spec.rb +17 -0
  330. data/spec/opal/stdlib/native/method_missing_spec.rb +51 -0
  331. data/spec/opal/stdlib/native/native_alias_spec.rb +26 -0
  332. data/spec/opal/stdlib/native/native_class_spec.rb +18 -0
  333. data/spec/opal/stdlib/native/native_module_spec.rb +13 -0
  334. data/spec/opal/stdlib/native/native_reader_spec.rb +22 -0
  335. data/spec/opal/stdlib/native/native_writer_spec.rb +30 -0
  336. data/spec/opal/stdlib/native/new_spec.rb +92 -0
  337. data/spec/opal/stdlib/native/struct_spec.rb +12 -0
  338. data/spec/opal/stdlib/pp_spec.rb +5 -0
  339. data/spec/opal/stdlib/promise/always_spec.rb +49 -0
  340. data/spec/opal/stdlib/promise/error_spec.rb +15 -0
  341. data/spec/opal/stdlib/promise/rescue_spec.rb +53 -0
  342. data/spec/opal/stdlib/promise/then_spec.rb +79 -0
  343. data/spec/opal/stdlib/promise/trace_spec.rb +51 -0
  344. data/spec/opal/stdlib/promise/value_spec.rb +15 -0
  345. data/spec/opal/stdlib/promise/when_spec.rb +34 -0
  346. data/spec/opal/stdlib/source_map_spec.rb +8 -0
  347. data/spec/opal/stdlib/strscan/scan_spec.rb +11 -0
  348. data/spec/opal/stdlib/template/paths_spec.rb +10 -0
  349. data/spec/opal/stdlib/thread/mutex_spec.rb +40 -0
  350. data/spec/opal/stdlib/thread/thread_queue_spec.rb +32 -0
  351. data/spec/opal/stdlib/thread/thread_spec.rb +60 -0
  352. data/spec/ruby_specs +183 -0
  353. data/spec/spec_helper.rb +31 -0
  354. data/spec/support/guard_platform.rb +4 -0
  355. data/spec/support/match_helpers.rb +57 -0
  356. data/spec/support/mspec_rspec_adapter.rb +33 -0
  357. data/spec/support/rewriters_helper.rb +54 -0
  358. data/spec/support/source_map_helper.rb +190 -0
  359. data/stdlib/base64.rb +2 -2
  360. data/stdlib/bigdecimal.rb +15 -3
  361. data/stdlib/bigdecimal/bignumber.js.rb +1 -1
  362. data/stdlib/bigdecimal/util.rb +148 -0
  363. data/stdlib/delegate.rb +8 -0
  364. data/stdlib/nodejs/fileutils.rb +1 -1
  365. data/stdlib/nodejs/kernel.rb +0 -13
  366. data/stdlib/nodejs/stacktrace.rb +4 -179
  367. data/stdlib/ostruct.rb +5 -0
  368. data/stdlib/pp.rb +586 -19
  369. data/stdlib/prettyprint.rb +556 -0
  370. data/stdlib/rbconfig/sizeof.rb +2 -0
  371. data/stdlib/securerandom.rb +32 -0
  372. data/stdlib/set.rb +36 -0
  373. data/stdlib/strscan.rb +15 -0
  374. data/tasks/benchmarking.rake +1 -1
  375. data/tasks/linting.rake +3 -5
  376. data/tasks/releasing.rake +2 -5
  377. data/tasks/testing.rake +16 -11
  378. data/tasks/testing/mspec_special_calls.rb +1 -19
  379. data/test/nodejs/fixtures/cat.png +0 -0
  380. data/test/nodejs/fixtures/hello.rb +1 -0
  381. data/test/nodejs/fixtures/iso88591.txt +1 -0
  382. data/test/nodejs/fixtures/utf8.txt +1 -0
  383. data/test/nodejs/fixtures/win1258.txt +1 -0
  384. data/test/nodejs/test_dir.rb +39 -0
  385. data/test/nodejs/test_env.rb +62 -0
  386. data/test/nodejs/test_error.rb +29 -0
  387. data/test/nodejs/test_file.rb +206 -0
  388. data/test/nodejs/test_file_encoding.rb +20 -0
  389. data/test/nodejs/test_io.rb +18 -0
  390. data/test/nodejs/test_opal_builder.rb +12 -0
  391. data/test/nodejs/test_pathname.rb +16 -0
  392. data/test/opal/cat.png +0 -0
  393. data/test/opal/http_server.rb +52 -0
  394. data/test/opal/test_base64.rb +115 -0
  395. data/test/opal/test_keyword.rb +590 -0
  396. data/test/opal/test_matrix.rb +661 -0
  397. data/test/opal/test_openuri.rb +53 -0
  398. data/test/opal/unsupported_and_bugs.rb +39 -0
  399. data/yarn.lock +1355 -0
  400. metadata +899 -36
  401. data/.travis.yml +0 -109
  402. data/appveyor.yml +0 -35
  403. data/lib/opal/nodes/runtime_helpers.rb +0 -51
  404. data/opal/corelib/random/MersenneTwister.js +0 -137
  405. data/opal/corelib/random/mersenne_twister.js.rb +0 -13
  406. data/stdlib/bigdecimal/kernel.rb +0 -5
@@ -0,0 +1,7 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "Struct" do
3
+ fails "Struct#initialize is private"
4
+ fails "Struct.new does not create a constant with symbol as first argument"
5
+ fails "Struct.new fails with invalid constant name as first argument" # this invalid name gets interpreted as a struct member
6
+ fails "Struct.new raises a TypeError if object is not a Symbol"
7
+ end
@@ -0,0 +1,21 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "Symbol" do
3
+ fails "A Symbol literal can be an empty string"
4
+ fails "A Symbol literal can be created by the %s-delimited expression"
5
+ fails "A Symbol literal can contain null in the string"
6
+ fails "A Symbol literal is a ':' followed by a single- or double-quoted string that may contain otherwise invalid characters"
7
+ fails "A Symbol literal is a ':' followed by any number of valid characters"
8
+ fails "A Symbol literal is converted to a literal, unquoted representation if the symbol contains only valid characters"
9
+ fails "Fixnum#coerce raises a TypeError when given an Object that does not respond to #to_f"
10
+ fails "Hash literal raises a TypeError if any splatted elements keys are not symbols"
11
+ fails "Marshal.dump with a Symbol dumps a Symbol"
12
+ fails "Marshal.dump with a Symbol dumps a big Symbol"
13
+ fails "Marshal.dump with a Symbol dumps a binary encoded Symbol"
14
+ fails "Marshal.dump with a Symbol dumps an encoded Symbol"
15
+ fails "Marshal.dump with an Array dumps a non-empty Array" # this particular spec dumps a Symbol, spec with String instead of Symbol is in spec/opal/
16
+ fails "Module#const_get raises a NameError if a Symbol has a toplevel scope qualifier"
17
+ fails "Module#const_get raises a NameError if a Symbol is a scoped constant name"
18
+ fails "Numeric#coerce raises a TypeError when passed a Symbol"
19
+ fails "Symbol#to_proc produces a proc that always returns [[:rest]] for #parameters"
20
+ fails "The throw keyword does not convert strings to a symbol"
21
+ end
@@ -0,0 +1,162 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "taint" do
3
+ fails "Array#pack with format 'A' returns a tainted string when a pack argument is tainted"
4
+ fails "Array#pack with format 'A' returns a tainted string when an empty format is tainted"
5
+ fails "Array#pack with format 'A' returns a tainted string when the format is tainted"
6
+ fails "Array#pack with format 'A' returns a trusted string when the array is untrusted"
7
+ fails "Array#pack with format 'A' returns a untrusted string when a pack argument is untrusted"
8
+ fails "Array#pack with format 'A' returns a untrusted string when the empty format is untrusted"
9
+ fails "Array#pack with format 'A' returns a untrusted string when the format is untrusted"
10
+ fails "Array#pack with format 'A' taints the output string if the format string is tainted"
11
+ fails "Array#pack with format 'C' taints the output string if the format string is tainted"
12
+ fails "Array#pack with format 'L' taints the output string if the format string is tainted"
13
+ fails "Array#pack with format 'U' taints the output string if the format string is tainted"
14
+ fails "Array#pack with format 'a' returns a tainted string when a pack argument is tainted"
15
+ fails "Array#pack with format 'a' returns a tainted string when an empty format is tainted"
16
+ fails "Array#pack with format 'a' returns a tainted string when the format is tainted"
17
+ fails "Array#pack with format 'a' returns a trusted string when the array is untrusted"
18
+ fails "Array#pack with format 'a' returns a untrusted string when a pack argument is untrusted"
19
+ fails "Array#pack with format 'a' returns a untrusted string when the empty format is untrusted"
20
+ fails "Array#pack with format 'a' returns a untrusted string when the format is untrusted"
21
+ fails "Array#pack with format 'a' taints the output string if the format string is tainted"
22
+ fails "Array#pack with format 'c' taints the output string if the format string is tainted"
23
+ fails "Array#pack with format 'l' taints the output string if the format string is tainted"
24
+ fails "Array#pack with format 'u' does not return a tainted string when the array is tainted" # RuntimeError: Unsupported pack directive "u" (no chunk reader defined)
25
+ fails "Array#pack with format 'u' returns a tainted string when a pack argument is tainted" # RuntimeError: Unsupported pack directive "u" (no chunk reader defined)
26
+ fails "Array#pack with format 'u' returns a tainted string when an empty format is tainted" # Expected false to be true
27
+ fails "Array#pack with format 'u' returns a tainted string when the format is tainted" # RuntimeError: Unsupported pack directive "u" (no chunk reader defined)
28
+ fails "Array#pack with format 'u' returns a trusted string when the array is untrusted" # NoMethodError: undefined method `untrust' for ["abcd", 32]
29
+ fails "Array#pack with format 'u' returns a untrusted string when a pack argument is untrusted" # NoMethodError: undefined method `untrust' for "abcd"
30
+ fails "Array#pack with format 'u' returns a untrusted string when the empty format is untrusted" # NoMethodError: undefined method `untrust' for ""
31
+ fails "Array#pack with format 'u' returns a untrusted string when the format is untrusted" # NoMethodError: undefined method `untrust' for "u3C"
32
+ fails "Array#pack with format 'u' taints the output string if the format string is tainted"
33
+ fails "Hash#reject with extra state does not taint the resulting hash"
34
+ fails "Kernel#inspect returns a tainted string if self is tainted"
35
+ fails "Module#append_features copies own tainted status to the given module"
36
+ fails "Module#append_features copies own untrusted status to the given module"
37
+ fails "Module#extend_object does not copy own tainted status to the given object"
38
+ fails "Module#extend_object does not copy own untrusted status to the given object"
39
+ fails "Module#prepend_features copies own tainted status to the given module"
40
+ fails "Module#prepend_features copies own untrusted status to the given module"
41
+ fails "String#% doesn't taint the result for %E when argument is tainted"
42
+ fails "String#% doesn't taint the result for %G when argument is tainted"
43
+ fails "String#% doesn't taint the result for %e when argument is tainted"
44
+ fails "String#% doesn't taint the result for %f when argument is tainted"
45
+ fails "String#% doesn't taint the result for %g when argument is tainted"
46
+ fails "String#[] with Regexp always taints resulting strings when self or regexp is tainted"
47
+ fails "String#[] with Regexp returns an untrusted string if the regexp is untrusted"
48
+ fails "String#byteslice with Range always taints resulting strings when self is tainted"
49
+ fails "String#byteslice with index, length always taints resulting strings when self is tainted"
50
+ fails "String#delete_prefix taints resulting strings when other is tainted" # NoMethodError: undefined method `delete_prefix' for "hello":String
51
+ fails "String#delete_suffix taints resulting strings when other is tainted" # NoMethodError: undefined method `delete_suffix' for "hello":String
52
+ fails "String#dump taints the result if self is tainted"
53
+ fails "String#slice with Regexp always taints resulting strings when self or regexp is tainted"
54
+ fails "String#slice with Regexp returns an untrusted string if the regexp is untrusted"
55
+ fails "String#unpack with format 'A' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "A2"
56
+ fails "String#unpack with format 'A' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
57
+ fails "String#unpack with format 'A' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
58
+ fails "String#unpack with format 'A' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
59
+ fails "String#unpack with format 'A' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "A2"
60
+ fails "String#unpack with format 'A' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
61
+ fails "String#unpack with format 'A' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
62
+ fails "String#unpack with format 'A' taints returned strings if given a tainted packed string" # Expected false to be true
63
+ fails "String#unpack with format 'A' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
64
+ fails "String#unpack with format 'B' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "B2"
65
+ fails "String#unpack with format 'B' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
66
+ fails "String#unpack with format 'B' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
67
+ fails "String#unpack with format 'B' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
68
+ fails "String#unpack with format 'B' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "B2"
69
+ fails "String#unpack with format 'B' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
70
+ fails "String#unpack with format 'B' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
71
+ fails "String#unpack with format 'B' taints returned strings if given a tainted packed string" # Expected false to be true
72
+ fails "String#unpack with format 'B' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
73
+ fails "String#unpack with format 'H' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "H2"
74
+ fails "String#unpack with format 'H' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
75
+ fails "String#unpack with format 'H' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
76
+ fails "String#unpack with format 'H' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
77
+ fails "String#unpack with format 'H' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "H2"
78
+ fails "String#unpack with format 'H' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
79
+ fails "String#unpack with format 'H' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
80
+ fails "String#unpack with format 'H' taints returned strings if given a tainted packed string" # Expected false to be true
81
+ fails "String#unpack with format 'H' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
82
+ fails "String#unpack with format 'M' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "M2"
83
+ fails "String#unpack with format 'M' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
84
+ fails "String#unpack with format 'M' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
85
+ fails "String#unpack with format 'M' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
86
+ fails "String#unpack with format 'M' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "M2"
87
+ fails "String#unpack with format 'M' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
88
+ fails "String#unpack with format 'M' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
89
+ fails "String#unpack with format 'M' taints returned strings if given a tainted packed string" # Expected false to be true
90
+ fails "String#unpack with format 'M' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
91
+ fails "String#unpack with format 'U' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "U2"
92
+ fails "String#unpack with format 'U' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
93
+ fails "String#unpack with format 'U' does not untrust returned arrays if given an trusted packed string" # Exception: Cannot read property '$__id__' of undefined
94
+ fails "String#unpack with format 'U' does not untrust returned arrays if given an untrusted format string" # Exception: Cannot read property '$__id__' of undefined
95
+ fails "String#unpack with format 'U' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "U2"
96
+ fails "String#unpack with format 'U' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for nil
97
+ fails "String#unpack with format 'U' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for nil
98
+ fails "String#unpack with format 'U' taints returned strings if given a tainted packed string" # Expected false to be true
99
+ fails "String#unpack with format 'U' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
100
+ fails "String#unpack with format 'Z' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "Z2"
101
+ fails "String#unpack with format 'Z' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
102
+ fails "String#unpack with format 'Z' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
103
+ fails "String#unpack with format 'Z' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
104
+ fails "String#unpack with format 'Z' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "Z2"
105
+ fails "String#unpack with format 'Z' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
106
+ fails "String#unpack with format 'Z' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
107
+ fails "String#unpack with format 'Z' taints returned strings if given a tainted packed string" # Expected false to be true
108
+ fails "String#unpack with format 'Z' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
109
+ fails "String#unpack with format 'a' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "a2"
110
+ fails "String#unpack with format 'a' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
111
+ fails "String#unpack with format 'a' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
112
+ fails "String#unpack with format 'a' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
113
+ fails "String#unpack with format 'a' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "a2"
114
+ fails "String#unpack with format 'a' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
115
+ fails "String#unpack with format 'a' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
116
+ fails "String#unpack with format 'a' taints returned strings if given a tainted packed string" # Expected false to be true
117
+ fails "String#unpack with format 'a' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
118
+ fails "String#unpack with format 'b' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "b2"
119
+ fails "String#unpack with format 'b' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
120
+ fails "String#unpack with format 'b' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
121
+ fails "String#unpack with format 'b' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
122
+ fails "String#unpack with format 'b' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "b2"
123
+ fails "String#unpack with format 'b' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
124
+ fails "String#unpack with format 'b' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
125
+ fails "String#unpack with format 'b' taints returned strings if given a tainted packed string" # Expected false to be true
126
+ fails "String#unpack with format 'b' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
127
+ fails "String#unpack with format 'h' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "h2"
128
+ fails "String#unpack with format 'h' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
129
+ fails "String#unpack with format 'h' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
130
+ fails "String#unpack with format 'h' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
131
+ fails "String#unpack with format 'h' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "h2"
132
+ fails "String#unpack with format 'h' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
133
+ fails "String#unpack with format 'h' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
134
+ fails "String#unpack with format 'h' taints returned strings if given a tainted packed string" # Expected false to be true
135
+ fails "String#unpack with format 'h' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
136
+ fails "String#unpack with format 'm' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "m2"
137
+ fails "String#unpack with format 'm' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
138
+ fails "String#unpack with format 'm' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
139
+ fails "String#unpack with format 'm' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
140
+ fails "String#unpack with format 'm' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "m2"
141
+ fails "String#unpack with format 'm' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
142
+ fails "String#unpack with format 'm' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
143
+ fails "String#unpack with format 'm' taints returned strings if given a tainted packed string" # Expected false to be true
144
+ fails "String#unpack with format 'm' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
145
+ fails "String#unpack with format 'u' does not untrust returned arrays if given a untrusted format string" # NoMethodError: undefined method `untrust' for "u2"
146
+ fails "String#unpack with format 'u' does not untrust returned arrays if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
147
+ fails "String#unpack with format 'u' does not untrust returned arrays if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for [""]
148
+ fails "String#unpack with format 'u' does not untrust returned arrays if given an untrusted format string" # NoMethodError: undefined method `untrusted?' for [""]
149
+ fails "String#unpack with format 'u' does not untrust returned strings if given a untrusted format string" # NoMethodError: undefined method `untrust' for "u2"
150
+ fails "String#unpack with format 'u' does not untrust returned strings if given an trusted packed string" # NoMethodError: undefined method `untrusted?' for ""
151
+ fails "String#unpack with format 'u' does not untrust returned strings if given an untainted format string" # NoMethodError: undefined method `untrusted?' for ""
152
+ fails "String#unpack with format 'u' taints returned strings if given a tainted packed string" # Expected false to be true
153
+ fails "String#unpack with format 'u' untrusts returned strings if given a untrusted packed string" # NoMethodError: undefined method `untrust' for ""
154
+ fails "StringScanner#getbyte taints the returned String if the input was tainted"
155
+ fails "StringScanner#getch taints the returned String if the input was tainted"
156
+ fails "StringScanner#matched taints the returned String if the input was tainted"
157
+ fails "StringScanner#peek taints the returned String if the input was tainted"
158
+ fails "StringScanner#peep taints the returned String if the input was tainted"
159
+ fails "StringScanner#post_match taints the returned String if the input was tainted"
160
+ fails "StringScanner#pre_match taints the returned String if the input was tainted"
161
+ fails "StringScanner#rest taints the returned String if the input was tainted"
162
+ end
@@ -0,0 +1,10 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "Thread" do
3
+ fails "Module#autoload (concurrently) raises a LoadError in each thread if the file does not exist" # NotImplementedError: Thread creation not available
4
+ fails "Module#autoload (concurrently) raises a NameError in each thread if the constant is not set" # NotImplementedError: Thread creation not available
5
+ fails "Module#autoload loads the registered constant even if the constant was already loaded by another thread"
6
+ fails "StandardError is a superclass of ThreadError"
7
+ fails "The return keyword in a Thread raises a LocalJumpError if used to exit a thread"
8
+ fails "The throw keyword clears the current exception"
9
+ fails "The throw keyword raises an ArgumentError if used to exit a thread"
10
+ end
@@ -0,0 +1,204 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_unsupported_filter "Time" do
3
+ fails "Time#+ accepts arguments that can be coerced into Rational"
4
+ fails "Time#+ adds a negative Float"
5
+ fails "Time#+ increments the time by the specified amount as rational numbers"
6
+ fails "Time#+ maintains microseconds precision"
7
+ fails "Time#+ maintains nanoseconds precision"
8
+ fails "Time#+ maintains precision"
9
+ fails "Time#+ maintains subseconds precision"
10
+ fails "Time#+ returns a time with the same fixed offset as self"
11
+ fails "Time#+ tracks microseconds"
12
+ fails "Time#+ tracks nanoseconds"
13
+ fails "Time#- accepts arguments that can be coerced into Rational"
14
+ fails "Time#- maintains microseconds precision"
15
+ fails "Time#- maintains nanoseconds precision"
16
+ fails "Time#- maintains precision"
17
+ fails "Time#- maintains subseconds precision"
18
+ fails "Time#- returns a time with nanoseconds precision between two time objects"
19
+ fails "Time#- returns a time with the same fixed offset as self"
20
+ fails "Time#- tracks microseconds"
21
+ fails "Time#- tracks nanoseconds"
22
+ fails "Time#<=> returns -1 if the first argument is a fraction of a microsecond before the second argument"
23
+ fails "Time#<=> returns -1 if the first argument is a point in time before the second argument (down to a microsecond)"
24
+ fails "Time#<=> returns 0 if time is the same as other, including fractional microseconds"
25
+ fails "Time#<=> returns 1 if the first argument is a fraction of a microsecond after the second argument"
26
+ fails "Time#<=> returns 1 if the first argument is a point in time after the second argument (down to a microsecond)"
27
+ fails "Time#day returns the day of the month (1..n) for a local Time"
28
+ fails "Time#day returns the day of the month for a Time with a fixed offset"
29
+ fails "Time#dst? dst? returns whether time is during daylight saving time"
30
+ fails "Time#dup returns a subclass instance"
31
+ fails "Time#eql? returns false if self and other have differing fractional microseconds"
32
+ fails "Time#eql? returns false if self and other have differing numbers of microseconds"
33
+ fails "Time#getgm returns a new time which is the utc representation of time"
34
+ fails "Time#getlocal raises ArgumentError if the String argument is not of the form (+|-)HH:MM"
35
+ fails "Time#getlocal raises ArgumentError if the argument represents a value greater than or equal to 86400 seconds"
36
+ fails "Time#getlocal raises ArgumentError if the argument represents a value less than or equal to -86400 seconds"
37
+ fails "Time#getlocal returns a Time with UTC offset specified as an Integer number of seconds"
38
+ fails "Time#getlocal returns a Time with a UTC offset of the specified number of Rational seconds"
39
+ fails "Time#getlocal returns a Time with a UTC offset specified as +HH:MM"
40
+ fails "Time#getlocal returns a Time with a UTC offset specified as -HH:MM"
41
+ fails "Time#getlocal returns a new time which is the local representation of time"
42
+ fails "Time#getlocal returns a new time with the correct utc_offset according to the set timezone"
43
+ fails "Time#getlocal with an argument that responds to #to_int coerces using #to_int"
44
+ fails "Time#getlocal with an argument that responds to #to_r coerces using #to_r"
45
+ fails "Time#getlocal with an argument that responds to #to_str coerces using #to_str"
46
+ fails "Time#getutc returns a new time which is the utc representation of time"
47
+ fails "Time#gmt_offset given negative offset returns a negative offset"
48
+ fails "Time#gmt_offset given positive offset returns a positive offset"
49
+ fails "Time#gmt_offset returns offset as Rational"
50
+ fails "Time#gmt_offset returns the correct offset for Hawaii around daylight savings time change"
51
+ fails "Time#gmt_offset returns the correct offset for New Zealand around daylight savings time change"
52
+ fails "Time#gmt_offset returns the correct offset for US Eastern time zone around daylight savings time change"
53
+ fails "Time#gmt_offset returns the offset in seconds between the timezone of time and UTC"
54
+ fails "Time#gmtime returns the utc representation of time"
55
+ fails "Time#gmtoff given negative offset returns a negative offset"
56
+ fails "Time#gmtoff given positive offset returns a positive offset"
57
+ fails "Time#gmtoff returns offset as Rational"
58
+ fails "Time#gmtoff returns the correct offset for Hawaii around daylight savings time change"
59
+ fails "Time#gmtoff returns the correct offset for New Zealand around daylight savings time change"
60
+ fails "Time#gmtoff returns the correct offset for US Eastern time zone around daylight savings time change"
61
+ fails "Time#gmtoff returns the offset in seconds between the timezone of time and UTC"
62
+ fails "Time#hash returns a Fixnum"
63
+ fails "Time#hour returns the hour of the day (0..23) for a local Time"
64
+ fails "Time#hour returns the hour of the day for a Time with a fixed offset"
65
+ fails "Time#isdst dst? returns whether time is during daylight saving time"
66
+ fails "Time#localtime changes the timezone according to the set one"
67
+ fails "Time#localtime converts self to local time, modifying the receiver"
68
+ fails "Time#localtime converts time to the UTC offset specified as an Integer number of seconds"
69
+ fails "Time#localtime does nothing if already in a local time zone"
70
+ fails "Time#localtime raises ArgumentError if the String argument is not of the form (+|-)HH:MM"
71
+ fails "Time#localtime raises ArgumentError if the argument represents a value greater than or equal to 86400 seconds"
72
+ fails "Time#localtime raises ArgumentError if the argument represents a value less than or equal to -86400 seconds"
73
+ fails "Time#localtime returns a Time with a UTC offset of the specified number of Rational seconds"
74
+ fails "Time#localtime returns a Time with a UTC offset specified as +HH:MM"
75
+ fails "Time#localtime returns a Time with a UTC offset specified as -HH:MM"
76
+ fails "Time#localtime returns self"
77
+ fails "Time#localtime with an argument that responds to #to_int coerces using #to_int"
78
+ fails "Time#localtime with an argument that responds to #to_r coerces using #to_r"
79
+ fails "Time#localtime with an argument that responds to #to_str coerces using #to_str"
80
+ fails "Time#mday returns the day of the month (1..n) for a local Time"
81
+ fails "Time#mday returns the day of the month for a Time with a fixed offset"
82
+ fails "Time#min returns the minute of the hour (0..59) for a local Time"
83
+ fails "Time#min returns the minute of the hour for a Time with a fixed offset"
84
+ fails "Time#mon returns the four digit year for a Time with a fixed offset"
85
+ fails "Time#mon returns the month of the year for a local Time"
86
+ fails "Time#month returns the four digit year for a Time with a fixed offset"
87
+ fails "Time#month returns the month of the year for a local Time"
88
+ fails "Time#nsec returns 0 for a Time constructed with a whole number of seconds"
89
+ fails "Time#nsec returns the nanoseconds part of a Time constructed with a Float number of seconds"
90
+ fails "Time#nsec returns the nanoseconds part of a Time constructed with a Rational number of seconds"
91
+ fails "Time#nsec returns the nanoseconds part of a Time constructed with an Float number of microseconds"
92
+ fails "Time#nsec returns the nanoseconds part of a Time constructed with an Integer number of microseconds"
93
+ fails "Time#nsec returns the nanoseconds part of a Time constructed with an Rational number of microseconds"
94
+ fails "Time#strftime with %L formats the milliseconds of the second"
95
+ fails "Time#strftime with %z formats a UTC time offset as '+0000'"
96
+ fails "Time#strftime with %z formats a local time with negative UTC offset as '-HHMM'"
97
+ fails "Time#strftime with %z formats a local time with positive UTC offset as '+HHMM'"
98
+ fails "Time#strftime with %z formats a time with fixed negative offset as '-HHMM'"
99
+ fails "Time#strftime with %z formats a time with fixed offset as '+/-HH:MM' with ':' specifier"
100
+ fails "Time#strftime with %z formats a time with fixed offset as '+/-HH:MM:SS' with '::' specifier"
101
+ fails "Time#strftime with %z formats a time with fixed positive offset as '+HHMM'"
102
+ fails "Time#subsec returns 0 as a Fixnum for a Time with a whole number of seconds"
103
+ fails "Time#subsec returns the fractional seconds as a Rational for a Time constructed with a Float number of seconds"
104
+ fails "Time#subsec returns the fractional seconds as a Rational for a Time constructed with a Rational number of seconds"
105
+ fails "Time#subsec returns the fractional seconds as a Rational for a Time constructed with an Float number of microseconds"
106
+ fails "Time#subsec returns the fractional seconds as a Rational for a Time constructed with an Integer number of microseconds"
107
+ fails "Time#subsec returns the fractional seconds as a Rational for a Time constructed with an Rational number of microseconds"
108
+ fails "Time#to_a returns a 10 element array representing the deconstructed time"
109
+ fails "Time#to_r returns a Rational even for a whole number of seconds"
110
+ fails "Time#to_r returns the a Rational representing seconds and subseconds since the epoch"
111
+ fails "Time#usec returns 0 for a Time constructed with an Rational number of microseconds < 1"
112
+ fails "Time#usec returns the microseconds for time created by Time#local"
113
+ fails "Time#usec returns the microseconds part of a Time constructed with a Rational number of seconds"
114
+ fails "Time#usec returns the microseconds part of a Time constructed with an Float number of microseconds > 1"
115
+ fails "Time#usec returns the microseconds part of a Time constructed with an Integer number of microseconds"
116
+ fails "Time#usec returns the microseconds part of a Time constructed with an Rational number of microseconds > 1"
117
+ fails "Time#utc returns the utc representation of time"
118
+ fails "Time#utc_offset given negative offset returns a negative offset"
119
+ fails "Time#utc_offset given positive offset returns a positive offset"
120
+ fails "Time#utc_offset returns offset as Rational"
121
+ fails "Time#utc_offset returns the correct offset for Hawaii around daylight savings time change"
122
+ fails "Time#utc_offset returns the correct offset for New Zealand around daylight savings time change"
123
+ fails "Time#utc_offset returns the correct offset for US Eastern time zone around daylight savings time change"
124
+ fails "Time#utc_offset returns the offset in seconds between the timezone of time and UTC"
125
+ fails "Time#wday returns an integer representing the day of the week, 0..6, with Sunday being 0"
126
+ fails "Time#year returns the four digit year for a Time with a fixed offset"
127
+ fails "Time#year returns the four digit year for a local Time as an Integer"
128
+ fails "Time#zone Encoding.default_internal is set doesn't raise errors for a Time with a fixed offset"
129
+ fails "Time#zone Encoding.default_internal is set returns the string with the default internal encoding"
130
+ fails "Time#zone returns UTC when called on a UTC time"
131
+ fails "Time#zone returns nil for a Time with a fixed offset"
132
+ fails "Time#zone returns nil when getting the local time with a fixed offset"
133
+ fails "Time#zone returns the correct timezone for a local time"
134
+ fails "Time#zone returns the time zone used for time"
135
+ fails "Time.at passed Numeric returns a subclass instance on a Time subclass"
136
+ fails "Time.at passed Time returns a subclass instance"
137
+ fails "Time.at passed [Integer, Numeric] returns a Time object representing the given number of seconds and Float microseconds since 1970-01-01 00:00:00 UTC"
138
+ fails "Time.at passed non-Time, non-Numeric with an argument that responds to #to_r coerces using #to_r"
139
+ fails "Time.at with a second argument that responds to #to_r coerces using #to_r"
140
+ fails "Time.gm handles fractional microseconds as a Float"
141
+ fails "Time.gm handles fractional microseconds as a Rational"
142
+ fails "Time.gm handles fractional seconds as a Rational"
143
+ fails "Time.gm handles microseconds"
144
+ fails "Time.gm ignores fractional seconds if a passed fractional number of microseconds"
145
+ fails "Time.gm ignores fractional seconds if a passed whole number of microseconds"
146
+ fails "Time.gm returns subclass instances"
147
+ fails "Time.local creates a time based on given C-style gmtime arguments, interpreted in the local time zone"
148
+ fails "Time.local creates a time based on given values, interpreted in the local time zone"
149
+ fails "Time.local creates the correct time just after dst change"
150
+ fails "Time.local creates the correct time just before dst change"
151
+ fails "Time.local handles fractional microseconds as a Float"
152
+ fails "Time.local handles fractional microseconds as a Rational"
153
+ fails "Time.local handles fractional seconds as a Rational"
154
+ fails "Time.local handles microseconds"
155
+ fails "Time.local ignores fractional seconds if a passed fractional number of microseconds"
156
+ fails "Time.local ignores fractional seconds if a passed whole number of microseconds"
157
+ fails "Time.local respects rare old timezones"
158
+ fails "Time.local returns subclass instances"
159
+ fails "Time.local timezone changes correctly adjusts the timezone change to 'CEST' on 'Europe/Amsterdam'"
160
+ fails "Time.local timezone changes correctly adjusts the timezone change to 'EET' on 'Europe/Istanbul'"
161
+ fails "Time.mktime creates a time based on given C-style gmtime arguments, interpreted in the local time zone"
162
+ fails "Time.mktime creates a time based on given values, interpreted in the local time zone"
163
+ fails "Time.mktime creates the correct time just after dst change"
164
+ fails "Time.mktime creates the correct time just before dst change"
165
+ fails "Time.mktime handles fractional microseconds as a Float"
166
+ fails "Time.mktime handles fractional microseconds as a Rational"
167
+ fails "Time.mktime handles fractional seconds as a Rational"
168
+ fails "Time.mktime handles microseconds"
169
+ fails "Time.mktime ignores fractional seconds if a passed fractional number of microseconds"
170
+ fails "Time.mktime ignores fractional seconds if a passed whole number of microseconds"
171
+ fails "Time.mktime respects rare old timezones"
172
+ fails "Time.mktime returns subclass instances"
173
+ fails "Time.mktime timezone changes correctly adjusts the timezone change to 'CEST' on 'Europe/Amsterdam'"
174
+ fails "Time.mktime timezone changes correctly adjusts the timezone change to 'EET' on 'Europe/Istanbul'"
175
+ fails "Time.new creates a subclass instance if called on a subclass"
176
+ fails "Time.new creates a time based on given values, interpreted in the local time zone"
177
+ fails "Time.new handles fractional seconds as a Rational"
178
+ fails "Time.new respects rare old timezones"
179
+ fails "Time.new returns subclass instances"
180
+ fails "Time.new timezone changes correctly adjusts the timezone change to 'CEST' on 'Europe/Amsterdam'"
181
+ fails "Time.new timezone changes correctly adjusts the timezone change to 'EET' on 'Europe/Istanbul'"
182
+ fails "Time.new with a utc_offset argument adds one hour if the offset minute value is greater than 59"
183
+ fails "Time.new with a utc_offset argument raises ArgumentError if the String argument is not of the form (+|-)HH:MM"
184
+ fails "Time.new with a utc_offset argument raises ArgumentError if the argument represents a value greater than or equal to 86400 seconds"
185
+ fails "Time.new with a utc_offset argument raises ArgumentError if the argument represents a value less than or equal to -86400 seconds"
186
+ fails "Time.new with a utc_offset argument raises ArgumentError if the hour value is greater than 23"
187
+ fails "Time.new with a utc_offset argument returns a Time with a UTC offset of the specified number of Integer seconds"
188
+ fails "Time.new with a utc_offset argument returns a Time with a UTC offset of the specified number of Rational seconds"
189
+ fails "Time.new with a utc_offset argument returns a Time with a UTC offset specified as +HH:MM"
190
+ fails "Time.new with a utc_offset argument returns a Time with a UTC offset specified as -HH:MM"
191
+ fails "Time.new with a utc_offset argument returns a local Time if the argument is nil"
192
+ fails "Time.new with a utc_offset argument returns a non-UTC time"
193
+ fails "Time.new with a utc_offset argument with an argument that responds to #to_int coerces using #to_int"
194
+ fails "Time.new with a utc_offset argument with an argument that responds to #to_r coerces using #to_r"
195
+ fails "Time.new with a utc_offset argument with an argument that responds to #to_str coerces using #to_str"
196
+ fails "Time.now creates a subclass instance if called on a subclass"
197
+ fails "Time.utc handles fractional microseconds as a Float"
198
+ fails "Time.utc handles fractional microseconds as a Rational"
199
+ fails "Time.utc handles fractional seconds as a Rational"
200
+ fails "Time.utc handles microseconds"
201
+ fails "Time.utc ignores fractional seconds if a passed fractional number of microseconds"
202
+ fails "Time.utc ignores fractional seconds if a passed whole number of microseconds"
203
+ fails "Time.utc returns subclass instances"
204
+ end
@@ -0,0 +1,262 @@
1
+ # NOTE: run bin/format-filters after changing this file
2
+ opal_filter "Specs that use temporary files" do
3
+ fails "A Symbol literal inherits the encoding of the magic comment and can have a binary encoding"
4
+ fails "Kernel.printf formatting io is not specified faulty key raises a KeyError"
5
+ fails "Kernel.printf formatting io is not specified faulty key sets the Hash as the receiver of KeyError"
6
+ fails "Kernel.printf formatting io is not specified faulty key sets the unmatched key as the key of KeyError"
7
+ fails "Kernel.printf formatting io is not specified flags # applies to format o does nothing for negative argument"
8
+ fails "Kernel.printf formatting io is not specified flags # applies to format o increases the precision until the first digit will be `0' if it is not formatted as complements"
9
+ fails "Kernel.printf formatting io is not specified flags # applies to formats aAeEfgG changes format from dd.dddd to exponential form for gG"
10
+ fails "Kernel.printf formatting io is not specified flags # applies to formats aAeEfgG forces a decimal point to be added, even if no digits follow"
11
+ fails "Kernel.printf formatting io is not specified flags # applies to formats bBxX does nothing for zero argument"
12
+ fails "Kernel.printf formatting io is not specified flags # applies to formats bBxX prefixes the result with 0x, 0X, 0b and 0B respectively for non-zero argument"
13
+ fails "Kernel.printf formatting io is not specified flags # applies to gG does not remove trailing zeros"
14
+ fails "Kernel.printf formatting io is not specified flags (digit)$ ignores '-' sign"
15
+ fails "Kernel.printf formatting io is not specified flags (digit)$ raises ArgumentError exception when absolute and relative argument numbers are mixed"
16
+ fails "Kernel.printf formatting io is not specified flags (digit)$ raises exception if argument number is bigger than actual arguments list"
17
+ fails "Kernel.printf formatting io is not specified flags (digit)$ specifies the absolute argument number for this field"
18
+ fails "Kernel.printf formatting io is not specified flags * left-justifies the result if specified with $ argument is negative"
19
+ fails "Kernel.printf formatting io is not specified flags * left-justifies the result if width is negative"
20
+ fails "Kernel.printf formatting io is not specified flags * raises ArgumentError when is mixed with width"
21
+ fails "Kernel.printf formatting io is not specified flags * uses the previous argument as the field width"
22
+ fails "Kernel.printf formatting io is not specified flags * uses the specified argument as the width if * is followed by a number and $"
23
+ fails "Kernel.printf formatting io is not specified flags + applies to numeric formats bBdiouxXaAeEfgG adds a leading plus sign to non-negative numbers"
24
+ fails "Kernel.printf formatting io is not specified flags + applies to numeric formats bBdiouxXaAeEfgG does not use two's complement form for negative numbers for formats bBoxX"
25
+ fails "Kernel.printf formatting io is not specified flags - left-justifies the result of conversion if width is specified"
26
+ fails "Kernel.printf formatting io is not specified flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified pads with zeros, not spaces"
27
+ fails "Kernel.printf formatting io is not specified flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified uses radix-1 when displays negative argument as a two's complement"
28
+ fails "Kernel.printf formatting io is not specified flags space applies to numeric formats bBdiouxXeEfgGaA does not leave a space at the start of negative numbers"
29
+ fails "Kernel.printf formatting io is not specified flags space applies to numeric formats bBdiouxXeEfgGaA leaves a space at the start of non-negative numbers"
30
+ fails "Kernel.printf formatting io is not specified flags space applies to numeric formats bBdiouxXeEfgGaA prevents converting negative argument to two's complement form"
31
+ fails "Kernel.printf formatting io is not specified flags space applies to numeric formats bBdiouxXeEfgGaA treats several white spaces as one"
32
+ fails "Kernel.printf formatting io is not specified float formats A converts floating point argument as [-]0xh.hhhhp[+-]dd and use uppercase X and P"
33
+ fails "Kernel.printf formatting io is not specified float formats A displays Float::INFINITY as Inf"
34
+ fails "Kernel.printf formatting io is not specified float formats A displays Float::NAN as NaN"
35
+ fails "Kernel.printf formatting io is not specified float formats E converts argument into exponential notation [-]d.dddddde[+-]dd"
36
+ fails "Kernel.printf formatting io is not specified float formats E cuts excessive digits and keeps only 6 ones"
37
+ fails "Kernel.printf formatting io is not specified float formats E displays Float::INFINITY as Inf"
38
+ fails "Kernel.printf formatting io is not specified float formats E displays Float::NAN as NaN"
39
+ fails "Kernel.printf formatting io is not specified float formats E rounds the last significant digit to the closest one"
40
+ fails "Kernel.printf formatting io is not specified float formats G displays Float::INFINITY as Inf"
41
+ fails "Kernel.printf formatting io is not specified float formats G displays Float::NAN as NaN"
42
+ fails "Kernel.printf formatting io is not specified float formats G otherwise converts a floating point number in dd.dddd form"
43
+ fails "Kernel.printf formatting io is not specified float formats G otherwise cuts excessive digits in fractional part and keeps only 4 ones"
44
+ fails "Kernel.printf formatting io is not specified float formats G otherwise cuts fraction part to have only 6 digits at all"
45
+ fails "Kernel.printf formatting io is not specified float formats G otherwise rounds the last significant digit to the closest one in fractional part"
46
+ fails "Kernel.printf formatting io is not specified float formats G the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form"
47
+ fails "Kernel.printf formatting io is not specified float formats G the exponent is less than -4 converts a floating point number using exponential form"
48
+ fails "Kernel.printf formatting io is not specified float formats a converts floating point argument as [-]0xh.hhhhp[+-]dd"
49
+ fails "Kernel.printf formatting io is not specified float formats a displays Float::INFINITY as Inf"
50
+ fails "Kernel.printf formatting io is not specified float formats a displays Float::NAN as NaN"
51
+ fails "Kernel.printf formatting io is not specified float formats converts argument into Float"
52
+ fails "Kernel.printf formatting io is not specified float formats e converts argument into exponential notation [-]d.dddddde[+-]dd"
53
+ fails "Kernel.printf formatting io is not specified float formats e cuts excessive digits and keeps only 6 ones"
54
+ fails "Kernel.printf formatting io is not specified float formats e displays Float::INFINITY as Inf"
55
+ fails "Kernel.printf formatting io is not specified float formats e displays Float::NAN as NaN"
56
+ fails "Kernel.printf formatting io is not specified float formats e rounds the last significant digit to the closest one"
57
+ fails "Kernel.printf formatting io is not specified float formats f converts floating point argument as [-]ddd.dddddd"
58
+ fails "Kernel.printf formatting io is not specified float formats f cuts excessive digits and keeps only 6 ones"
59
+ fails "Kernel.printf formatting io is not specified float formats f displays Float::INFINITY as Inf"
60
+ fails "Kernel.printf formatting io is not specified float formats f displays Float::NAN as NaN"
61
+ fails "Kernel.printf formatting io is not specified float formats f rounds the last significant digit to the closest one"
62
+ fails "Kernel.printf formatting io is not specified float formats g displays Float::INFINITY as Inf"
63
+ fails "Kernel.printf formatting io is not specified float formats g displays Float::NAN as NaN"
64
+ fails "Kernel.printf formatting io is not specified float formats g otherwise converts a floating point number in dd.dddd form"
65
+ fails "Kernel.printf formatting io is not specified float formats g otherwise cuts excessive digits in fractional part and keeps only 4 ones"
66
+ fails "Kernel.printf formatting io is not specified float formats g otherwise cuts fraction part to have only 6 digits at all"
67
+ fails "Kernel.printf formatting io is not specified float formats g otherwise rounds the last significant digit to the closest one in fractional part"
68
+ fails "Kernel.printf formatting io is not specified float formats g the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form"
69
+ fails "Kernel.printf formatting io is not specified float formats g the exponent is less than -4 converts a floating point number using exponential form"
70
+ fails "Kernel.printf formatting io is not specified float formats raises TypeError exception if cannot convert to Float"
71
+ fails "Kernel.printf formatting io is not specified integer formats B collapse negative number representation if it equals 1"
72
+ fails "Kernel.printf formatting io is not specified integer formats B converts argument as a binary number"
73
+ fails "Kernel.printf formatting io is not specified integer formats B displays negative number as a two's complement prefixed with '..1'"
74
+ fails "Kernel.printf formatting io is not specified integer formats X collapse negative number representation if it equals F"
75
+ fails "Kernel.printf formatting io is not specified integer formats X converts argument as a hexadecimal number with uppercase letters"
76
+ fails "Kernel.printf formatting io is not specified integer formats X displays negative number as a two's complement prefixed with '..f'"
77
+ fails "Kernel.printf formatting io is not specified integer formats b collapse negative number representation if it equals 1"
78
+ fails "Kernel.printf formatting io is not specified integer formats b converts argument as a binary number"
79
+ fails "Kernel.printf formatting io is not specified integer formats b displays negative number as a two's complement prefixed with '..1'"
80
+ fails "Kernel.printf formatting io is not specified integer formats converts String argument with Kernel#Integer"
81
+ fails "Kernel.printf formatting io is not specified integer formats converts argument into Integer with to_i if to_int isn't available"
82
+ fails "Kernel.printf formatting io is not specified integer formats converts argument into Integer with to_int"
83
+ fails "Kernel.printf formatting io is not specified integer formats d converts argument as a decimal number"
84
+ fails "Kernel.printf formatting io is not specified integer formats d works well with large numbers"
85
+ fails "Kernel.printf formatting io is not specified integer formats i converts argument as a decimal number"
86
+ fails "Kernel.printf formatting io is not specified integer formats i works well with large numbers"
87
+ fails "Kernel.printf formatting io is not specified integer formats o collapse negative number representation if it equals 7"
88
+ fails "Kernel.printf formatting io is not specified integer formats o converts argument as an octal number"
89
+ fails "Kernel.printf formatting io is not specified integer formats o displays negative number as a two's complement prefixed with '..7'"
90
+ fails "Kernel.printf formatting io is not specified integer formats raises TypeError exception if cannot convert to Integer"
91
+ fails "Kernel.printf formatting io is not specified integer formats u converts argument as a decimal number"
92
+ fails "Kernel.printf formatting io is not specified integer formats u works well with large numbers"
93
+ fails "Kernel.printf formatting io is not specified integer formats x collapse negative number representation if it equals f"
94
+ fails "Kernel.printf formatting io is not specified integer formats x converts argument as a hexadecimal number"
95
+ fails "Kernel.printf formatting io is not specified integer formats x displays negative number as a two's complement prefixed with '..f'"
96
+ fails "Kernel.printf formatting io is not specified other formats % alone raises an ArgumentError"
97
+ fails "Kernel.printf formatting io is not specified other formats % is escaped by %"
98
+ fails "Kernel.printf formatting io is not specified other formats c displays character if argument is a numeric code of character"
99
+ fails "Kernel.printf formatting io is not specified other formats c displays character if argument is a single character string"
100
+ fails "Kernel.printf formatting io is not specified other formats c raises ArgumentError if argument is a string of several characters"
101
+ fails "Kernel.printf formatting io is not specified other formats c raises ArgumentError if argument is an empty string"
102
+ fails "Kernel.printf formatting io is not specified other formats c supports Unicode characters"
103
+ fails "Kernel.printf formatting io is not specified other formats p displays argument.inspect value"
104
+ fails "Kernel.printf formatting io is not specified other formats s converts argument to string with to_s"
105
+ fails "Kernel.printf formatting io is not specified other formats s does not try to convert with to_str"
106
+ fails "Kernel.printf formatting io is not specified other formats s substitute argument passes as a string"
107
+ fails "Kernel.printf formatting io is not specified precision float types controls the number of decimal places displayed in fraction part"
108
+ fails "Kernel.printf formatting io is not specified precision float types does not affect G format"
109
+ fails "Kernel.printf formatting io is not specified precision integer types controls the number of decimal places displayed"
110
+ fails "Kernel.printf formatting io is not specified precision string formats determines the maximum number of characters to be copied from the string"
111
+ fails "Kernel.printf formatting io is not specified reference by name %<name>s style allows to place name in any position"
112
+ fails "Kernel.printf formatting io is not specified reference by name %<name>s style cannot be mixed with unnamed style"
113
+ fails "Kernel.printf formatting io is not specified reference by name %<name>s style supports flags, width, precision and type"
114
+ fails "Kernel.printf formatting io is not specified reference by name %<name>s style uses value passed in a hash argument"
115
+ fails "Kernel.printf formatting io is not specified reference by name %{name} style cannot be mixed with unnamed style"
116
+ fails "Kernel.printf formatting io is not specified reference by name %{name} style converts value to String with to_s"
117
+ fails "Kernel.printf formatting io is not specified reference by name %{name} style does not support type style"
118
+ fails "Kernel.printf formatting io is not specified reference by name %{name} style raises KeyError when there is no matching key"
119
+ fails "Kernel.printf formatting io is not specified reference by name %{name} style supports flags, width and precision"
120
+ fails "Kernel.printf formatting io is not specified reference by name %{name} style uses value passed in a hash argument"
121
+ fails "Kernel.printf formatting io is not specified width is ignored if argument's actual length is greater"
122
+ fails "Kernel.printf formatting io is not specified width specifies the minimum number of characters that will be written to the result"
123
+ fails "Kernel.printf formatting io is specified faulty key raises a KeyError"
124
+ fails "Kernel.printf formatting io is specified faulty key sets the Hash as the receiver of KeyError"
125
+ fails "Kernel.printf formatting io is specified faulty key sets the unmatched key as the key of KeyError"
126
+ fails "Kernel.printf formatting io is specified flags # applies to format o does nothing for negative argument"
127
+ fails "Kernel.printf formatting io is specified flags # applies to format o increases the precision until the first digit will be `0' if it is not formatted as complements"
128
+ fails "Kernel.printf formatting io is specified flags # applies to formats aAeEfgG changes format from dd.dddd to exponential form for gG"
129
+ fails "Kernel.printf formatting io is specified flags # applies to formats aAeEfgG forces a decimal point to be added, even if no digits follow"
130
+ fails "Kernel.printf formatting io is specified flags # applies to formats bBxX does nothing for zero argument"
131
+ fails "Kernel.printf formatting io is specified flags # applies to formats bBxX prefixes the result with 0x, 0X, 0b and 0B respectively for non-zero argument"
132
+ fails "Kernel.printf formatting io is specified flags # applies to gG does not remove trailing zeros"
133
+ fails "Kernel.printf formatting io is specified flags (digit)$ ignores '-' sign"
134
+ fails "Kernel.printf formatting io is specified flags (digit)$ raises ArgumentError exception when absolute and relative argument numbers are mixed"
135
+ fails "Kernel.printf formatting io is specified flags (digit)$ raises exception if argument number is bigger than actual arguments list"
136
+ fails "Kernel.printf formatting io is specified flags (digit)$ specifies the absolute argument number for this field"
137
+ fails "Kernel.printf formatting io is specified flags * left-justifies the result if specified with $ argument is negative"
138
+ fails "Kernel.printf formatting io is specified flags * left-justifies the result if width is negative"
139
+ fails "Kernel.printf formatting io is specified flags * raises ArgumentError when is mixed with width"
140
+ fails "Kernel.printf formatting io is specified flags * uses the previous argument as the field width"
141
+ fails "Kernel.printf formatting io is specified flags * uses the specified argument as the width if * is followed by a number and $"
142
+ fails "Kernel.printf formatting io is specified flags + applies to numeric formats bBdiouxXaAeEfgG adds a leading plus sign to non-negative numbers"
143
+ fails "Kernel.printf formatting io is specified flags + applies to numeric formats bBdiouxXaAeEfgG does not use two's complement form for negative numbers for formats bBoxX"
144
+ fails "Kernel.printf formatting io is specified flags - left-justifies the result of conversion if width is specified"
145
+ fails "Kernel.printf formatting io is specified flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified pads with zeros, not spaces"
146
+ fails "Kernel.printf formatting io is specified flags 0 (zero) applies to numeric formats bBdiouxXaAeEfgG and width is specified uses radix-1 when displays negative argument as a two's complement"
147
+ fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA does not leave a space at the start of negative numbers"
148
+ fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA leaves a space at the start of non-negative numbers"
149
+ fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA prevents converting negative argument to two's complement form"
150
+ fails "Kernel.printf formatting io is specified flags space applies to numeric formats bBdiouxXeEfgGaA treats several white spaces as one"
151
+ fails "Kernel.printf formatting io is specified float formats A converts floating point argument as [-]0xh.hhhhp[+-]dd and use uppercase X and P"
152
+ fails "Kernel.printf formatting io is specified float formats A displays Float::INFINITY as Inf"
153
+ fails "Kernel.printf formatting io is specified float formats A displays Float::NAN as NaN"
154
+ fails "Kernel.printf formatting io is specified float formats E converts argument into exponential notation [-]d.dddddde[+-]dd"
155
+ fails "Kernel.printf formatting io is specified float formats E cuts excessive digits and keeps only 6 ones"
156
+ fails "Kernel.printf formatting io is specified float formats E displays Float::INFINITY as Inf"
157
+ fails "Kernel.printf formatting io is specified float formats E displays Float::NAN as NaN"
158
+ fails "Kernel.printf formatting io is specified float formats E rounds the last significant digit to the closest one"
159
+ fails "Kernel.printf formatting io is specified float formats G displays Float::INFINITY as Inf"
160
+ fails "Kernel.printf formatting io is specified float formats G displays Float::NAN as NaN"
161
+ fails "Kernel.printf formatting io is specified float formats G otherwise converts a floating point number in dd.dddd form"
162
+ fails "Kernel.printf formatting io is specified float formats G otherwise cuts excessive digits in fractional part and keeps only 4 ones"
163
+ fails "Kernel.printf formatting io is specified float formats G otherwise cuts fraction part to have only 6 digits at all"
164
+ fails "Kernel.printf formatting io is specified float formats G otherwise rounds the last significant digit to the closest one in fractional part"
165
+ fails "Kernel.printf formatting io is specified float formats G the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form"
166
+ fails "Kernel.printf formatting io is specified float formats G the exponent is less than -4 converts a floating point number using exponential form"
167
+ fails "Kernel.printf formatting io is specified float formats a converts floating point argument as [-]0xh.hhhhp[+-]dd"
168
+ fails "Kernel.printf formatting io is specified float formats a displays Float::INFINITY as Inf"
169
+ fails "Kernel.printf formatting io is specified float formats a displays Float::NAN as NaN"
170
+ fails "Kernel.printf formatting io is specified float formats converts argument into Float"
171
+ fails "Kernel.printf formatting io is specified float formats e converts argument into exponential notation [-]d.dddddde[+-]dd"
172
+ fails "Kernel.printf formatting io is specified float formats e cuts excessive digits and keeps only 6 ones"
173
+ fails "Kernel.printf formatting io is specified float formats e displays Float::INFINITY as Inf"
174
+ fails "Kernel.printf formatting io is specified float formats e displays Float::NAN as NaN"
175
+ fails "Kernel.printf formatting io is specified float formats e rounds the last significant digit to the closest one"
176
+ fails "Kernel.printf formatting io is specified float formats f converts floating point argument as [-]ddd.dddddd"
177
+ fails "Kernel.printf formatting io is specified float formats f cuts excessive digits and keeps only 6 ones"
178
+ fails "Kernel.printf formatting io is specified float formats f displays Float::INFINITY as Inf"
179
+ fails "Kernel.printf formatting io is specified float formats f displays Float::NAN as NaN"
180
+ fails "Kernel.printf formatting io is specified float formats f rounds the last significant digit to the closest one"
181
+ fails "Kernel.printf formatting io is specified float formats g displays Float::INFINITY as Inf"
182
+ fails "Kernel.printf formatting io is specified float formats g displays Float::NAN as NaN"
183
+ fails "Kernel.printf formatting io is specified float formats g otherwise converts a floating point number in dd.dddd form"
184
+ fails "Kernel.printf formatting io is specified float formats g otherwise cuts excessive digits in fractional part and keeps only 4 ones"
185
+ fails "Kernel.printf formatting io is specified float formats g otherwise cuts fraction part to have only 6 digits at all"
186
+ fails "Kernel.printf formatting io is specified float formats g otherwise rounds the last significant digit to the closest one in fractional part"
187
+ fails "Kernel.printf formatting io is specified float formats g the exponent is greater than or equal to the precision (6 by default) converts a floating point number using exponential form"
188
+ fails "Kernel.printf formatting io is specified float formats g the exponent is less than -4 converts a floating point number using exponential form"
189
+ fails "Kernel.printf formatting io is specified float formats raises TypeError exception if cannot convert to Float"
190
+ fails "Kernel.printf formatting io is specified integer formats B collapse negative number representation if it equals 1"
191
+ fails "Kernel.printf formatting io is specified integer formats B converts argument as a binary number"
192
+ fails "Kernel.printf formatting io is specified integer formats B displays negative number as a two's complement prefixed with '..1'"
193
+ fails "Kernel.printf formatting io is specified integer formats X collapse negative number representation if it equals F"
194
+ fails "Kernel.printf formatting io is specified integer formats X converts argument as a hexadecimal number with uppercase letters"
195
+ fails "Kernel.printf formatting io is specified integer formats X displays negative number as a two's complement prefixed with '..f'"
196
+ fails "Kernel.printf formatting io is specified integer formats b collapse negative number representation if it equals 1"
197
+ fails "Kernel.printf formatting io is specified integer formats b converts argument as a binary number"
198
+ fails "Kernel.printf formatting io is specified integer formats b displays negative number as a two's complement prefixed with '..1'"
199
+ fails "Kernel.printf formatting io is specified integer formats converts String argument with Kernel#Integer"
200
+ fails "Kernel.printf formatting io is specified integer formats converts argument into Integer with to_i if to_int isn't available"
201
+ fails "Kernel.printf formatting io is specified integer formats converts argument into Integer with to_int"
202
+ fails "Kernel.printf formatting io is specified integer formats d converts argument as a decimal number"
203
+ fails "Kernel.printf formatting io is specified integer formats d works well with large numbers"
204
+ fails "Kernel.printf formatting io is specified integer formats i converts argument as a decimal number"
205
+ fails "Kernel.printf formatting io is specified integer formats i works well with large numbers"
206
+ fails "Kernel.printf formatting io is specified integer formats o collapse negative number representation if it equals 7"
207
+ fails "Kernel.printf formatting io is specified integer formats o converts argument as an octal number"
208
+ fails "Kernel.printf formatting io is specified integer formats o displays negative number as a two's complement prefixed with '..7'"
209
+ fails "Kernel.printf formatting io is specified integer formats raises TypeError exception if cannot convert to Integer"
210
+ fails "Kernel.printf formatting io is specified integer formats u converts argument as a decimal number"
211
+ fails "Kernel.printf formatting io is specified integer formats u works well with large numbers"
212
+ fails "Kernel.printf formatting io is specified integer formats x collapse negative number representation if it equals f"
213
+ fails "Kernel.printf formatting io is specified integer formats x converts argument as a hexadecimal number"
214
+ fails "Kernel.printf formatting io is specified integer formats x displays negative number as a two's complement prefixed with '..f'"
215
+ fails "Kernel.printf formatting io is specified other formats % alone raises an ArgumentError"
216
+ fails "Kernel.printf formatting io is specified other formats % is escaped by %"
217
+ fails "Kernel.printf formatting io is specified other formats c displays character if argument is a numeric code of character"
218
+ fails "Kernel.printf formatting io is specified other formats c displays character if argument is a single character string"
219
+ fails "Kernel.printf formatting io is specified other formats c raises ArgumentError if argument is a string of several characters"
220
+ fails "Kernel.printf formatting io is specified other formats c raises ArgumentError if argument is an empty string"
221
+ fails "Kernel.printf formatting io is specified other formats c supports Unicode characters"
222
+ fails "Kernel.printf formatting io is specified other formats p displays argument.inspect value"
223
+ fails "Kernel.printf formatting io is specified other formats s converts argument to string with to_s"
224
+ fails "Kernel.printf formatting io is specified other formats s does not try to convert with to_str"
225
+ fails "Kernel.printf formatting io is specified other formats s substitute argument passes as a string"
226
+ fails "Kernel.printf formatting io is specified precision float types controls the number of decimal places displayed in fraction part"
227
+ fails "Kernel.printf formatting io is specified precision float types does not affect G format"
228
+ fails "Kernel.printf formatting io is specified precision integer types controls the number of decimal places displayed"
229
+ fails "Kernel.printf formatting io is specified precision string formats determines the maximum number of characters to be copied from the string"
230
+ fails "Kernel.printf formatting io is specified reference by name %<name>s style allows to place name in any position"
231
+ fails "Kernel.printf formatting io is specified reference by name %<name>s style cannot be mixed with unnamed style"
232
+ fails "Kernel.printf formatting io is specified reference by name %<name>s style supports flags, width, precision and type"
233
+ fails "Kernel.printf formatting io is specified reference by name %<name>s style uses value passed in a hash argument"
234
+ fails "Kernel.printf formatting io is specified reference by name %{name} style cannot be mixed with unnamed style"
235
+ fails "Kernel.printf formatting io is specified reference by name %{name} style converts value to String with to_s"
236
+ fails "Kernel.printf formatting io is specified reference by name %{name} style does not support type style"
237
+ fails "Kernel.printf formatting io is specified reference by name %{name} style raises KeyError when there is no matching key"
238
+ fails "Kernel.printf formatting io is specified reference by name %{name} style supports flags, width and precision"
239
+ fails "Kernel.printf formatting io is specified reference by name %{name} style uses value passed in a hash argument"
240
+ fails "Kernel.printf formatting io is specified width is ignored if argument's actual length is greater"
241
+ fails "Kernel.printf formatting io is specified width specifies the minimum number of characters that will be written to the result"
242
+ fails "Struct.new keyword_init: false option behaves like it does without :keyword_init option"
243
+ fails "Struct.new keyword_init: true option creates a class that accepts keyword arguments to initialize"
244
+ fails "Struct.new keyword_init: true option new class instantiation accepts arguments as hash as well"
245
+ fails "Struct.new keyword_init: true option new class instantiation raises ArgumentError when passed a list of arguments"
246
+ fails "Struct.new keyword_init: true option new class instantiation raises ArgumentError when passed not declared keyword argument"
247
+ fails "The BEGIN keyword returns the top-level script's filename for __FILE__"
248
+ fails "The return keyword at top level file loading stops file loading and execution"
249
+ fails "The return keyword at top level file requiring stops file loading and execution"
250
+ fails "The return keyword at top level return with argument does not affect exit status"
251
+ fails "The return keyword at top level stops file execution"
252
+ fails "The return keyword at top level within a begin fires ensure block before returning while loads file"
253
+ fails "The return keyword at top level within a begin fires ensure block before returning"
254
+ fails "The return keyword at top level within a begin is allowed in begin block"
255
+ fails "The return keyword at top level within a begin is allowed in ensure block"
256
+ fails "The return keyword at top level within a begin is allowed in rescue block"
257
+ fails "The return keyword at top level within a begin swallows exception if returns in ensure block"
258
+ fails "The return keyword at top level within a block is allowed"
259
+ fails "The return keyword at top level within a class raises a SyntaxError"
260
+ fails "The return keyword at top level within if is allowed"
261
+ fails "The return keyword at top level within while loop is allowed"
262
+ end