opal 1.0.3 → 1.1.1.rc1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +13 -12
- data/.gitattributes +1 -1
- data/.github/FUNDING.yml +1 -0
- data/.github/workflows/build.yml +90 -0
- data/.jshintrc +1 -1
- data/.overcommit.yml +35 -0
- data/.rubocop.yml +44 -7
- data/{.rubocop_todo.yml → .rubocop/todo.yml} +4 -5
- data/CHANGELOG.md +152 -1
- data/Gemfile +2 -3
- data/HACKING.md +2 -9
- data/LICENSE +1 -1
- data/README.md +21 -18
- data/UNRELEASED.md +4 -2
- data/benchmark-ips/bm_array_pop_1.rb +8 -0
- data/benchmark-ips/bm_array_shift.rb +7 -0
- data/benchmark-ips/bm_js_symbols_vs_strings.rb +7 -2
- data/benchmark-ips/class_shovel_vs_singleton_class.rb +16 -0
- data/bin/build-browser-source-map-support +4 -0
- data/bin/format-filters +54 -0
- data/bin/git-submodule-fast-install +49 -0
- data/bin/remove-filters +39 -0
- data/bin/setup +4 -0
- data/bin/yarn +11 -0
- data/docs/releasing.md +18 -0
- data/docs/roda-sprockets.md +86 -0
- data/docs/sinatra.md +5 -12
- data/examples/rack/Gemfile +1 -0
- data/examples/rack/app/application.rb +3 -0
- data/examples/rack/config.ru +5 -4
- data/exe/opal-repl +2 -83
- data/lib/opal/ast/builder.rb +1 -1
- data/lib/opal/builder.rb +2 -10
- data/lib/opal/builder_processors.rb +1 -1
- data/lib/opal/cli.rb +4 -1
- data/lib/opal/cli_options.rb +11 -3
- data/lib/opal/cli_runners.rb +27 -37
- data/lib/opal/cli_runners/applescript.rb +5 -44
- data/lib/opal/cli_runners/chrome.js +7 -35
- data/lib/opal/cli_runners/chrome.rb +75 -17
- data/lib/opal/cli_runners/compiler.rb +17 -0
- data/lib/opal/cli_runners/nashorn.rb +9 -43
- data/lib/opal/cli_runners/nodejs.rb +18 -47
- data/lib/opal/cli_runners/server.rb +18 -6
- data/lib/opal/cli_runners/source-map-support-browser.js +6449 -0
- data/lib/opal/cli_runners/source-map-support-node.js +3704 -0
- data/lib/opal/cli_runners/source-map-support.js +639 -0
- data/lib/opal/cli_runners/system_runner.rb +45 -0
- data/lib/opal/compiler.rb +57 -29
- data/lib/opal/config.rb +0 -5
- data/lib/opal/erb.rb +1 -1
- data/lib/opal/magic_comments.rb +34 -0
- data/lib/opal/nodes/args/arity_check.rb +2 -1
- data/lib/opal/nodes/base.rb +1 -1
- data/lib/opal/nodes/call.rb +1 -4
- data/lib/opal/nodes/def.rb +2 -0
- data/lib/opal/nodes/iter.rb +1 -1
- data/lib/opal/nodes/literal.rb +19 -14
- data/lib/opal/nodes/logic.rb +5 -80
- data/lib/opal/nodes/masgn.rb +2 -0
- data/lib/opal/nodes/rescue.rb +1 -1
- data/lib/opal/nodes/super.rb +24 -10
- data/lib/opal/nodes/top.rb +5 -4
- data/lib/opal/parser/with_c_lexer.rb +2 -1
- data/lib/opal/parser/with_ruby_lexer.rb +1 -1
- data/lib/opal/path_reader.rb +2 -2
- data/lib/opal/paths.rb +8 -5
- data/lib/opal/repl.rb +103 -0
- data/lib/opal/rewriter.rb +4 -0
- data/lib/opal/rewriters/for_rewriter.rb +1 -1
- data/lib/opal/rewriters/js_reserved_words.rb +7 -7
- data/lib/opal/rewriters/numblocks.rb +31 -0
- data/lib/opal/rewriters/returnable_logic.rb +33 -0
- data/lib/opal/util.rb +11 -48
- data/lib/opal/version.rb +1 -1
- data/opal.gemspec +26 -26
- data/opal/corelib/array.rb +160 -118
- data/opal/corelib/array/pack.rb +5 -3
- data/opal/corelib/basic_object.rb +4 -4
- data/opal/corelib/class.rb +2 -1
- data/opal/corelib/comparable.rb +49 -31
- data/opal/corelib/constants.rb +5 -5
- data/opal/corelib/enumerable.rb +108 -46
- data/opal/corelib/enumerator.rb +27 -12
- data/opal/corelib/file.rb +3 -1
- data/opal/corelib/hash.rb +6 -1
- data/opal/corelib/helpers.rb +8 -28
- data/opal/corelib/io.rb +12 -7
- data/opal/corelib/kernel.rb +45 -14
- data/opal/corelib/kernel/format.rb +3 -1
- data/opal/corelib/math.rb +8 -6
- data/opal/corelib/method.rb +8 -0
- data/opal/corelib/module.rb +17 -2
- data/opal/corelib/number.rb +3 -12
- data/opal/corelib/proc.rb +16 -0
- data/opal/corelib/random/mersenne_twister.rb +147 -0
- data/opal/corelib/range.rb +3 -13
- data/opal/corelib/regexp.rb +10 -6
- data/opal/corelib/runtime.js +208 -81
- data/opal/corelib/string.rb +55 -49
- data/opal/corelib/string/encoding.rb +109 -32
- data/opal/corelib/string/unpack.rb +2 -17
- data/opal/corelib/struct.rb +14 -1
- data/opal/corelib/time.rb +4 -0
- data/opal/opal.rb +1 -1
- data/opal/opal/mini.rb +1 -1
- data/package.json +16 -0
- data/spec/README.md +10 -0
- data/spec/filters/bugs/array.rb +76 -0
- data/spec/filters/bugs/base64.rb +10 -0
- data/spec/filters/bugs/basicobject.rb +12 -0
- data/spec/filters/bugs/bigdecimal.rb +248 -0
- data/spec/filters/bugs/class.rb +12 -0
- data/spec/filters/bugs/complex.rb +7 -0
- data/spec/filters/bugs/date.rb +104 -0
- data/spec/filters/bugs/encoding.rb +259 -0
- data/spec/filters/bugs/enumerable.rb +26 -0
- data/spec/filters/bugs/enumerator.rb +48 -0
- data/spec/filters/bugs/exception.rb +120 -0
- data/spec/filters/bugs/file.rb +48 -0
- data/spec/filters/bugs/float.rb +74 -0
- data/spec/filters/bugs/hash.rb +60 -0
- data/spec/filters/bugs/integer.rb +78 -0
- data/spec/filters/bugs/io.rb +9 -0
- data/spec/filters/bugs/kernel.rb +401 -0
- data/spec/filters/bugs/language.rb +451 -0
- data/spec/filters/bugs/marshal.rb +50 -0
- data/spec/filters/bugs/math.rb +4 -0
- data/spec/filters/bugs/method.rb +79 -0
- data/spec/filters/bugs/module.rb +281 -0
- data/spec/filters/bugs/nilclass.rb +4 -0
- data/spec/filters/bugs/numeric.rb +27 -0
- data/spec/filters/bugs/openstruct.rb +8 -0
- data/spec/filters/bugs/pack_unpack.rb +138 -0
- data/spec/filters/bugs/pathname.rb +9 -0
- data/spec/filters/bugs/proc.rb +80 -0
- data/spec/filters/bugs/random.rb +20 -0
- data/spec/filters/bugs/range.rb +139 -0
- data/spec/filters/bugs/rational.rb +12 -0
- data/spec/filters/bugs/regexp.rb +91 -0
- data/spec/filters/bugs/set.rb +51 -0
- data/spec/filters/bugs/singleton.rb +7 -0
- data/spec/filters/bugs/string.rb +341 -0
- data/spec/filters/bugs/stringscanner.rb +78 -0
- data/spec/filters/bugs/struct.rb +26 -0
- data/spec/filters/bugs/symbol.rb +7 -0
- data/spec/filters/bugs/time.rb +109 -0
- data/spec/filters/bugs/unboundmethod.rb +33 -0
- data/spec/filters/bugs/warnings.rb +30 -0
- data/spec/filters/unsupported/array.rb +168 -0
- data/spec/filters/unsupported/basicobject.rb +15 -0
- data/spec/filters/unsupported/bignum.rb +55 -0
- data/spec/filters/unsupported/class.rb +5 -0
- data/spec/filters/unsupported/delegator.rb +6 -0
- data/spec/filters/unsupported/enumerable.rb +12 -0
- data/spec/filters/unsupported/enumerator.rb +14 -0
- data/spec/filters/unsupported/file.rb +4 -0
- data/spec/filters/unsupported/fixnum.rb +15 -0
- data/spec/filters/unsupported/float.rb +47 -0
- data/spec/filters/unsupported/freeze.rb +259 -0
- data/spec/filters/unsupported/hash.rb +44 -0
- data/spec/filters/unsupported/integer.rb +101 -0
- data/spec/filters/unsupported/kernel.rb +35 -0
- data/spec/filters/unsupported/language.rb +25 -0
- data/spec/filters/unsupported/marshal.rb +44 -0
- data/spec/filters/unsupported/matchdata.rb +63 -0
- data/spec/filters/unsupported/math.rb +4 -0
- data/spec/filters/unsupported/pathname.rb +4 -0
- data/spec/filters/unsupported/privacy.rb +287 -0
- data/spec/filters/unsupported/proc.rb +4 -0
- data/spec/filters/unsupported/random.rb +5 -0
- data/spec/filters/unsupported/range.rb +8 -0
- data/spec/filters/unsupported/regexp.rb +70 -0
- data/spec/filters/unsupported/set.rb +5 -0
- data/spec/filters/unsupported/singleton.rb +7 -0
- data/spec/filters/unsupported/string.rb +687 -0
- data/spec/filters/unsupported/struct.rb +7 -0
- data/spec/filters/unsupported/symbol.rb +21 -0
- data/spec/filters/unsupported/taint.rb +162 -0
- data/spec/filters/unsupported/thread.rb +10 -0
- data/spec/filters/unsupported/time.rb +204 -0
- data/spec/filters/unsupported/usage_of_files.rb +262 -0
- data/spec/lib/builder_processors_spec.rb +44 -0
- data/spec/lib/builder_spec.rb +133 -0
- data/spec/lib/cli_runners/server_spec.rb +25 -0
- data/spec/lib/cli_runners_spec.rb +16 -0
- data/spec/lib/cli_spec.rb +256 -0
- data/spec/lib/compiler_spec.rb +693 -0
- data/spec/lib/config_spec.rb +112 -0
- data/spec/lib/dependency_resolver_spec.rb +43 -0
- data/spec/lib/deprecations_spec.rb +17 -0
- data/spec/lib/fixtures/complex_sprockets.js.rb.erb +4 -0
- data/spec/lib/fixtures/file_with_directives.js +2 -0
- data/spec/lib/fixtures/jst_file.js.jst +1 -0
- data/spec/lib/fixtures/no_requires.rb +1 -0
- data/spec/lib/fixtures/opal_file.rb +2 -0
- data/spec/lib/fixtures/require_tree_test.rb +3 -0
- data/spec/lib/fixtures/required_file.js +1 -0
- data/spec/lib/fixtures/required_tree_test/required_file1.rb +1 -0
- data/spec/lib/fixtures/required_tree_test/required_file2.rb +1 -0
- data/spec/lib/fixtures/requires.rb +7 -0
- data/spec/lib/fixtures/source_location_test.rb +7 -0
- data/spec/lib/fixtures/source_map.rb +1 -0
- data/spec/lib/fixtures/source_map/subfolder/other_file.rb +1 -0
- data/spec/lib/fixtures/sprockets_file.js.rb +3 -0
- data/spec/lib/fixtures/sprockets_require_tree_test.rb +3 -0
- data/spec/lib/path_reader_spec.rb +47 -0
- data/spec/lib/paths_spec.rb +18 -0
- data/spec/lib/repl_spec.rb +28 -0
- data/spec/lib/rewriters/base_spec.rb +68 -0
- data/spec/lib/rewriters/binary_operator_assignment_spec.rb +153 -0
- data/spec/lib/rewriters/block_to_iter_spec.rb +28 -0
- data/spec/lib/rewriters/dot_js_syntax_spec.rb +108 -0
- data/spec/lib/rewriters/explicit_writer_return_spec.rb +186 -0
- data/spec/lib/rewriters/for_rewriter_spec.rb +92 -0
- data/spec/lib/rewriters/hashes/key_duplicates_rewriter_spec.rb +47 -0
- data/spec/lib/rewriters/js_reserved_words_spec.rb +119 -0
- data/spec/lib/rewriters/logical_operator_assignment_spec.rb +202 -0
- data/spec/lib/rewriters/opal_engine_check_spec.rb +84 -0
- data/spec/lib/rewriters/returnable_logic_spec.rb +52 -0
- data/spec/lib/rewriters/rubyspec/filters_rewriter_spec.rb +59 -0
- data/spec/lib/simple_server_spec.rb +56 -0
- data/spec/lib/source_map/file_spec.rb +67 -0
- data/spec/lib/source_map/index_spec.rb +80 -0
- data/spec/lib/spec_helper.rb +105 -0
- data/spec/mspec-opal/formatters.rb +197 -0
- data/spec/mspec-opal/runner.rb +172 -0
- data/spec/opal/compiler/irb_spec.rb +44 -0
- data/spec/opal/compiler/unicode_spec.rb +10 -0
- data/spec/opal/core/array/dup_spec.rb +23 -0
- data/spec/opal/core/array/intersection_spec.rb +38 -0
- data/spec/opal/core/array/minus_spec.rb +38 -0
- data/spec/opal/core/array/union_spec.rb +38 -0
- data/spec/opal/core/array/uniq_spec.rb +49 -0
- data/spec/opal/core/class/inherited_spec.rb +18 -0
- data/spec/opal/core/enumerable/all_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/any_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/collect_break_spec.rb +13 -0
- data/spec/opal/core/enumerable/count_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/detect_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/drop_while_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/each_slice_break_spec.rb +6 -0
- data/spec/opal/core/enumerable/each_with_index_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/each_with_object_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/find_all_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/find_index_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/grep_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/max_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/max_by_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/min_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/min_by_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/none_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/one_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/reduce_break_spec.rb +5 -0
- data/spec/opal/core/enumerable/take_while_break_spec.rb +5 -0
- data/spec/opal/core/enumerator/with_index_spec.rb +6 -0
- data/spec/opal/core/exception_spec.rb +8 -0
- data/spec/opal/core/fixtures/require_tree_files/file 1.rb +1 -0
- data/spec/opal/core/fixtures/require_tree_files/file 2.rb +1 -0
- data/spec/opal/core/fixtures/require_tree_files/file 3.rb +1 -0
- data/spec/opal/core/fixtures/require_tree_files/file 4.rb +1 -0
- data/spec/opal/core/fixtures/require_tree_files/file 5.rb +1 -0
- data/spec/opal/core/fixtures/require_tree_files/nested/nested 1.rb +1 -0
- data/spec/opal/core/fixtures/require_tree_files/nested/nested 2.rb +1 -0
- data/spec/opal/core/fixtures/require_tree_files/other/other 1.rb +1 -0
- data/spec/opal/core/fixtures/require_tree_with_dot/file 1.rb +1 -0
- data/spec/opal/core/fixtures/require_tree_with_dot/file 2.rb +1 -0
- data/spec/opal/core/fixtures/require_tree_with_dot/file 3.rb +1 -0
- data/spec/opal/core/fixtures/require_tree_with_dot/index.rb +3 -0
- data/spec/opal/core/hash/internals_spec.rb +339 -0
- data/spec/opal/core/helpers_spec.rb +14 -0
- data/spec/opal/core/iterable_props_spec.rb +53 -0
- data/spec/opal/core/kernel/at_exit_spec.rb +70 -0
- data/spec/opal/core/kernel/freeze_spec.rb +15 -0
- data/spec/opal/core/kernel/instance_variables_spec.rb +110 -0
- data/spec/opal/core/kernel/methods_spec.rb +25 -0
- data/spec/opal/core/kernel/public_methods_spec.rb +25 -0
- data/spec/opal/core/kernel/require_tree_spec.rb +18 -0
- data/spec/opal/core/kernel/respond_to_spec.rb +15 -0
- data/spec/opal/core/language/DATA/characters_support_spec.rb +9 -0
- data/spec/opal/core/language/DATA/empty___END___spec.rb +7 -0
- data/spec/opal/core/language/DATA/multiple___END___spec.rb +10 -0
- data/spec/opal/core/language/arguments/mlhs_arg_spec.rb +18 -0
- data/spec/opal/core/language/keyword_arguments_spec.rb +9 -0
- data/spec/opal/core/language/numblocks_spec.rb +16 -0
- data/spec/opal/core/language/safe_navigator_spec.rb +7 -0
- data/spec/opal/core/language/while_spec.rb +31 -0
- data/spec/opal/core/language_spec.rb +29 -0
- data/spec/opal/core/marshal/dump_spec.rb +81 -0
- data/spec/opal/core/marshal/load_spec.rb +13 -0
- data/spec/opal/core/module_spec.rb +27 -0
- data/spec/opal/core/object_id_spec.rb +56 -0
- data/spec/opal/core/regexp/interpolation_spec.rb +40 -0
- data/spec/opal/core/regexp/match_spec.rb +78 -0
- data/spec/opal/core/runtime/bridged_classes_spec.rb +123 -0
- data/spec/opal/core/runtime/constants_spec.rb +16 -0
- data/spec/opal/core/runtime/eval_spec.rb +5 -0
- data/spec/opal/core/runtime/exit_spec.rb +29 -0
- data/spec/opal/core/runtime/is_a_spec.rb +48 -0
- data/spec/opal/core/runtime/loaded_spec.rb +20 -0
- data/spec/opal/core/runtime/main_methods_spec.rb +39 -0
- data/spec/opal/core/runtime/method_missing_spec.rb +68 -0
- data/spec/opal/core/runtime/rescue_spec.rb +37 -0
- data/spec/opal/core/runtime/string_spec.rb +25 -0
- data/spec/opal/core/runtime/truthy_spec.rb +61 -0
- data/spec/opal/core/runtime_spec.rb +58 -0
- data/spec/opal/core/string/each_byte_spec.rb +19 -0
- data/spec/opal/core/string/gsub_spec.rb +35 -0
- data/spec/opal/core/string/to_sym_spec.rb +9 -0
- data/spec/opal/core/string_spec.rb +28 -0
- data/spec/opal/core/struct/dup_spec.rb +11 -0
- data/spec/opal/core/time_spec.rb +68 -0
- data/spec/opal/stdlib/erb/erb_spec.rb +30 -0
- data/spec/opal/stdlib/erb/inline_block.opalerb +3 -0
- data/spec/opal/stdlib/erb/quoted.opalerb +1 -0
- data/spec/opal/stdlib/erb/simple.opalerb +1 -0
- data/spec/opal/stdlib/js_spec.rb +72 -0
- data/spec/opal/stdlib/json/ext_spec.rb +55 -0
- data/spec/opal/stdlib/json/parse_spec.rb +37 -0
- data/spec/opal/stdlib/logger/logger_spec.rb +308 -0
- data/spec/opal/stdlib/native/alias_native_spec.rb +27 -0
- data/spec/opal/stdlib/native/array_spec.rb +11 -0
- data/spec/opal/stdlib/native/date_spec.rb +12 -0
- data/spec/opal/stdlib/native/deprecated_include_spec.rb +8 -0
- data/spec/opal/stdlib/native/each_spec.rb +13 -0
- data/spec/opal/stdlib/native/element_reference_spec.rb +16 -0
- data/spec/opal/stdlib/native/exposure_spec.rb +33 -0
- data/spec/opal/stdlib/native/ext_spec.rb +19 -0
- data/spec/opal/stdlib/native/hash_spec.rb +67 -0
- data/spec/opal/stdlib/native/initialize_spec.rb +17 -0
- data/spec/opal/stdlib/native/method_missing_spec.rb +51 -0
- data/spec/opal/stdlib/native/native_alias_spec.rb +26 -0
- data/spec/opal/stdlib/native/native_class_spec.rb +18 -0
- data/spec/opal/stdlib/native/native_module_spec.rb +13 -0
- data/spec/opal/stdlib/native/native_reader_spec.rb +22 -0
- data/spec/opal/stdlib/native/native_writer_spec.rb +30 -0
- data/spec/opal/stdlib/native/new_spec.rb +92 -0
- data/spec/opal/stdlib/native/struct_spec.rb +12 -0
- data/spec/opal/stdlib/pp_spec.rb +5 -0
- data/spec/opal/stdlib/promise/always_spec.rb +49 -0
- data/spec/opal/stdlib/promise/error_spec.rb +15 -0
- data/spec/opal/stdlib/promise/rescue_spec.rb +53 -0
- data/spec/opal/stdlib/promise/then_spec.rb +79 -0
- data/spec/opal/stdlib/promise/trace_spec.rb +51 -0
- data/spec/opal/stdlib/promise/value_spec.rb +15 -0
- data/spec/opal/stdlib/promise/when_spec.rb +34 -0
- data/spec/opal/stdlib/source_map_spec.rb +8 -0
- data/spec/opal/stdlib/strscan/scan_spec.rb +11 -0
- data/spec/opal/stdlib/template/paths_spec.rb +10 -0
- data/spec/opal/stdlib/thread/mutex_spec.rb +40 -0
- data/spec/opal/stdlib/thread/thread_queue_spec.rb +32 -0
- data/spec/opal/stdlib/thread/thread_spec.rb +60 -0
- data/spec/ruby_specs +183 -0
- data/spec/spec_helper.rb +31 -0
- data/spec/support/guard_platform.rb +4 -0
- data/spec/support/match_helpers.rb +57 -0
- data/spec/support/mspec_rspec_adapter.rb +33 -0
- data/spec/support/rewriters_helper.rb +54 -0
- data/spec/support/source_map_helper.rb +190 -0
- data/stdlib/base64.rb +2 -2
- data/stdlib/bigdecimal.rb +15 -3
- data/stdlib/bigdecimal/bignumber.js.rb +1 -1
- data/stdlib/bigdecimal/util.rb +148 -0
- data/stdlib/delegate.rb +8 -0
- data/stdlib/nodejs/fileutils.rb +1 -1
- data/stdlib/nodejs/kernel.rb +0 -13
- data/stdlib/nodejs/stacktrace.rb +4 -179
- data/stdlib/ostruct.rb +5 -0
- data/stdlib/pp.rb +586 -19
- data/stdlib/prettyprint.rb +556 -0
- data/stdlib/rbconfig/sizeof.rb +2 -0
- data/stdlib/securerandom.rb +32 -0
- data/stdlib/set.rb +36 -0
- data/stdlib/strscan.rb +15 -0
- data/tasks/benchmarking.rake +1 -1
- data/tasks/linting.rake +3 -5
- data/tasks/releasing.rake +2 -5
- data/tasks/testing.rake +16 -11
- data/tasks/testing/mspec_special_calls.rb +1 -19
- data/test/nodejs/fixtures/cat.png +0 -0
- data/test/nodejs/fixtures/hello.rb +1 -0
- data/test/nodejs/fixtures/iso88591.txt +1 -0
- data/test/nodejs/fixtures/utf8.txt +1 -0
- data/test/nodejs/fixtures/win1258.txt +1 -0
- data/test/nodejs/test_dir.rb +39 -0
- data/test/nodejs/test_env.rb +62 -0
- data/test/nodejs/test_error.rb +29 -0
- data/test/nodejs/test_file.rb +206 -0
- data/test/nodejs/test_file_encoding.rb +20 -0
- data/test/nodejs/test_io.rb +18 -0
- data/test/nodejs/test_opal_builder.rb +12 -0
- data/test/nodejs/test_pathname.rb +16 -0
- data/test/opal/cat.png +0 -0
- data/test/opal/http_server.rb +52 -0
- data/test/opal/test_base64.rb +115 -0
- data/test/opal/test_keyword.rb +590 -0
- data/test/opal/test_matrix.rb +661 -0
- data/test/opal/test_openuri.rb +53 -0
- data/test/opal/unsupported_and_bugs.rb +39 -0
- data/yarn.lock +1355 -0
- metadata +905 -40
- data/.travis.yml +0 -109
- data/appveyor.yml +0 -35
- data/lib/opal/nodes/runtime_helpers.rb +0 -51
- data/opal/corelib/random/MersenneTwister.js +0 -137
- data/opal/corelib/random/mersenne_twister.js.rb +0 -13
- data/stdlib/bigdecimal/kernel.rb +0 -5
@@ -0,0 +1,15 @@
|
|
1
|
+
# NOTE: run bin/format-filters after changing this file
|
2
|
+
opal_unsupported_filter "BasicObject" do
|
3
|
+
fails "BasicObject#method_missing for a Class raises a NoMethodError when a private method is called"
|
4
|
+
fails "BasicObject#method_missing for a Class raises a NoMethodError when a protected method is called"
|
5
|
+
fails "BasicObject#method_missing for a Class with #method_missing defined is called when an private method is called"
|
6
|
+
fails "BasicObject#method_missing for a Class with #method_missing defined is called when an protected method is called"
|
7
|
+
fails "BasicObject#method_missing for a Module raises a NoMethodError when a private method is called"
|
8
|
+
fails "BasicObject#method_missing for a Module raises a NoMethodError when a protected method is called"
|
9
|
+
fails "BasicObject#method_missing for a Module with #method_missing defined is called when a private method is called"
|
10
|
+
fails "BasicObject#method_missing for a Module with #method_missing defined is called when a protected method is called"
|
11
|
+
fails "BasicObject#method_missing for an instance raises a NoMethodError when a private method is called"
|
12
|
+
fails "BasicObject#method_missing for an instance raises a NoMethodError when a protected method is called"
|
13
|
+
fails "BasicObject#method_missing for an instance with #method_missing defined is called when an private method is called"
|
14
|
+
fails "BasicObject#method_missing for an instance with #method_missing defined is called when an protected method is called"
|
15
|
+
end
|
@@ -0,0 +1,55 @@
|
|
1
|
+
# NOTE: run bin/format-filters after changing this file
|
2
|
+
opal_unsupported_filter "Bignum" do
|
3
|
+
fails "BasicObject#__id__ returns a different value for two Bignum literals"
|
4
|
+
fails "Complex#== with Numeric returns true when self's imaginary part is 0 and the real part and other have numerical equality"
|
5
|
+
fails "Complex#fdiv with an imaginary part sets the real part to self's real part fdiv'd with the argument"
|
6
|
+
fails "Complex#fdiv with no imaginary part sets the real part to self's real part fdiv'd with the argument"
|
7
|
+
fails "Complex#rect raises an ArgumentError if given any arguments"
|
8
|
+
fails "Complex#rect returns a two-element Array"
|
9
|
+
fails "Complex#rect returns an Array"
|
10
|
+
fails "Complex#rect returns the imaginary part of self as the last element"
|
11
|
+
fails "Complex#rect returns the real part of self as the first element"
|
12
|
+
fails "Enumerable#first raises a RangeError when passed a Bignum"
|
13
|
+
fails "Fixnum#& returns self bitwise AND a Bignum"
|
14
|
+
fails "Fixnum#& returns self bitwise AND other"
|
15
|
+
fails "Fixnum#* overflows to Bignum when the result does not fit in Fixnum"
|
16
|
+
fails "Fixnum#** can raise -1 to a Bignum safely"
|
17
|
+
fails "Fixnum#/ coerces fixnum and return self divided by other"
|
18
|
+
fails "Fixnum#^ returns self bitwise EXCLUSIVE OR a Bignum"
|
19
|
+
fails "Fixnum#^ returns self bitwise EXCLUSIVE OR other"
|
20
|
+
fails "Fixnum#| returns self bitwise OR other"
|
21
|
+
fails "Float#fdiv performs floating-point division between self and a Bignum"
|
22
|
+
fails "Float#numerator converts self to a Rational object then returns its numerator"
|
23
|
+
fails "Float#quo performs floating-point division between self and a Bignum"
|
24
|
+
fails "Float#round returns rounded values for big values"
|
25
|
+
fails "Integer#gcd accepts a Bignum argument"
|
26
|
+
fails "Integer#gcd works if self is a Bignum"
|
27
|
+
fails "Integer#gcdlcm accepts a Bignum argument"
|
28
|
+
fails "Integer#gcdlcm works if self is a Bignum"
|
29
|
+
fails "Integer#lcm accepts a Bignum argument"
|
30
|
+
fails "Integer#lcm works if self is a Bignum"
|
31
|
+
fails "Integer#odd? returns true when self is an odd number"
|
32
|
+
fails "Integer#rationalize returns a Rational object"
|
33
|
+
fails "Integer#rationalize uses 1 as the denominator"
|
34
|
+
fails "Integer#rationalize uses self as the numerator"
|
35
|
+
fails "Integer#round returns itself rounded if passed a negative value"
|
36
|
+
fails "Integer#to_r works even if self is a Bignum"
|
37
|
+
fails "Marshal.dump with a Bignum dumps a Bignum"
|
38
|
+
fails "Marshal.load for a Integer loads an Integer -2361183241434822606847"
|
39
|
+
fails "Marshal.load for a Integer loads an Integer 2361183241434822606847"
|
40
|
+
fails "Marshal.load loads a Bignum 2**90"
|
41
|
+
fails "Numeric#denominator returns 1"
|
42
|
+
fails "Numeric#numerator converts self to a Rational object then returns its numerator"
|
43
|
+
fails "Numeric#quo raises a ZeroDivisionError when the given Integer is 0"
|
44
|
+
fails "Random#rand with Bignum typically returns a Bignum"
|
45
|
+
fails "Random.new uses a random seed value if none is supplied"
|
46
|
+
fails "Random.new_seed returns a Bignum"
|
47
|
+
fails "Rational#** when passed Bignum raises ZeroDivisionError when self is Rational(0) and the exponent is negative"
|
48
|
+
fails "Rational#** when passed Bignum returns 0.0 when self is < -1 and the exponent is negative"
|
49
|
+
fails "Rational#** when passed Bignum returns 0.0 when self is > 1 and the exponent is negative"
|
50
|
+
fails "Rational#** when passed Bignum returns Rational(-1) when self is Rational(-1) and the exponent is positive and odd"
|
51
|
+
fails "Rational#** when passed Bignum returns Rational(1) when self is Rational(-1) and the exponent is positive and even"
|
52
|
+
fails "Rational#** when passed Bignum returns positive Infinity when self < -1"
|
53
|
+
fails "Rational#** when passed Bignum returns positive Infinity when self is > 1"
|
54
|
+
fails "Rational#round with a precision > 0 doesn't fail when rounding to an absurdly large positive precision"
|
55
|
+
end
|
@@ -0,0 +1,6 @@
|
|
1
|
+
# NOTE: run bin/format-filters after changing this file
|
2
|
+
opal_unsupported_filter "Delegator" do
|
3
|
+
fails "SimpleDelegator.new doesn't forward private method calls even via send or __send__"
|
4
|
+
fails "SimpleDelegator.new doesn't forward private method calls"
|
5
|
+
fails "SimpleDelegator.new forwards protected method calls"
|
6
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# NOTE: run bin/format-filters after changing this file
|
2
|
+
opal_unsupported_filter "Enumerable" do
|
3
|
+
fails "Enumerable#chunk does not return elements for which the block returns :_separator"
|
4
|
+
fails "Enumerable#chunk raises a RuntimeError if the block returns a Symbol starting with an underscore other than :_alone or :_separator"
|
5
|
+
fails "Enumerable#chunk with [initial_state] yields an element and an object value-equal but not identical to the object passed to #chunk"
|
6
|
+
fails "Enumerable#entries returns a tainted array if self is tainted"
|
7
|
+
fails "Enumerable#entries returns an untrusted array if self is untrusted"
|
8
|
+
fails "Enumerable#group_by returns a tainted hash if self is tainted"
|
9
|
+
fails "Enumerable#group_by returns an untrusted hash if self is untrusted"
|
10
|
+
fails "Enumerable#to_a returns a tainted array if self is tainted"
|
11
|
+
fails "Enumerable#to_a returns an untrusted array if self is untrusted"
|
12
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# NOTE: run bin/format-filters after changing this file
|
2
|
+
opal_unsupported_filter "Enumerator" do
|
3
|
+
fails "Enumerator#next cannot be called again until the enumerator is rewound"
|
4
|
+
fails "Enumerator#next raises a StopIteration exception at the end of the stream"
|
5
|
+
fails "Enumerator#next returns the next element of the enumeration"
|
6
|
+
fails "Enumerator#rewind calls the enclosed object's rewind method if one exists"
|
7
|
+
fails "Enumerator#rewind clears a pending #feed value"
|
8
|
+
fails "Enumerator#rewind does nothing if the object doesn't have a #rewind method"
|
9
|
+
fails "Enumerator#rewind has no effect if called multiple, consecutive times"
|
10
|
+
fails "Enumerator#rewind has no effect on a new enumerator"
|
11
|
+
fails "Enumerator#rewind resets the enumerator to its initial state"
|
12
|
+
fails "Enumerator#rewind returns self"
|
13
|
+
fails "Enumerator#rewind works with peek to reset the position"
|
14
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# NOTE: run bin/format-filters after changing this file
|
2
|
+
opal_unsupported_filter "Fixnum" do
|
3
|
+
fails "Fixnum#+ overflows to Bignum when the result does not fit in Fixnum"
|
4
|
+
fails "Fixnum#- returns a Bignum only if the result is too large to be a Fixnum"
|
5
|
+
fails "Fixnum#<< with n << m returns -1 when n < 0, m < 0 and n > -(2**-m)"
|
6
|
+
fails "Fixnum#<< with n << m returns 0 when m < 0 and m is a Bignum"
|
7
|
+
fails "Fixnum#<< with n << m returns 0 when n > 0, m < 0 and n < 2**-m"
|
8
|
+
fails "Fixnum#<< with n << m returns a Bignum == fixnum_max * 2 when fixnum_max << 1 and n > 0"
|
9
|
+
fails "Fixnum#<< with n << m returns a Bignum == fixnum_min * 2 when fixnum_min << 1 and n < 0"
|
10
|
+
fails "Fixnum#>> with n >> m returns -1 when n < 0, m > 0 and n > -(2**m)"
|
11
|
+
fails "Fixnum#>> with n >> m returns 0 when m is a Bignum"
|
12
|
+
fails "Fixnum#>> with n >> m returns 0 when n > 0, m > 0 and n < 2**m"
|
13
|
+
fails "Fixnum#>> with n >> m returns a Bignum == fixnum_max * 2 when fixnum_max >> -1 and n > 0"
|
14
|
+
fails "Fixnum#>> with n >> m returns a Bignum == fixnum_min * 2 when fixnum_min >> -1 and n < 0"
|
15
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# NOTE: run bin/format-filters after changing this file
|
2
|
+
opal_unsupported_filter "Float" do
|
3
|
+
fails "BasicObject#__id__ returns a different value for two Float literals"
|
4
|
+
fails "Complex#/ with Fixnum raises a ZeroDivisionError when given zero"
|
5
|
+
fails "Complex#eql? returns false when the imaginary parts are of different classes"
|
6
|
+
fails "Complex#eql? returns false when the real parts are of different classes"
|
7
|
+
fails "Complex#quo with Fixnum raises a ZeroDivisionError when given zero"
|
8
|
+
fails "Complex#rationalize raises RangeError if self has 0.0 imaginary part"
|
9
|
+
fails "Complex#to_f when the imaginary part is Float 0.0 raises RangeError"
|
10
|
+
fails "Complex#to_i when the imaginary part is Float 0.0 raises RangeError"
|
11
|
+
fails "Complex#to_r when the imaginary part is Float 0.0 raises RangeError"
|
12
|
+
fails "Complex#to_s returns 1+0.0i for Complex(1, 0.0)"
|
13
|
+
fails "Complex#to_s returns 1-0.0i for Complex(1, -0.0)"
|
14
|
+
fails "Fixnum#% raises a ZeroDivisionError when the given argument is 0 and a Float"
|
15
|
+
fails "Fixnum#% raises a ZeroDivisionError when the given argument is 0"
|
16
|
+
fails "Fixnum#& raises a TypeError when passed a Float"
|
17
|
+
fails "Fixnum#/ raises a ZeroDivisionError if the given argument is zero and not a Float"
|
18
|
+
fails "Fixnum#/ returns self divided by the given argument"
|
19
|
+
fails "Fixnum#/ supports dividing negative numbers"
|
20
|
+
fails "Fixnum#^ raises a TypeError when passed a Float"
|
21
|
+
fails "Fixnum#coerce when given a String returns an array containing two Floats"
|
22
|
+
fails "Fixnum#div coerces self and the given argument to Floats and returns self divided by other as Fixnum"
|
23
|
+
fails "Fixnum#divmod raises a TypeError when given a non-Integer"
|
24
|
+
fails "Fixnum#| raises a TypeError when passed a Float"
|
25
|
+
fails "Float constant MAX_10_EXP is 308"
|
26
|
+
fails "Float constant MAX_EXP is 1024"
|
27
|
+
fails "Float constant MIN is 2.2250738585072e-308"
|
28
|
+
fails "Float constant MIN_10_EXP is -308"
|
29
|
+
fails "Float constant MIN_EXP is -1021"
|
30
|
+
fails "Float#coerce returns [other, self] both as Floats"
|
31
|
+
fails "Float#eql? returns false if other is not a Float"
|
32
|
+
fails "Float#to_s emits '-' for -0.0"
|
33
|
+
fails "Float#to_s emits a trailing '.0' for a whole number"
|
34
|
+
fails "Float#to_s emits a trailing '.0' for the mantissa in e format"
|
35
|
+
fails "Float#to_s returns '0.0' for 0.0"
|
36
|
+
fails "Math.gamma returns approximately (n-1)! given n for n between 24 and 30" # precision error
|
37
|
+
fails "Numeric#step with keyword arguments when no block is given returned Enumerator size when self, stop or step is a Float and step is positive returns the difference between self and stop divided by the number of steps"
|
38
|
+
fails "Numeric#step with mixed arguments when no block is given returned Enumerator size when self, stop or step is a Float and step is positive returns the difference between self and stop divided by the number of steps"
|
39
|
+
fails "Numeric#step with positional args when no block is given returned Enumerator size when self, stop or step is a Float and step is positive returns the difference between self and stop divided by the number of steps"
|
40
|
+
fails "Rational#% returns a Float value when the argument is Float"
|
41
|
+
fails "Rational#** raises ZeroDivisionError for Rational(0, 1) passed a negative Integer"
|
42
|
+
fails "Rational#** when passed Integer returns the Rational value of self raised to the passed argument"
|
43
|
+
fails "Rational#/ when passed an Integer raises a ZeroDivisionError when passed 0"
|
44
|
+
fails "Rational#coerce returns the passed argument, self as Float, when given a Float"
|
45
|
+
fails "Rational#divmod when passed an Integer returns the quotient as Integer and the remainder as Rational"
|
46
|
+
fails "Struct#eql? returns false if any corresponding elements are not #eql?" # Rubyspec uses 1.eql?(1.0) which always returns true in compiled JS
|
47
|
+
end
|
@@ -0,0 +1,259 @@
|
|
1
|
+
# NOTE: run bin/format-filters after changing this file
|
2
|
+
opal_unsupported_filter "freezing" do
|
3
|
+
fails "A method definition inside a metaclass scope raises FrozenError if frozen" # Expected FrozenError but no exception was raised ("foo" was returned)
|
4
|
+
fails "A method definition inside a metaclass scope raises RuntimeError if frozen"
|
5
|
+
fails "A singleton method definition raises FrozenError if frozen" # Expected FrozenError but no exception was raised ("foo" was returned)
|
6
|
+
fails "A singleton method definition raises RuntimeError if frozen"
|
7
|
+
fails "Array#<< raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([1, 2, 3, 5] was returned)
|
8
|
+
fails "Array#[]= raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([] was returned)
|
9
|
+
fails "Array#append raises a FrozenError on a frozen array" # NoMethodError: undefined method `append' for [1, 2, 3]:Array
|
10
|
+
fails "Array#clear raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([] was returned)
|
11
|
+
fails "Array#collect! when frozen raises a FrozenError when calling #each on the returned Enumerator when empty" # Expected FrozenError but no exception was raised ([] was returned)
|
12
|
+
fails "Array#collect! when frozen raises a FrozenError when calling #each on the returned Enumerator" # Expected FrozenError but no exception was raised ([1, 2, 3] was returned)
|
13
|
+
fails "Array#collect! when frozen raises a FrozenError when empty" # Expected FrozenError but no exception was raised ([] was returned)
|
14
|
+
fails "Array#collect! when frozen raises a FrozenError" # Expected FrozenError but no exception was raised ([nil, nil, nil] was returned)
|
15
|
+
fails "Array#compact! raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised (nil was returned)
|
16
|
+
fails "Array#concat raises a FrozenError when Array is frozen and modification occurs" # Expected FrozenError but no exception was raised ([1, 2, 3, 1] was returned)
|
17
|
+
fails "Array#concat raises a FrozenError when Array is frozen and no modification occurs" # Expected FrozenError but no exception was raised ([1, 2, 3] was returned)
|
18
|
+
fails "Array#delete raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised (1 was returned)
|
19
|
+
fails "Array#delete returns nil on a frozen array if a modification does not take place"
|
20
|
+
fails "Array#delete_at raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised (1 was returned)
|
21
|
+
fails "Array#delete_if raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([1, 2, 3] was returned)
|
22
|
+
fails "Array#delete_if raises a FrozenError on an empty frozen array" # Expected FrozenError but no exception was raised ([] was returned)
|
23
|
+
fails "Array#dup does not copy frozen status from the original"
|
24
|
+
fails "Array#fill raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised (["x", "x", "x"] was returned)
|
25
|
+
fails "Array#fill raises a FrozenError on an empty frozen array" # Expected FrozenError but no exception was raised ([] was returned)
|
26
|
+
fails "Array#filter! on frozen objects returns an Enumerator if no block is given" # NoMethodError: undefined method `filter!' for [true, false]
|
27
|
+
fails "Array#filter! on frozen objects with falsy block keeps elements after any exception" # Expected Exception but no exception was raised ([] was returned)
|
28
|
+
fails "Array#filter! on frozen objects with falsy block raises a FrozenError" # Expected FrozenError but got: NoMethodError (undefined method `filter!' for [true, false])
|
29
|
+
fails "Array#filter! on frozen objects with truthy block keeps elements after any exception" # Expected Exception but no exception was raised (nil was returned)
|
30
|
+
fails "Array#filter! on frozen objects with truthy block raises a FrozenError" # Expected FrozenError but got: NoMethodError (undefined method `filter!' for [true, false])
|
31
|
+
fails "Array#flatten! raises a FrozenError on frozen arrays when the array is modified" # Expected FrozenError but no exception was raised ([1, 2] was returned)
|
32
|
+
fails "Array#flatten! raises a FrozenError on frozen arrays when the array would not be modified" # Expected FrozenError but no exception was raised (nil was returned)
|
33
|
+
fails "Array#initialize raises a FrozenError on frozen arrays" # Expected FrozenError but no exception was raised ([] was returned)
|
34
|
+
fails "Array#insert raises a FrozenError on frozen arrays when the array is modified" # Expected FrozenError but no exception was raised (["x", 1, 2, 3] was returned)
|
35
|
+
fails "Array#insert raises a FrozenError on frozen arrays when the array would not be modified" # Expected FrozenError but no exception was raised ([1, 2, 3] was returned)
|
36
|
+
fails "Array#keep_if on frozen objects with falsy block raises a FrozenError" # Expected FrozenError but no exception was raised ([] was returned)
|
37
|
+
fails "Array#keep_if on frozen objects with truthy block raises a FrozenError" # Expected FrozenError but no exception was raised ([true, false] was returned)
|
38
|
+
fails "Array#map! when frozen raises a FrozenError when calling #each on the returned Enumerator when empty" # Expected FrozenError but no exception was raised ([] was returned)
|
39
|
+
fails "Array#map! when frozen raises a FrozenError when calling #each on the returned Enumerator" # Expected FrozenError but no exception was raised ([1, 2, 3] was returned)
|
40
|
+
fails "Array#map! when frozen raises a FrozenError when empty" # Expected FrozenError but no exception was raised ([] was returned)
|
41
|
+
fails "Array#map! when frozen raises a FrozenError" # Expected FrozenError but no exception was raised ([nil, nil, nil] was returned)
|
42
|
+
fails "Array#pop passed a number n as an argument raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([2, 3] was returned)
|
43
|
+
fails "Array#pop raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised (3 was returned)
|
44
|
+
fails "Array#pop raises a FrozenError on an empty frozen array" # Expected FrozenError but no exception was raised (nil was returned)
|
45
|
+
fails "Array#prepend raises a FrozenError on a frozen array when the array is modified" # NoMethodError: undefined method `prepend' for [1, 2, 3]:Array
|
46
|
+
fails "Array#prepend raises a FrozenError on a frozen array when the array would not be modified" # NoMethodError: undefined method `prepend' for [1, 2, 3]:Array
|
47
|
+
fails "Array#push raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([1, 2, 3, 1] was returned)
|
48
|
+
fails "Array#reject! raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised (nil was returned)
|
49
|
+
fails "Array#reject! raises a FrozenError on an empty frozen array" # Expected FrozenError but no exception was raised (nil was returned)
|
50
|
+
fails "Array#replace raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([1, 2, 3] was returned)
|
51
|
+
fails "Array#reverse! raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([3, 2, 1] was returned)
|
52
|
+
fails "Array#rotate does not mutate the receiver"
|
53
|
+
fails "Array#rotate! raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([1, 2, 3] was returned)
|
54
|
+
fails "Array#rotate! raises a RuntimeError on a frozen array"
|
55
|
+
fails "Array#select! on frozen objects returns an Enumerator if no block is given"
|
56
|
+
fails "Array#select! on frozen objects with falsy block raises a FrozenError" # Expected FrozenError but no exception was raised ([] was returned)
|
57
|
+
fails "Array#select! on frozen objects with truthy block raises a FrozenError" # Expected FrozenError but no exception was raised (nil was returned)
|
58
|
+
fails "Array#shift raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised (1 was returned)
|
59
|
+
fails "Array#shift raises a FrozenError on an empty frozen array" # Expected FrozenError but no exception was raised (nil was returned)
|
60
|
+
fails "Array#shuffle! raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([1, 2, 3] was returned)
|
61
|
+
fails "Array#slice! raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([] was returned)
|
62
|
+
fails "Array#sort does not freezes self during being sorted"
|
63
|
+
fails "Array#sort! raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([1, 2, 3] was returned)
|
64
|
+
fails "Array#sort_by! raises a FrozenError on a frozen array" # Expected FrozenError but no exception was raised ([1, 2, 3] was returned)
|
65
|
+
fails "Array#sort_by! raises a FrozenError on an empty frozen array" # Expected FrozenError but no exception was raised ([] was returned)
|
66
|
+
fails "Array#sort_by! raises a RuntimeError on a frozen array"
|
67
|
+
fails "Array#sort_by! raises a RuntimeError on an empty frozen array"
|
68
|
+
fails "Array#uniq! raises a FrozenError on a frozen array when the array is modified" # Expected FrozenError but no exception was raised ([1, 2] was returned)
|
69
|
+
fails "Array#uniq! raises a FrozenError on a frozen array when the array would not be modified" # Expected FrozenError but no exception was raised (nil was returned)
|
70
|
+
fails "Array#unshift raises a FrozenError on a frozen array when the array is modified" # Expected FrozenError but no exception was raised ([1, 1, 2, 3] was returned)
|
71
|
+
fails "Array#unshift raises a FrozenError on a frozen array when the array would not be modified" # Expected FrozenError but no exception was raised ([1, 2, 3] was returned)
|
72
|
+
fails "Date constants freezes MONTHNAMES, DAYNAMES, ABBR_MONTHNAMES, ABBR_DAYSNAMES"
|
73
|
+
fails "Enumerable#sort doesn't raise an error if #to_a returns a frozen Array"
|
74
|
+
fails "Enumerator#initialize on frozen instance raises a RuntimeError"
|
75
|
+
fails "FalseClass#to_s returns a frozen string" # Expected "false".frozen? to be truthy but was false
|
76
|
+
fails "FrozenError#receiver should return frozen object that modification was attempted on" # RuntimeError: RuntimeError
|
77
|
+
fails "FrozenError.new should take optional receiver argument" # NoMethodError: undefined method `receiver' for #<FrozenError: msg>
|
78
|
+
fails "Hash literal does not change encoding of literal string keys during creation"
|
79
|
+
fails "Hash literal freezes string keys on initialization"
|
80
|
+
fails "Hash#== compares keys with matching hash codes via eql?"
|
81
|
+
fails "Hash#[]= doesn't duplicate and freeze already frozen string keys"
|
82
|
+
fails "Hash#[]= raises a FrozenError if called on a frozen instance" # Expected FrozenError but no exception was raised (2 was returned)
|
83
|
+
fails "Hash#clear raises a FrozenError if called on a frozen instance" # Expected FrozenError but no exception was raised ({} was returned)
|
84
|
+
fails "Hash#compact! on frozen instance keeps pairs and raises a FrozenError" # Expected FrozenError but no exception was raised ({"truthy"=>true, "false"=>false, nil=>true} was returned)
|
85
|
+
fails "Hash#compact! on frozen instance keeps pairs and raises a RuntimeError"
|
86
|
+
fails "Hash#compare_by_identity raises a FrozenError on frozen hashes" # Expected FrozenError but no exception was raised ({} was returned)
|
87
|
+
fails "Hash#default= raises a FrozenError if called on a frozen instance" # Expected FrozenError but no exception was raised (nil was returned)
|
88
|
+
fails "Hash#default_proc= raises a FrozenError if self is frozen" # Expected FrozenError but no exception was raised (main was returned)
|
89
|
+
fails "Hash#delete raises a FrozenError if called on a frozen instance" # Expected FrozenError but no exception was raised (nil was returned)
|
90
|
+
fails "Hash#delete_if raises a FrozenError if called on a frozen instance" # Expected FrozenError but no exception was raised ({1=>2, 3=>4} was returned)
|
91
|
+
fails "Hash#delete_if returns an Enumerator if called on a frozen instance"
|
92
|
+
fails "Hash#each returns an Enumerator if called on a frozen instance"
|
93
|
+
fails "Hash#each_key returns an Enumerator if called on a frozen instance"
|
94
|
+
fails "Hash#each_pair returns an Enumerator if called on a frozen instance"
|
95
|
+
fails "Hash#each_value returns an Enumerator if called on a frozen instance"
|
96
|
+
fails "Hash#eql? compares keys with matching hash codes via eql?"
|
97
|
+
fails "Hash#filter returns an Enumerator if called on a frozen instance" # NoMethodError: undefined method `filter' for {1=>2, 3=>4, 5=>6}
|
98
|
+
fails "Hash#filter! raises a FrozenError if called on a frozen instance that would not be modified" # Expected FrozenError but got: NoMethodError (undefined method `filter!' for {1=>2, 3=>4})
|
99
|
+
fails "Hash#filter! raises a FrozenError if called on an empty frozen instance" # Expected FrozenError but got: NoMethodError (undefined method `filter!' for {})
|
100
|
+
fails "Hash#filter! returns an Enumerator if called on a frozen instance" # NoMethodError: undefined method `filter!' for {1=>2, 3=>4, 5=>6}
|
101
|
+
fails "Hash#initialize raises a FrozenError if called on a frozen instance" # Expected FrozenError but no exception was raised ({1=>2, 3=>4} was returned)
|
102
|
+
fails "Hash#keep_if raises a FrozenError if called on a frozen instance" # Expected FrozenError but no exception was raised ({} was returned)
|
103
|
+
fails "Hash#keep_if returns an Enumerator if called on a frozen instance"
|
104
|
+
fails "Hash#merge! raises a FrozenError on a frozen instance that is modified" # Expected FrozenError but no exception was raised ({1=>2} was returned)
|
105
|
+
fails "Hash#merge! raises a FrozenError on a frozen instance that would not be modified" # Expected FrozenError but no exception was raised ({1=>2} was returned)
|
106
|
+
fails "Hash#rehash raises a FrozenError if called on a frozen instance" # Expected FrozenError but no exception was raised ({} was returned)
|
107
|
+
fails "Hash#reject returns an Enumerator if called on a frozen instance"
|
108
|
+
fails "Hash#reject! raises a FrozenError if called on a frozen instance that is modified" # Expected FrozenError but no exception was raised (nil was returned)
|
109
|
+
fails "Hash#reject! raises a FrozenError if called on a frozen instance that would not be modified" # Expected FrozenError but no exception was raised (nil was returned)
|
110
|
+
fails "Hash#replace raises a FrozenError if called on a frozen instance that is modified" # Expected FrozenError but no exception was raised ({} was returned)
|
111
|
+
fails "Hash#replace raises a FrozenError if called on a frozen instance that would not be modified" # Expected FrozenError but no exception was raised ({} was returned)
|
112
|
+
fails "Hash#select returns an Enumerator if called on a frozen instance"
|
113
|
+
fails "Hash#select! raises a FrozenError if called on a frozen instance that would not be modified" # Expected FrozenError but no exception was raised (nil was returned)
|
114
|
+
fails "Hash#select! raises a FrozenError if called on an empty frozen instance" # Expected FrozenError but no exception was raised (nil was returned)
|
115
|
+
fails "Hash#select! returns an Enumerator if called on a frozen instance"
|
116
|
+
fails "Hash#shift raises a FrozenError if called on a frozen instance" # Expected FrozenError but no exception was raised (nil was returned)
|
117
|
+
fails "Hash#store doesn't duplicate and freeze already frozen string keys"
|
118
|
+
fails "Hash#store raises a FrozenError if called on a frozen instance" # Expected FrozenError but no exception was raised (2 was returned)
|
119
|
+
fails "Hash#transform_keys! on frozen instance keeps pairs and raises a FrozenError" # NoMethodError: undefined method `transform_keys!' for {"a"=>1, "b"=>2, "c"=>3, "d"=>4}
|
120
|
+
fails "Hash#transform_keys! on frozen instance raises a FrozenError on an empty hash" # NoMethodError: undefined method `transform_keys!' for {}
|
121
|
+
fails "Hash#transform_values! on frozen instance keeps pairs and raises a FrozenError" # Expected FrozenError but no exception was raised ({"a"=>2, "b"=>3, "c"=>4} was returned)
|
122
|
+
fails "Hash#transform_values! on frozen instance keeps pairs and raises a RuntimeError"
|
123
|
+
fails "Hash#transform_values! on frozen instance raises a FrozenError on an empty hash" # Expected FrozenError but no exception was raised ({} was returned)
|
124
|
+
fails "Hash#transform_values! on frozen instance when no block is given does not raise an exception"
|
125
|
+
fails "Hash#update raises a FrozenError on a frozen instance that is modified" # Expected FrozenError but no exception was raised ({1=>2} was returned)
|
126
|
+
fails "Hash#update raises a FrozenError on a frozen instance that would not be modified" # Expected FrozenError but no exception was raised ({} was returned)
|
127
|
+
fails "Kernel#clone copies frozen state from the original"
|
128
|
+
fails "Kernel#clone copies frozen? and tainted?" # Expected false to be true
|
129
|
+
fails "Kernel#clone takes an freeze: true option to frozen copy" # Expected #<KernelSpecs::Duplicate:0x25158>.frozen? to be truthy but was false
|
130
|
+
fails "Kernel#clone takes an option to copy freeze state or not" # TODO: move to unsupported/freeze
|
131
|
+
fails "Kernel#extend on frozen instance raises a FrozenError" # Expected FrozenError but no exception was raised (main was returned)
|
132
|
+
fails "Kernel#extend on frozen instance raises a RuntimeError"
|
133
|
+
fails "Kernel#extend on frozen instance raises an ArgumentError when no arguments given"
|
134
|
+
fails "Kernel#freeze causes instance_variable_set to raise RuntimeError"
|
135
|
+
fails "Kernel#freeze causes mutative calls to raise RuntimeError"
|
136
|
+
fails "Kernel#freeze on a Complex has no effect since it is already frozen" # Expected false to be true
|
137
|
+
fails "Kernel#freeze on a Float has no effect since it is already frozen"
|
138
|
+
fails "Kernel#freeze on a Rational has no effect since it is already frozen" # Expected false to be true
|
139
|
+
fails "Kernel#freeze on a Symbol has no effect since it is already frozen"
|
140
|
+
fails "Kernel#freeze on integers has no effect since they are already frozen"
|
141
|
+
fails "Kernel#freeze on true, false and nil has no effect since they are already frozen"
|
142
|
+
fails "Kernel#freeze prevents self from being further modified"
|
143
|
+
fails "Kernel#freeze returns self"
|
144
|
+
fails "Kernel#frozen? on a Complex literal returns true" # Expected false to be true
|
145
|
+
fails "Kernel#frozen? on a Complex returns true" # Expected false to be true
|
146
|
+
fails "Kernel#frozen? on a Float returns true"
|
147
|
+
fails "Kernel#frozen? on a Rational literal returns true" # Expected false to be true
|
148
|
+
fails "Kernel#frozen? on a Rational returns true" # Expected false to be true
|
149
|
+
fails "Kernel#frozen? on a Symbol returns true"
|
150
|
+
fails "Kernel#frozen? on integers returns true"
|
151
|
+
fails "Kernel#frozen? on true, false and nil returns true"
|
152
|
+
fails "Kernel#frozen? returns true if self is frozen"
|
153
|
+
fails "Kernel#instance_variable_set on frozen objects keeps stored object after any exceptions"
|
154
|
+
fails "Kernel#instance_variable_set on frozen objects raises a FrozenError when passed replacement is different from stored object" # Expected FrozenError but no exception was raised ("replacement" was returned)
|
155
|
+
fails "Kernel#instance_variable_set on frozen objects raises a FrozenError when passed replacement is identical to stored object" # Expected FrozenError but no exception was raised ("origin" was returned)
|
156
|
+
fails "Kernel#instance_variable_set on frozen objects raises a RuntimeError when passed replacement is different from stored object"
|
157
|
+
fails "Kernel#instance_variable_set on frozen objects raises a RuntimeError when passed replacement is identical to stored object"
|
158
|
+
fails "Literal Regexps is frozen" # Expected /Hello/.frozen? to be truthy but was false
|
159
|
+
fails "MatchData#string returns a frozen copy of the match string"
|
160
|
+
fails "Module#alias_method raises FrozenError if frozen" # Expected FrozenError but no exception was raised (#<Class:0x39d44> was returned)
|
161
|
+
fails "Module#alias_method raises RuntimeError if frozen"
|
162
|
+
fails "Module#append_features when other is frozen raises a FrozenError before appending self" # Expected FrozenError but no exception was raised (#<Module:0x3fbfa> was returned)
|
163
|
+
fails "Module#append_features when other is frozen raises a RuntimeError before appending self"
|
164
|
+
fails "Module#autoload on a frozen module raises a FrozenError before setting the name" # Exception: Cannot read property '$pretty_inspect' of undefined
|
165
|
+
fails "Module#autoload on a frozen module raises a RuntimeError before setting the name"
|
166
|
+
fails "Module#class_variable_set raises a FrozenError when self is frozen" # Expected FrozenError but no exception was raised ("test" was returned)
|
167
|
+
fails "Module#class_variable_set raises a RuntimeError when self is frozen"
|
168
|
+
fails "Module#const_set on a frozen module raises a FrozenError before setting the name" # Expected FrozenError but no exception was raised (nil was returned)
|
169
|
+
fails "Module#const_set on a frozen module raises a RuntimeError before setting the name"
|
170
|
+
fails "Module#define_method raises a FrozenError if frozen" # Expected FrozenError but no exception was raised (#<Class:0x13e2> was returned)
|
171
|
+
fails "Module#define_method raises a RuntimeError if frozen"
|
172
|
+
fails "Module#extend_object when given a frozen object raises a RuntimeError before extending the object"
|
173
|
+
fails "Module#name returns a frozen String" # Expected "ModuleSpecs".frozen? to be truthy but was false
|
174
|
+
fails "Module#name returns a mutable string that when mutated does not modify the original module name" # NotImplementedError: String#<< not supported. Mutable String methods are not supported in Opal.
|
175
|
+
fails "Module#remove_method on frozen instance does not raise exceptions when no arguments given"
|
176
|
+
fails "Module#remove_method on frozen instance raises a FrozenError when passed a missing name" # NameError: method 'not_exist' not defined in
|
177
|
+
fails "Module#remove_method on frozen instance raises a FrozenError when passed a name" # NameError: method 'method_to_remove' not defined in
|
178
|
+
fails "Module#remove_method on frozen instance raises a RuntimeError when passed a missing name"
|
179
|
+
fails "Module#remove_method on frozen instance raises a RuntimeError when passed a name"
|
180
|
+
fails "Module#remove_method on frozen instance raises a TypeError when passed a not name"
|
181
|
+
fails "Module#undef_method on frozen instance does not raise exceptions when no arguments given"
|
182
|
+
fails "Module#undef_method on frozen instance raises a FrozenError when passed a missing name" # NameError: method 'not_exist' not defined in
|
183
|
+
fails "Module#undef_method on frozen instance raises a FrozenError when passed a name" # NameError: method 'method_to_undef' not defined in
|
184
|
+
fails "Module#undef_method on frozen instance raises a RuntimeError when passed a missing name"
|
185
|
+
fails "Module#undef_method on frozen instance raises a RuntimeError when passed a name"
|
186
|
+
fails "Module#undef_method on frozen instance raises a TypeError when passed a not name"
|
187
|
+
fails "NilClass#to_s returns a frozen string" # Expected "".frozen? to be truthy but was false
|
188
|
+
fails "OpenStruct#method_missing when called with a method name ending in '=' raises a TypeError when self is frozen"
|
189
|
+
fails "Proc#[] with frozen_string_literals doesn't duplicate frozen strings" # Expected false to be true
|
190
|
+
fails "Regexp#initialize raises a FrozenError on a Regexp literal" # Expected FrozenError but no exception was raised (nil was returned)
|
191
|
+
fails "Set#compare_by_identity raises a FrozenError on frozen sets" # NoMethodError: undefined method `compare_by_identity' for #<Set: {}>
|
192
|
+
fails "String#+@ returns an unfrozen copy of a frozen String"
|
193
|
+
fails "String#+@ returns self if the String is not frozen"
|
194
|
+
fails "String#-@ deduplicates frozen strings" # Expected "this string is frozen" not to be identical to "this string is frozen"
|
195
|
+
fails "String#-@ interns the provided string if it is frozen" # NoMethodError: undefined method `-@' for "this string is unique and frozen 0.5421131713191049"
|
196
|
+
fails "String#-@ returns a frozen copy if the String is not frozen"
|
197
|
+
fails "String#-@ returns self if the String is frozen"
|
198
|
+
fails "String#<< raises a FrozenError when self is frozen" # NotImplementedError: String#<< not supported. Mutable String methods are not supported in Opal.
|
199
|
+
fails "String#<< with Integer raises a FrozenError when self is frozen" # NotImplementedError: String#<< not supported. Mutable String methods are not supported in Opal.
|
200
|
+
fails "String#[]= with Fixnum index raises a FrozenError when self is frozen" # NoMethodError: undefined method `[]=' for "hello":String
|
201
|
+
fails "String#capitalize! raises a FrozenError when self is frozen" # NotImplementedError: String#capitalize! not supported. Mutable String methods are not supported in Opal.
|
202
|
+
fails "String#chomp! raises a FrozenError on a frozen instance when it is modified" # NotImplementedError: String#chomp! not supported. Mutable String methods are not supported in Opal.
|
203
|
+
fails "String#chomp! raises a FrozenError on a frozen instance when it would not be modified" # NotImplementedError: String#chomp! not supported. Mutable String methods are not supported in Opal.
|
204
|
+
fails "String#chop! raises a FrozenError on a frozen instance that is modified" # NotImplementedError: String#chop! not supported. Mutable String methods are not supported in Opal.
|
205
|
+
fails "String#chop! raises a FrozenError on a frozen instance that would not be modified" # NotImplementedError: String#chop! not supported. Mutable String methods are not supported in Opal.
|
206
|
+
fails "String#clear raises a FrozenError if self is frozen" # NoMethodError: undefined method `clear' for "Jolene":String
|
207
|
+
fails "String#clone copies frozen state"
|
208
|
+
fails "String#concat raises a FrozenError when self is frozen" # NoMethodError: undefined method `concat' for "hello":String
|
209
|
+
fails "String#concat with Integer raises a FrozenError when self is frozen" # NoMethodError: undefined method `concat' for "hello":String
|
210
|
+
fails "String#delete! raises a FrozenError when self is frozen" # NoMethodError: undefined method `delete!' for "hello":String
|
211
|
+
fails "String#delete_prefix! raises a FrozenError when self is frozen" # NoMethodError: undefined method `delete_prefix!' for "hello":String
|
212
|
+
fails "String#delete_suffix! raises a FrozenError when self is frozen" # NoMethodError: undefined method `delete_suffix!' for "hello":String
|
213
|
+
fails "String#downcase! raises a FrozenError when self is frozen" # NotImplementedError: String#downcase! not supported. Mutable String methods are not supported in Opal.
|
214
|
+
fails "String#encode! raises a FrozenError when called on a frozen String when it's a no-op" # NoMethodError: undefined method `default_internal' for Encoding
|
215
|
+
fails "String#encode! raises a FrozenError when called on a frozen String" # NoMethodError: undefined method `default_internal' for Encoding
|
216
|
+
fails "String#force_encoding raises a FrozenError if self is frozen" # Expected FrozenError but no exception was raised ("abcd" was returned)
|
217
|
+
fails "String#freeze doesn't produce the same object for different instances of literals in the source"
|
218
|
+
fails "String#gsub! with pattern and block raises a FrozenError when self is frozen" # NotImplementedError: String#gsub! not supported. Mutable String methods are not supported in Opal.
|
219
|
+
fails "String#gsub! with pattern and replacement raises a FrozenError when self is frozen" # NotImplementedError: String#gsub! not supported. Mutable String methods are not supported in Opal.
|
220
|
+
fails "String#initialize with an argument raises a FrozenError on a frozen instance that is modified" # NotImplementedError: Mutable strings are not supported in Opal.
|
221
|
+
fails "String#initialize with an argument raises a FrozenError on a frozen instance when self-replacing" # NotImplementedError: Mutable strings are not supported in Opal.
|
222
|
+
fails "String#initialize with no arguments does not raise an exception when frozen"
|
223
|
+
fails "String#insert with index, other raises a FrozenError if self is frozen" # NoMethodError: undefined method `insert' for "abcd":String
|
224
|
+
fails "String#lstrip! raises a FrozenError on a frozen instance that is modified" # NotImplementedError: String#lstrip! not supported. Mutable String methods are not supported in Opal.
|
225
|
+
fails "String#lstrip! raises a FrozenError on a frozen instance that would not be modified" # NotImplementedError: String#lstrip! not supported. Mutable String methods are not supported in Opal.
|
226
|
+
fails "String#next! raises a FrozenError if self is frozen" # NotImplementedError: String#next! not supported. Mutable String methods are not supported in Opal.
|
227
|
+
fails "String#prepend raises a FrozenError when self is frozen" # NoMethodError: undefined method `prepend' for "hello":String
|
228
|
+
fails "String#replace raises a FrozenError on a frozen instance that is modified" # NoMethodError: undefined method `replace' for "hello":String
|
229
|
+
fails "String#replace raises a FrozenError on a frozen instance when self-replacing" # NoMethodError: undefined method `replace' for "hello":String
|
230
|
+
fails "String#reverse! raises a FrozenError on a frozen instance that is modified" # NotImplementedError: String#reverse! not supported. Mutable String methods are not supported in Opal.
|
231
|
+
fails "String#reverse! raises a FrozenError on a frozen instance that would not be modified" # NotImplementedError: String#reverse! not supported. Mutable String methods are not supported in Opal.
|
232
|
+
fails "String#rstrip! raises a FrozenError on a frozen instance that is modified" # NoMethodError: undefined method `rstrip!' for " hello ":String
|
233
|
+
fails "String#rstrip! raises a FrozenError on a frozen instance that would not be modified" # NoMethodError: undefined method `rstrip!' for "hello":String
|
234
|
+
fails "String#setbyte raises a FrozenError if self is frozen" # Expected false to be true
|
235
|
+
fails "String#slice! Range raises a FrozenError on a frozen instance that is modified" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
|
236
|
+
fails "String#slice! Range raises a FrozenError on a frozen instance that would not be modified" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
|
237
|
+
fails "String#slice! with Regexp raises a FrozenError on a frozen instance that is modified" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
|
238
|
+
fails "String#slice! with Regexp raises a FrozenError on a frozen instance that would not be modified" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
|
239
|
+
fails "String#slice! with Regexp, index raises a FrozenError if self is frozen" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
|
240
|
+
fails "String#slice! with String raises a FrozenError if self is frozen" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
|
241
|
+
fails "String#slice! with index raises a FrozenError if self is frozen" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
|
242
|
+
fails "String#slice! with index, length raises a FrozenError if self is frozen" # NotImplementedError: String#slice! not supported. Mutable String methods are not supported in Opal.
|
243
|
+
fails "String#squeeze! raises a FrozenError when self is frozen" # NotImplementedError: String#squeeze! not supported. Mutable String methods are not supported in Opal.
|
244
|
+
fails "String#strip! raises a FrozenError on a frozen instance that is modified" # NotImplementedError: String#strip! not supported. Mutable String methods are not supported in Opal.
|
245
|
+
fails "String#strip! raises a FrozenError on a frozen instance that would not be modified" # NotImplementedError: String#strip! not supported. Mutable String methods are not supported in Opal.
|
246
|
+
fails "String#sub! with pattern and block raises a FrozenError when self is frozen" # NotImplementedError: String#sub! not supported. Mutable String methods are not supported in Opal.
|
247
|
+
fails "String#sub! with pattern, replacement raises a FrozenError when self is frozen" # NotImplementedError: String#sub! not supported. Mutable String methods are not supported in Opal.
|
248
|
+
fails "String#succ! raises a FrozenError if self is frozen" # NotImplementedError: String#succ! not supported. Mutable String methods are not supported in Opal.
|
249
|
+
fails "String#swapcase! raises a FrozenError when self is frozen" # NotImplementedError: String#swapcase! not supported. Mutable String methods are not supported in Opal.
|
250
|
+
fails "String#tr! raises a FrozenError if self is frozen" # NotImplementedError: String#tr! not supported. Mutable String methods are not supported in Opal.
|
251
|
+
fails "String#tr_s! raises a FrozenError if self is frozen" # NotImplementedError: String#tr_s! not supported. Mutable String methods are not supported in Opal.
|
252
|
+
fails "String#upcase! raises a FrozenError when self is frozen" # NotImplementedError: String#upcase! not supported. Mutable String methods are not supported in Opal.
|
253
|
+
fails "StringScanner#initialize returns an instance of StringScanner"
|
254
|
+
fails "Time#gmtime on a frozen time raises a RuntimeError if the time is not UTC"
|
255
|
+
fails "Time#localtime on a frozen time does not raise an error if already in the right time zone"
|
256
|
+
fails "Time#localtime on a frozen time raises a RuntimeError if the time has a different time zone"
|
257
|
+
fails "Time#utc on a frozen time raises a RuntimeError if the time is not UTC"
|
258
|
+
fails "TrueClass#to_s returns a frozen string" # Expected "true".frozen? to be truthy but was false
|
259
|
+
end
|