opal 0.11.0.rc1 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.jshintrc +1 -1
- data/.travis.yml +14 -2
- data/CHANGELOG.md +30 -5
- data/HACKING.md +2 -2
- data/README.md +4 -5
- data/appveyor.yml +3 -4
- data/bin +1 -0
- data/docs/headless_chrome.md +105 -0
- data/docs/rspec.md +2 -19
- data/{bin → exe}/opal +0 -0
- data/{bin → exe}/opal-build +0 -0
- data/{bin → exe}/opal-mspec +0 -0
- data/{bin → exe}/opal-repl +0 -0
- data/lib/opal.rb +1 -0
- data/lib/opal/ast/builder.rb +0 -4
- data/lib/opal/builder.rb +69 -15
- data/lib/opal/builder_processors.rb +8 -7
- data/lib/opal/cli.rb +1 -1
- data/lib/opal/cli_options.rb +1 -1
- data/lib/opal/cli_runners.rb +1 -1
- data/lib/opal/cli_runners/applescript.rb +0 -1
- data/lib/opal/cli_runners/chrome.js +135 -0
- data/lib/opal/cli_runners/chrome.rb +100 -0
- data/lib/opal/cli_runners/nashorn.rb +0 -1
- data/lib/opal/cli_runners/node_modules/.bin/chrome-remote-interface +1 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/LICENSE +18 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/README.md +843 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/bin/client.js +326 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/chrome-remote-interface.js +11 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/index.js +39 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/api.js +84 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/chrome.js +289 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/defaults.js +4 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/devtools.js +245 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/external-request.js +23 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/protocol.json +13303 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/lib/websocket-wrapper.js +32 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/package.json +128 -0
- data/lib/opal/cli_runners/node_modules/chrome-remote-interface/webpack.config.js +55 -0
- data/lib/opal/cli_runners/node_modules/commander/Readme.md +195 -0
- data/lib/opal/cli_runners/node_modules/commander/index.js +851 -0
- data/lib/opal/cli_runners/node_modules/commander/package.json +92 -0
- data/lib/opal/cli_runners/node_modules/ultron/LICENSE +22 -0
- data/lib/opal/cli_runners/node_modules/ultron/index.js +138 -0
- data/lib/opal/cli_runners/node_modules/ultron/package.json +112 -0
- data/lib/opal/cli_runners/node_modules/ws/LICENSE +21 -0
- data/lib/opal/cli_runners/node_modules/ws/README.md +259 -0
- data/lib/opal/cli_runners/node_modules/ws/SECURITY.md +33 -0
- data/lib/opal/cli_runners/node_modules/ws/index.js +15 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.fallback.js +56 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/BufferUtil.js +15 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/ErrorCodes.js +28 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/EventTarget.js +158 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/Extensions.js +69 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/PerMessageDeflate.js +339 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/Receiver.js +520 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/Sender.js +438 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/Validation.fallback.js +9 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/Validation.js +17 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/WebSocket.js +705 -0
- data/lib/opal/cli_runners/node_modules/ws/lib/WebSocketServer.js +336 -0
- data/lib/opal/cli_runners/node_modules/ws/package.json +122 -0
- data/lib/opal/cli_runners/nodejs.rb +0 -1
- data/lib/opal/cli_runners/package.json +5 -0
- data/lib/opal/cli_runners/server.rb +0 -1
- data/lib/opal/compiler.rb +8 -18
- data/lib/opal/deprecations.rb +1 -1
- data/lib/opal/eof_content.rb +36 -0
- data/lib/opal/nodes.rb +0 -1
- data/lib/opal/nodes/args/kwarg.rb +8 -6
- data/lib/opal/nodes/args/kwoptarg.rb +12 -6
- data/lib/opal/nodes/call.rb +3 -2
- data/lib/opal/nodes/call_special.rb +10 -1
- data/lib/opal/nodes/definitions.rb +5 -3
- data/lib/opal/nodes/helpers.rb +4 -8
- data/lib/opal/nodes/literal.rb +13 -1
- data/lib/opal/nodes/logic.rb +19 -32
- data/lib/opal/nodes/node_with_args.rb +1 -1
- data/lib/opal/nodes/scope.rb +1 -0
- data/lib/opal/nodes/super.rb +0 -4
- data/lib/opal/nodes/variables.rb +11 -0
- data/lib/opal/parser.rb +24 -19
- data/lib/opal/path_reader.rb +17 -4
- data/lib/opal/rewriter.rb +5 -1
- data/lib/opal/rewriters/base.rb +37 -34
- data/lib/opal/rewriters/binary_operator_assignment.rb +0 -3
- data/lib/opal/rewriters/for_rewriter.rb +93 -0
- data/lib/opal/rewriters/hashes/key_duplicates_rewriter.rb +58 -0
- data/lib/opal/rewriters/js_reserved_words.rb +5 -8
- data/lib/opal/rewriters/logical_operator_assignment.rb +0 -1
- data/lib/opal/simple_server.rb +1 -0
- data/lib/opal/util.rb +1 -1
- data/lib/opal/version.rb +1 -1
- data/opal.gemspec +32 -30
- data/opal/corelib/array.rb +53 -30
- data/opal/corelib/boolean.rb +11 -3
- data/opal/corelib/comparable.rb +16 -0
- data/opal/corelib/constants.rb +3 -3
- data/opal/corelib/enumerable.rb +48 -1
- data/opal/corelib/file.rb +54 -11
- data/opal/corelib/hash.rb +98 -0
- data/opal/corelib/io.rb +2 -2
- data/opal/corelib/kernel.rb +28 -11
- data/opal/corelib/marshal/read_buffer.rb +288 -150
- data/opal/corelib/marshal/write_buffer.rb +27 -2
- data/opal/corelib/nil.rb +11 -3
- data/opal/corelib/number.rb +90 -20
- data/opal/corelib/numeric.rb +3 -3
- data/opal/corelib/random.rb +1 -1
- data/opal/corelib/range.rb +22 -22
- data/opal/corelib/regexp.rb +45 -4
- data/opal/corelib/runtime.js +25 -9
- data/opal/corelib/string.rb +1 -1
- data/opal/corelib/string/encoding.rb +21 -29
- data/opal/corelib/string/inheritance.rb +1 -1
- data/opal/corelib/struct.rb +0 -5
- data/opal/corelib/time.rb +1 -1
- data/stdlib/buffer/array.rb +4 -2
- data/stdlib/date.rb +46 -12
- data/stdlib/headless_chrome.rb +11 -0
- data/stdlib/nodejs/file.rb +36 -11
- data/stdlib/nodejs/io.rb +8 -0
- data/stdlib/nodejs/stacktrace.rb +116 -100
- data/stdlib/opal-builder.rb +1 -0
- data/stdlib/opal-platform.rb +6 -6
- data/stdlib/opal/platform.rb +2 -2
- data/stdlib/rbconfig.rb +1 -1
- data/stdlib/securerandom.rb +1 -1
- data/tasks/testing.rake +58 -26
- data/tasks/testing/opal_rspec_smoketest.Gemfile +5 -12
- metadata +64 -733
- data/lib/opal/cli_runners/phantom.js +0 -69
- data/lib/opal/cli_runners/phantomjs.rb +0 -29
- data/lib/opal/hike_path_finder.rb +0 -19
- data/lib/opal/nodes/for.rb +0 -75
- data/spec/README.md +0 -10
- data/spec/filters/bugs/array.rb +0 -16
- data/spec/filters/bugs/basicobject.rb +0 -13
- data/spec/filters/bugs/bigdecimal.rb +0 -146
- data/spec/filters/bugs/class.rb +0 -11
- data/spec/filters/bugs/comparable.rb +0 -5
- data/spec/filters/bugs/complex.rb +0 -3
- data/spec/filters/bugs/date.rb +0 -94
- data/spec/filters/bugs/enumerable.rb +0 -43
- data/spec/filters/bugs/enumerator.rb +0 -40
- data/spec/filters/bugs/exception.rb +0 -72
- data/spec/filters/bugs/file.rb +0 -8
- data/spec/filters/bugs/float.rb +0 -39
- data/spec/filters/bugs/hash.rb +0 -15
- data/spec/filters/bugs/inheritance.rb +0 -5
- data/spec/filters/bugs/integer.rb +0 -30
- data/spec/filters/bugs/io.rb +0 -8
- data/spec/filters/bugs/kernel.rb +0 -168
- data/spec/filters/bugs/language.rb +0 -190
- data/spec/filters/bugs/marshal.rb +0 -41
- data/spec/filters/bugs/method.rb +0 -60
- data/spec/filters/bugs/module.rb +0 -158
- data/spec/filters/bugs/numeric.rb +0 -8
- data/spec/filters/bugs/pathname.rb +0 -7
- data/spec/filters/bugs/proc.rb +0 -37
- data/spec/filters/bugs/random.rb +0 -7
- data/spec/filters/bugs/range.rb +0 -36
- data/spec/filters/bugs/rational.rb +0 -4
- data/spec/filters/bugs/regexp.rb +0 -158
- data/spec/filters/bugs/set.rb +0 -41
- data/spec/filters/bugs/singleton.rb +0 -6
- data/spec/filters/bugs/string.rb +0 -98
- data/spec/filters/bugs/stringscanner.rb +0 -71
- data/spec/filters/bugs/struct.rb +0 -4
- data/spec/filters/bugs/time.rb +0 -35
- data/spec/filters/bugs/unboundmethod.rb +0 -17
- data/spec/filters/unsupported/array.rb +0 -167
- data/spec/filters/unsupported/basicobject.rb +0 -14
- data/spec/filters/unsupported/bignum.rb +0 -55
- data/spec/filters/unsupported/class.rb +0 -4
- data/spec/filters/unsupported/delegator.rb +0 -5
- data/spec/filters/unsupported/enumerable.rb +0 -11
- data/spec/filters/unsupported/enumerator.rb +0 -13
- data/spec/filters/unsupported/file.rb +0 -4
- data/spec/filters/unsupported/fixnum.rb +0 -14
- data/spec/filters/unsupported/float.rb +0 -46
- data/spec/filters/unsupported/freeze.rb +0 -75
- data/spec/filters/unsupported/hash.rb +0 -43
- data/spec/filters/unsupported/integer.rb +0 -3
- data/spec/filters/unsupported/kernel.rb +0 -32
- data/spec/filters/unsupported/language.rb +0 -22
- data/spec/filters/unsupported/marshal.rb +0 -46
- data/spec/filters/unsupported/matchdata.rb +0 -33
- data/spec/filters/unsupported/math.rb +0 -3
- data/spec/filters/unsupported/pathname.rb +0 -3
- data/spec/filters/unsupported/privacy.rb +0 -279
- data/spec/filters/unsupported/proc.rb +0 -3
- data/spec/filters/unsupported/random.rb +0 -4
- data/spec/filters/unsupported/range.rb +0 -7
- data/spec/filters/unsupported/regexp.rb +0 -69
- data/spec/filters/unsupported/set.rb +0 -4
- data/spec/filters/unsupported/singleton.rb +0 -6
- data/spec/filters/unsupported/string.rb +0 -546
- data/spec/filters/unsupported/struct.rb +0 -6
- data/spec/filters/unsupported/symbol.rb +0 -20
- data/spec/filters/unsupported/taint.rb +0 -30
- data/spec/filters/unsupported/thread.rb +0 -7
- data/spec/filters/unsupported/time.rb +0 -202
- data/spec/lib/builder_processors_spec.rb +0 -27
- data/spec/lib/builder_spec.rb +0 -89
- data/spec/lib/cli_runners/phantomjs_spec.rb +0 -39
- data/spec/lib/cli_spec.rb +0 -240
- data/spec/lib/compiler/call_spec.rb +0 -732
- data/spec/lib/compiler_spec.rb +0 -294
- data/spec/lib/config_spec.rb +0 -110
- data/spec/lib/dependency_resolver_spec.rb +0 -40
- data/spec/lib/deprecations_spec.rb +0 -16
- data/spec/lib/fixtures/complex_sprockets.js.rb.erb +0 -4
- data/spec/lib/fixtures/file_with_directives.js +0 -2
- data/spec/lib/fixtures/jst_file.js.jst +0 -1
- data/spec/lib/fixtures/no_requires.rb +0 -1
- data/spec/lib/fixtures/opal_file.rb +0 -2
- data/spec/lib/fixtures/require_tree_test.rb +0 -3
- data/spec/lib/fixtures/required_file.js +0 -1
- data/spec/lib/fixtures/required_tree_test/required_file1.rb +0 -1
- data/spec/lib/fixtures/required_tree_test/required_file2.rb +0 -1
- data/spec/lib/fixtures/requires.rb +0 -7
- data/spec/lib/fixtures/source_location_test.rb +0 -7
- data/spec/lib/fixtures/source_map.rb +0 -1
- data/spec/lib/fixtures/source_map/subfolder/other_file.rb +0 -1
- data/spec/lib/fixtures/sprockets_file.js.rb +0 -3
- data/spec/lib/fixtures/sprockets_require_tree_test.rb +0 -3
- data/spec/lib/hike_path_finder_spec.rb +0 -23
- data/spec/lib/path_reader_spec.rb +0 -36
- data/spec/lib/paths_spec.rb +0 -18
- data/spec/lib/rewriters/binary_operator_assignment_spec.rb +0 -151
- data/spec/lib/rewriters/block_to_iter_spec.rb +0 -28
- data/spec/lib/rewriters/dot_js_syntax_spec.rb +0 -108
- data/spec/lib/rewriters/explicit_writer_return_spec.rb +0 -186
- data/spec/lib/rewriters/js_reserved_words_spec.rb +0 -116
- data/spec/lib/rewriters/logical_operator_assignment_spec.rb +0 -202
- data/spec/lib/rewriters/opal_engine_check_spec.rb +0 -82
- data/spec/lib/rewriters/rubyspec/filters_rewriter_spec.rb +0 -53
- data/spec/lib/shared/path_finder_shared.rb +0 -19
- data/spec/lib/shared/path_reader_shared.rb +0 -31
- data/spec/lib/simple_server_spec.rb +0 -54
- data/spec/lib/spec_helper.rb +0 -100
- data/spec/mspec-opal/formatters.rb +0 -236
- data/spec/mspec-opal/runner.rb +0 -173
- data/spec/opal/compiler/irb_spec.rb +0 -44
- data/spec/opal/core/arity_spec.rb +0 -142
- data/spec/opal/core/array/intersection_spec.rb +0 -38
- data/spec/opal/core/array/minus_spec.rb +0 -38
- data/spec/opal/core/array/select_spec.rb +0 -14
- data/spec/opal/core/array/set_range_to_array_spec.rb +0 -7
- data/spec/opal/core/array/union_spec.rb +0 -38
- data/spec/opal/core/array/uniq_spec.rb +0 -49
- data/spec/opal/core/date_spec.rb +0 -191
- data/spec/opal/core/enumerable/all_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/any_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/collect_break_spec.rb +0 -13
- data/spec/opal/core/enumerable/count_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/detect_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/drop_while_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/each_slice_break.rb +0 -6
- data/spec/opal/core/enumerable/each_with_index_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/each_with_object_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/find_all_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/find_index_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/grep_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/max_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/max_by_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/min_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/min_by_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/none_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/one_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/reduce_break_spec.rb +0 -5
- data/spec/opal/core/enumerable/take_while_break_spec.rb +0 -5
- data/spec/opal/core/enumerator/with_index_spec.rb +0 -6
- data/spec/opal/core/exception_spec.rb +0 -30
- data/spec/opal/core/fixtures/class.rb +0 -124
- data/spec/opal/core/fixtures/class_variables.rb +0 -0
- data/spec/opal/core/fixtures/constants.rb +0 -33
- data/spec/opal/core/fixtures/require_tree_files/file 1.rb +0 -1
- data/spec/opal/core/fixtures/require_tree_files/file 2.rb +0 -1
- data/spec/opal/core/fixtures/require_tree_files/file 3.rb +0 -1
- data/spec/opal/core/fixtures/require_tree_files/file 4.rb +0 -1
- data/spec/opal/core/fixtures/require_tree_files/file 5.rb +0 -1
- data/spec/opal/core/fixtures/require_tree_files/nested/nested 1.rb +0 -1
- data/spec/opal/core/fixtures/require_tree_files/nested/nested 2.rb +0 -1
- data/spec/opal/core/fixtures/require_tree_files/other/other 1.rb +0 -1
- data/spec/opal/core/fixtures/require_tree_with_dot/file 1.rb +0 -1
- data/spec/opal/core/fixtures/require_tree_with_dot/file 2.rb +0 -1
- data/spec/opal/core/fixtures/require_tree_with_dot/file 3.rb +0 -1
- data/spec/opal/core/fixtures/require_tree_with_dot/index.rb +0 -3
- data/spec/opal/core/hash/has_value_spec.rb +0 -13
- data/spec/opal/core/hash/internals_spec.rb +0 -332
- data/spec/opal/core/helpers_spec.rb +0 -14
- data/spec/opal/core/kernel/Array_spec.rb +0 -10
- data/spec/opal/core/kernel/at_exit_spec.rb +0 -70
- data/spec/opal/core/kernel/block_given_spec.rb +0 -30
- data/spec/opal/core/kernel/class_spec.rb +0 -6
- data/spec/opal/core/kernel/define_singleton_method_spec.rb +0 -21
- data/spec/opal/core/kernel/equal_value_spec.rb +0 -12
- data/spec/opal/core/kernel/extend_spec.rb +0 -21
- data/spec/opal/core/kernel/format_spec.rb +0 -122
- data/spec/opal/core/kernel/freeze_spec.rb +0 -15
- data/spec/opal/core/kernel/instance_eval_spec.rb +0 -28
- data/spec/opal/core/kernel/instance_variable_defined_spec.rb +0 -15
- data/spec/opal/core/kernel/instance_variable_get_spec.rb +0 -14
- data/spec/opal/core/kernel/instance_variable_set_spec.rb +0 -10
- data/spec/opal/core/kernel/instance_variables_spec.rb +0 -110
- data/spec/opal/core/kernel/loop_spec.rb +0 -23
- data/spec/opal/core/kernel/match_spec.rb +0 -5
- data/spec/opal/core/kernel/method_spec.rb +0 -31
- data/spec/opal/core/kernel/methods_spec.rb +0 -25
- data/spec/opal/core/kernel/nil_spec.rb +0 -7
- data/spec/opal/core/kernel/p_spec.rb +0 -15
- data/spec/opal/core/kernel/printf_spec.rb +0 -11
- data/spec/opal/core/kernel/proc_spec.rb +0 -13
- data/spec/opal/core/kernel/raise_spec.rb +0 -13
- data/spec/opal/core/kernel/rand_spec.rb +0 -19
- data/spec/opal/core/kernel/require_tree_spec.rb +0 -18
- data/spec/opal/core/kernel/respond_to_spec.rb +0 -44
- data/spec/opal/core/kernel/send_spec.rb +0 -56
- data/spec/opal/core/kernel/sprintf_spec.rb +0 -5
- data/spec/opal/core/language/arguments/mlhs_arg_spec.rb +0 -19
- data/spec/opal/core/language/class_spec.rb +0 -55
- data/spec/opal/core/language/constant_lookup_spec.rb +0 -38
- data/spec/opal/core/language/equal_spec.rb +0 -8
- data/spec/opal/core/language/fixtures/array.rb +0 -11
- data/spec/opal/core/language/fixtures/block.rb +0 -57
- data/spec/opal/core/language/fixtures/break.rb +0 -240
- data/spec/opal/core/language/fixtures/ensure.rb +0 -72
- data/spec/opal/core/language/fixtures/literal_lambda.rb +0 -7
- data/spec/opal/core/language/fixtures/metaclass.rb +0 -33
- data/spec/opal/core/language/fixtures/module.rb +0 -24
- data/spec/opal/core/language/fixtures/next.rb +0 -128
- data/spec/opal/core/language/fixtures/return.rb +0 -118
- data/spec/opal/core/language/fixtures/send.rb +0 -111
- data/spec/opal/core/language/fixtures/send_1.9.rb +0 -22
- data/spec/opal/core/language/fixtures/super.rb +0 -308
- data/spec/opal/core/language/fixtures/variables.rb +0 -58
- data/spec/opal/core/language/fixtures/yield.rb +0 -28
- data/spec/opal/core/language/heredoc_spec.rb +0 -42
- data/spec/opal/core/language/keyword_arguments_spec.rb +0 -11
- data/spec/opal/core/language/predefined_spec.rb +0 -138
- data/spec/opal/core/language/regexp_spec.rb +0 -20
- data/spec/opal/core/language/rescue_spec.rb +0 -18
- data/spec/opal/core/language/safe_navigator_spec.rb +0 -7
- data/spec/opal/core/language/send_spec.rb +0 -222
- data/spec/opal/core/language/string_spec.rb +0 -44
- data/spec/opal/core/language/ternary_operator_spec.rb +0 -20
- data/spec/opal/core/language/versions/array_1.9.rb +0 -39
- data/spec/opal/core/language/versions/block_1.9.rb +0 -0
- data/spec/opal/core/language/versions/break_1.9.rb +0 -0
- data/spec/opal/core/language/versions/case_1.9.rb +0 -20
- data/spec/opal/core/language/versions/def_2_0_spec.rb +0 -58
- data/spec/opal/core/language/versions/hash_1_9_spec.rb +0 -23
- data/spec/opal/core/language/versions/literal_lambda_1.9.rb +0 -143
- data/spec/opal/core/language/versions/not_1.9.rb +0 -22
- data/spec/opal/core/language/versions/send_1.9.rb +0 -241
- data/spec/opal/core/language/versions/symbol_1.9.rb +0 -15
- data/spec/opal/core/language/versions/variables_1.9.rb +0 -8
- data/spec/opal/core/language_spec.rb +0 -77
- data/spec/opal/core/marshal/dump_spec.rb +0 -53
- data/spec/opal/core/marshal/load_spec.rb +0 -7
- data/spec/opal/core/method/to_proc_spec.rb +0 -28
- data/spec/opal/core/module/alias_method_spec.rb +0 -28
- data/spec/opal/core/module/ancestors_spec.rb +0 -11
- data/spec/opal/core/module/append_features_spec.rb +0 -14
- data/spec/opal/core/module/attr_accessor_spec.rb +0 -26
- data/spec/opal/core/module/const_defined_spec.rb +0 -84
- data/spec/opal/core/module/const_get_spec.rb +0 -85
- data/spec/opal/core/module/const_missing_spec.rb +0 -17
- data/spec/opal/core/module/const_set_spec.rb +0 -64
- data/spec/opal/core/module/constants_spec.rb +0 -49
- data/spec/opal/core/module/fixtures/classes.rb +0 -444
- data/spec/opal/core/module/method_defined_spec.rb +0 -48
- data/spec/opal/core/module/method_lookup_spec.rb +0 -13
- data/spec/opal/core/module/module_function_spec.rb +0 -25
- data/spec/opal/core/module/name_spec.rb +0 -41
- data/spec/opal/core/module/public_method_defined_spec.rb +0 -18
- data/spec/opal/core/module/remove_const_spec.rb +0 -22
- data/spec/opal/core/module/undef_method_spec.rb +0 -66
- data/spec/opal/core/numeric/bit_and_spec.rb +0 -7
- data/spec/opal/core/numeric/bit_or_spec.rb +0 -8
- data/spec/opal/core/numeric/bit_xor_spec.rb +0 -6
- data/spec/opal/core/numeric/ceil_spec.rb +0 -8
- data/spec/opal/core/numeric/chr_spec.rb +0 -8
- data/spec/opal/core/numeric/comparison_spec.rb +0 -24
- data/spec/opal/core/numeric/complement_spec.rb +0 -8
- data/spec/opal/core/numeric/divide_spec.rb +0 -10
- data/spec/opal/core/numeric/eql_spec.rb +0 -9
- data/spec/opal/core/numeric/exponent_spec.rb +0 -33
- data/spec/opal/core/numeric/floor_spec.rb +0 -8
- data/spec/opal/core/numeric/gt_spec.rb +0 -11
- data/spec/opal/core/numeric/gte_spec.rb +0 -12
- data/spec/opal/core/numeric/integer_spec.rb +0 -9
- data/spec/opal/core/numeric/left_shift_spec.rb +0 -21
- data/spec/opal/core/numeric/lt_spec.rb +0 -11
- data/spec/opal/core/numeric/lte_spec.rb +0 -12
- data/spec/opal/core/numeric/minus_spec.rb +0 -8
- data/spec/opal/core/numeric/modulo_spec.rb +0 -19
- data/spec/opal/core/numeric/multiply_spec.rb +0 -9
- data/spec/opal/core/numeric/next_spec.rb +0 -9
- data/spec/opal/core/numeric/ord_spec.rb +0 -9
- data/spec/opal/core/numeric/plus_spec.rb +0 -8
- data/spec/opal/core/numeric/pred_spec.rb +0 -7
- data/spec/opal/core/numeric/right_shift_spec.rb +0 -25
- data/spec/opal/core/numeric/step_spec.rb +0 -11
- data/spec/opal/core/numeric/succ_spec.rb +0 -9
- data/spec/opal/core/numeric/times_spec.rb +0 -36
- data/spec/opal/core/numeric/to_f_spec.rb +0 -7
- data/spec/opal/core/numeric/to_i_spec.rb +0 -7
- data/spec/opal/core/numeric/to_json_spec.rb +0 -8
- data/spec/opal/core/numeric/to_s_spec.rb +0 -26
- data/spec/opal/core/numeric/uminus_spec.rb +0 -9
- data/spec/opal/core/numeric/upto_spec.rb +0 -19
- data/spec/opal/core/numeric/zero_spec.rb +0 -7
- data/spec/opal/core/object_id_spec.rb +0 -56
- data/spec/opal/core/proc/call_spec.rb +0 -21
- data/spec/opal/core/proc/element_reference_spec.rb +0 -21
- data/spec/opal/core/proc/proc_tricks_spec.rb +0 -7
- data/spec/opal/core/runtime/begin_spec.rb +0 -39
- data/spec/opal/core/runtime/block_spec.rb +0 -23
- data/spec/opal/core/runtime/bridged_classes_spec.rb +0 -123
- data/spec/opal/core/runtime/constants_spec.rb +0 -13
- data/spec/opal/core/runtime/donate_spec.rb +0 -53
- data/spec/opal/core/runtime/eval_spec.rb +0 -5
- data/spec/opal/core/runtime/is_a_spec.rb +0 -36
- data/spec/opal/core/runtime/main_methods_spec.rb +0 -27
- data/spec/opal/core/runtime/method_missing_spec.rb +0 -68
- data/spec/opal/core/runtime/method_spec.rb +0 -31
- data/spec/opal/core/runtime/operator_call_spec.rb +0 -13
- data/spec/opal/core/runtime/paren_spec.rb +0 -14
- data/spec/opal/core/runtime/rescue_spec.rb +0 -106
- data/spec/opal/core/runtime/return_spec.rb +0 -38
- data/spec/opal/core/runtime/singleton_class_spec.rb +0 -13
- data/spec/opal/core/runtime/super_spec.rb +0 -223
- data/spec/opal/core/runtime/truthy_spec.rb +0 -63
- data/spec/opal/core/runtime/variables_spec.rb +0 -20
- data/spec/opal/core/runtime_spec.rb +0 -58
- data/spec/opal/core/source_map_spec.rb +0 -49
- data/spec/opal/core/string_spec.rb +0 -32
- data/spec/opal/core/time_spec.rb +0 -38
- data/spec/opal/javascript_api_spec.rb +0 -16
- data/spec/opal/stdlib/erb/erb_spec.rb +0 -30
- data/spec/opal/stdlib/erb/inline_block.opalerb +0 -3
- data/spec/opal/stdlib/erb/quoted.opalerb +0 -1
- data/spec/opal/stdlib/erb/simple.opalerb +0 -1
- data/spec/opal/stdlib/js_spec.rb +0 -66
- data/spec/opal/stdlib/json/ext_spec.rb +0 -48
- data/spec/opal/stdlib/json/parse_spec.rb +0 -37
- data/spec/opal/stdlib/native/alias_native_spec.rb +0 -27
- data/spec/opal/stdlib/native/array_spec.rb +0 -11
- data/spec/opal/stdlib/native/each_spec.rb +0 -13
- data/spec/opal/stdlib/native/element_reference_spec.rb +0 -16
- data/spec/opal/stdlib/native/exposure_spec.rb +0 -33
- data/spec/opal/stdlib/native/ext_spec.rb +0 -19
- data/spec/opal/stdlib/native/hash_spec.rb +0 -67
- data/spec/opal/stdlib/native/initialize_spec.rb +0 -17
- data/spec/opal/stdlib/native/method_missing_spec.rb +0 -51
- data/spec/opal/stdlib/native/native_alias_spec.rb +0 -19
- data/spec/opal/stdlib/native/native_class_spec.rb +0 -18
- data/spec/opal/stdlib/native/native_module_spec.rb +0 -13
- data/spec/opal/stdlib/native/native_reader_spec.rb +0 -22
- data/spec/opal/stdlib/native/native_writer_spec.rb +0 -30
- data/spec/opal/stdlib/native/new_spec.rb +0 -92
- data/spec/opal/stdlib/native/struct_spec.rb +0 -12
- data/spec/opal/stdlib/promise/always_spec.rb +0 -49
- data/spec/opal/stdlib/promise/error_spec.rb +0 -15
- data/spec/opal/stdlib/promise/rescue_spec.rb +0 -53
- data/spec/opal/stdlib/promise/then_spec.rb +0 -79
- data/spec/opal/stdlib/promise/trace_spec.rb +0 -51
- data/spec/opal/stdlib/promise/value_spec.rb +0 -15
- data/spec/opal/stdlib/promise/when_spec.rb +0 -34
- data/spec/opal/stdlib/source_map_spec.rb +0 -8
- data/spec/opal/stdlib/strscan/scan_spec.rb +0 -11
- data/spec/opal/stdlib/template/paths_spec.rb +0 -10
- data/spec/opal/stdlib/thread/mutex_spec.rb +0 -40
- data/spec/opal/stdlib/thread/thread_queue_spec.rb +0 -32
- data/spec/opal/stdlib/thread/thread_spec.rb +0 -60
- data/spec/ruby_specs +0 -122
- data/spec/spec_helper.rb +0 -27
- data/spec/support/match_helpers.rb +0 -57
- data/spec/support/mspec_rspec_adapter.rb +0 -33
- data/spec/support/rewriters_helper.rb +0 -24
- data/stdlib/phantomjs.rb +0 -17
- data/tasks/testing/sprockets-phantomjs.js +0 -54
- data/test/nodejs/fixtures/hello.rb +0 -1
- data/test/nodejs/test_dir.rb +0 -17
- data/test/nodejs/test_file.rb +0 -87
- data/test/nodejs/test_io.rb +0 -18
- data/test/nodejs/test_opal_builder.rb +0 -12
- data/test/opal/test_keyword.rb +0 -590
- data/test/opal/unsupported_and_bugs.rb +0 -39
@@ -1,43 +0,0 @@
|
|
1
|
-
opal_filter "Enumerable" do
|
2
|
-
fails "Enumerable#chunk_while on a single-element array ignores the block and returns an enumerator that yields [element]" # Expected [] to equal [[1]]
|
3
|
-
fails "Enumerable#first returns a gathered array from yield parameters"
|
4
|
-
fails "Enumerable#grep with a block calls the block with gathered array when yielded with multiple arguments"
|
5
|
-
fails "Enumerable#grep_v with block calls the block with gathered array when yielded with multiple arguments"
|
6
|
-
fails "Enumerable#grep_v without block compares pattern with gathered array when yielded with multiple arguments"
|
7
|
-
fails "Enumerable#max_by when called with an argument n when n is nil returns the maximum element"
|
8
|
-
fails "Enumerable#max_by when called with an argument n with a block on a enumerable of length x where x < n returns an array containing the maximum n elements of length n"
|
9
|
-
fails "Enumerable#max_by when called with an argument n with a block returns an array containing the maximum n elements based on the block's value"
|
10
|
-
fails "Enumerable#max_by when called with an argument n without a block returns an enumerator"
|
11
|
-
fails "Enumerable#min that is nil returns the minimum element"
|
12
|
-
fails "Enumerable#min when called with an argument n on a enumerable of length x where x < n returns an array containing the minimum n elements of length x"
|
13
|
-
fails "Enumerable#min when called with an argument n with a block returns an array containing the minimum n elements"
|
14
|
-
fails "Enumerable#min when called with an argument n without a block returns an array containing the minimum n elements"
|
15
|
-
fails "Enumerable#min_by when called with an argument n when n is nil returns the minimum element"
|
16
|
-
fails "Enumerable#min_by when called with an argument n with a block on a enumerable of length x where x < n returns an array containing the minimum n elements of length n"
|
17
|
-
fails "Enumerable#min_by when called with an argument n with a block returns an array containing the minimum n elements based on the block's value"
|
18
|
-
fails "Enumerable#min_by when called with an argument n without a block returns an enumerator"
|
19
|
-
fails "Enumerable#minmax_by Enumerable with no size when no block is given returned Enumerator size returns nil"
|
20
|
-
fails "Enumerable#minmax_by Enumerable with size when no block is given returned Enumerator size returns the enumerable size"
|
21
|
-
fails "Enumerable#minmax_by gathers whole arrays as elements when each yields multiple"
|
22
|
-
fails "Enumerable#minmax_by is able to return the maximum for enums that contain nils"
|
23
|
-
fails "Enumerable#minmax_by returns an enumerator if no block"
|
24
|
-
fails "Enumerable#minmax_by returns nil if #each yields no objects"
|
25
|
-
fails "Enumerable#minmax_by returns the object for whom the value returned by block is the largest"
|
26
|
-
fails "Enumerable#minmax_by returns the object that appears first in #each in case of a tie"
|
27
|
-
fails "Enumerable#minmax_by uses min/max.<=>(current) to determine order"
|
28
|
-
fails "Enumerable#reverse_each gathers whole arrays as elements when each yields multiple"
|
29
|
-
fails "Enumerable#slice_when when an iterator method yields more than one value processes all yielded values"
|
30
|
-
fails "Enumerable#slice_when when given a block doesn't yield an empty array on a small enumerable" # Expected [] to equal [[42]]
|
31
|
-
fails "Enumerable#sort_by returns an array of elements when a block is supplied and #map returns an enumerable"
|
32
|
-
fails "Enumerable#take_while calls the block with initial args when yielded with multiple arguments"
|
33
|
-
fails "Enumerable#to_h calls #to_ary on contents"
|
34
|
-
fails "Enumerable#to_h converts empty enumerable to empty hash"
|
35
|
-
fails "Enumerable#to_h converts yielded [key, value] pairs to a hash"
|
36
|
-
fails "Enumerable#to_h forwards arguments to #each"
|
37
|
-
fails "Enumerable#to_h raises ArgumentError if an element is not a [key, value] pair"
|
38
|
-
fails "Enumerable#to_h raises TypeError if an element is not an array"
|
39
|
-
fails "Enumerable#to_h uses the last value of a duplicated key"
|
40
|
-
fails "Enumerable#zip converts arguments to enums using #to_enum"
|
41
|
-
fails "Enumerable#zip gathers whole arrays as elements when each yields multiple"
|
42
|
-
fails "Enumerable#zip passes each element of the result array to a block and return nil if a block is given"
|
43
|
-
end
|
@@ -1,40 +0,0 @@
|
|
1
|
-
opal_filter "Enumerator" do
|
2
|
-
fails "Enumerator#each_with_index raises an ArgumentError if passed extra arguments"
|
3
|
-
fails "Enumerator#each_with_index returns the object being enumerated when given a block"
|
4
|
-
fails "Enumerator#enum_for exposes multi-arg yields as an array"
|
5
|
-
fails "Enumerator#feed can be called for each iteration"
|
6
|
-
fails "Enumerator#feed causes yield to return the value if called during iteration"
|
7
|
-
fails "Enumerator#feed raises a TypeError if called more than once without advancing the enumerator"
|
8
|
-
fails "Enumerator#feed returns nil"
|
9
|
-
fails "Enumerator#feed sets the future return value of yield if called before advancing the iterator"
|
10
|
-
fails "Enumerator#feed sets the return value of Yielder#yield"
|
11
|
-
fails "Enumerator#initialize returns self when given a block"
|
12
|
-
fails "Enumerator#initialize returns self when given an object"
|
13
|
-
fails "Enumerator#initialize sets size to nil if size is not given"
|
14
|
-
fails "Enumerator#initialize sets size to nil if the given size is nil"
|
15
|
-
fails "Enumerator#initialize sets size to the given size if the given size is Float::INFINITY"
|
16
|
-
fails "Enumerator#initialize sets size to the given size if the given size is a Fixnum"
|
17
|
-
fails "Enumerator#initialize sets size to the given size if the given size is a Proc"
|
18
|
-
fails "Enumerator#next_values advances the position of the current element"
|
19
|
-
fails "Enumerator#next_values advances the position of the enumerator each time when called multiple times"
|
20
|
-
fails "Enumerator#next_values raises StopIteration if called on a finished enumerator"
|
21
|
-
fails "Enumerator#next_values returns an array with only nil if yield is called with nil"
|
22
|
-
fails "Enumerator#next_values returns an empty array if yield is called without arguments"
|
23
|
-
fails "Enumerator#next_values returns the next element in self"
|
24
|
-
fails "Enumerator#next_values works in concert with #rewind"
|
25
|
-
fails "Enumerator#peek can be called repeatedly without advancing the position of the current element"
|
26
|
-
fails "Enumerator#peek does not advance the position of the current element"
|
27
|
-
fails "Enumerator#peek raises StopIteration if called on a finished enumerator"
|
28
|
-
fails "Enumerator#peek returns the next element in self"
|
29
|
-
fails "Enumerator#peek works in concert with #rewind"
|
30
|
-
fails "Enumerator#peek_values can be called repeatedly without advancing the position of the current element"
|
31
|
-
fails "Enumerator#peek_values does not advance the position of the current element"
|
32
|
-
fails "Enumerator#peek_values raises StopIteration if called on a finished enumerator"
|
33
|
-
fails "Enumerator#peek_values returns an array with only nil if yield is called with nil"
|
34
|
-
fails "Enumerator#peek_values returns an empty array if yield is called without arguments"
|
35
|
-
fails "Enumerator#peek_values returns the next element in self"
|
36
|
-
fails "Enumerator#peek_values works in concert with #rewind"
|
37
|
-
fails "Enumerator#size returns returning value from size.call if set size is a Proc"
|
38
|
-
fails "Enumerator#size returns the result from size.call if the size respond to call"
|
39
|
-
fails "Enumerator#to_enum exposes multi-arg yields as an array" # NoMethodError: undefined method `next' for #<Enumerator: #<Object:0x53e80>:each>
|
40
|
-
end
|
@@ -1,72 +0,0 @@
|
|
1
|
-
opal_filter "Exception" do
|
2
|
-
fails "Errno::EAGAIN is the same class as Errno::EWOULDBLOCK if they represent the same errno value"
|
3
|
-
fails "Errno::EINVAL.new accepts an optional custom message and location"
|
4
|
-
fails "Errno::EINVAL.new accepts an optional custom message"
|
5
|
-
fails "Errno::EINVAL.new can be called with no arguments"
|
6
|
-
fails "Errno::EMFILE can be subclassed"
|
7
|
-
fails "Exception is a superclass of EncodingError"
|
8
|
-
fails "Interrupt is a subclass of SignalException" # Expected Exception to equal SignalException
|
9
|
-
fails "Interrupt.new returns an instance of interrupt with no message given" # NoMethodError: undefined method `signo' for #<Interrupt: Interrupt>:Interrupt
|
10
|
-
fails "Interrupt.new takes an optional message argument" # NoMethodError: undefined method `signo' for #<Interrupt: message>:Interrupt
|
11
|
-
|
12
|
-
fails "Exception is a superclass of Interrupt"
|
13
|
-
fails "Exception is a superclass of SystemStackError"
|
14
|
-
fails "Exception#== returns false if the two exceptions differ only in their backtrace"
|
15
|
-
fails "Exception#== returns false if the two exceptions differ only in their message"
|
16
|
-
fails "Exception#== returns false if the two exceptions inherit from Exception but have different classes"
|
17
|
-
fails "Exception#== returns true if both exceptions have the same class, no message, and no backtrace"
|
18
|
-
fails "Exception#== returns true if both exceptions have the same class, the same message, and no backtrace"
|
19
|
-
fails "Exception#== returns true if both exceptions have the same class, the same message, and the same backtrace"
|
20
|
-
fails "Exception#== returns true if one exception is the dup'd copy of the other"
|
21
|
-
fails "Exception#== returns true if the two objects subclass Exception and have the same message and backtrace"
|
22
|
-
fails "Exception#backtrace contains lines of the same format for each prior position in the stack"
|
23
|
-
fails "Exception#backtrace includes the filename of the location immediately prior to where self raised in the second element"
|
24
|
-
fails "Exception#backtrace includes the filename of the location where self raised in the first element"
|
25
|
-
fails "Exception#backtrace includes the line number of the location immediately prior to where self raised in the second element"
|
26
|
-
fails "Exception#backtrace includes the line number of the location where self raised in the first element"
|
27
|
-
fails "Exception#backtrace includes the name of the method from where self raised in the first element"
|
28
|
-
fails "Exception#backtrace produces a backtrace for an exception captured using $!" # Expected "RuntimeError" to match /backtrace_spec/
|
29
|
-
fails "Exception#backtrace returns nil if no backtrace was set"
|
30
|
-
fails "Exception#cause returns the active exception when an exception is raised"
|
31
|
-
fails "Exception#set_backtrace accepts a String"
|
32
|
-
fails "Exception#set_backtrace accepts an Array of Strings"
|
33
|
-
fails "Exception#set_backtrace accepts an empty Array"
|
34
|
-
fails "Exception#set_backtrace accepts nil"
|
35
|
-
fails "Exception#set_backtrace allows the user to set the backtrace from a rescued exception"
|
36
|
-
fails "Exception#set_backtrace raises a TypeError when passed a Symbol"
|
37
|
-
fails "Exception#set_backtrace raises a TypeError when the Array contains a Symbol"
|
38
|
-
fails "Exception#set_backtrace raises a TypeError when the argument is a nested array"
|
39
|
-
fails "Exception#set_backtrace raises a TypeError when the array contains nil"
|
40
|
-
fails "Exception#to_s calls #to_s on the message" # Mock 'message' expected to receive 'to_s' exactly 1 times but received it 2 times
|
41
|
-
fails "IOError is a superclass of EOFError"
|
42
|
-
fails "NameError#name returns a class variable name as a symbol"
|
43
|
-
fails "SignalException.new raises an exception for an optional argument with a signal name"
|
44
|
-
fails "SignalException.new raises an exception with an invalid signal name"
|
45
|
-
fails "SignalException.new raises an exception with an invalid signal number"
|
46
|
-
fails "SignalException.new takes a signal name with SIG prefix as the first argument"
|
47
|
-
fails "SignalException.new takes a signal name without SIG prefix as the first argument"
|
48
|
-
fails "SignalException.new takes a signal number as the first argument"
|
49
|
-
fails "SignalException.new takes a signal symbol with SIG prefix as the first argument"
|
50
|
-
fails "SignalException.new takes a signal symbol without SIG prefix as the first argument"
|
51
|
-
fails "SignalException.new takes an optional message argument with a signal number"
|
52
|
-
fails "StopIteration#result returns the method-returned-object from an Enumerator"
|
53
|
-
fails "SystemCallError#errno returns nil when no errno given"
|
54
|
-
fails "SystemCallError#errno returns the errno given as optional argument to new"
|
55
|
-
fails "SystemCallError#message returns the default message when no message is given"
|
56
|
-
fails "SystemCallError.new accepts an optional custom message preceding the errno"
|
57
|
-
fails "SystemCallError.new accepts an optional third argument specifying the location"
|
58
|
-
fails "SystemCallError.new accepts single Fixnum argument as errno"
|
59
|
-
fails "SystemCallError.new constructs the appropriate Errno class"
|
60
|
-
fails "SystemCallError.new requires at least one argument"
|
61
|
-
fails "SystemStackError is a subclass of Exception"
|
62
|
-
fails "rescueing SignalException raises a SignalException when sent a signal"
|
63
|
-
fails "rescueing Interrupt raises an Interrupt when sent a signal SIGINT" # NoMethodError: undefined method `kill' for Process
|
64
|
-
|
65
|
-
fails "NameError#receiver returns a class when an undefined class variable is called in a subclass' namespace"
|
66
|
-
fails "NameError#receiver returns a class when an undefined constant is called"
|
67
|
-
fails "NameError#receiver returns the Object class when an undefined class variable is called"
|
68
|
-
fails "NameError#receiver returns the Object class when an undefined constant is called without namespace"
|
69
|
-
fails "NameError#receiver returns the object that raised the exception"
|
70
|
-
fails "NameError#receiver returns the receiver when raised from #class_variable_get"
|
71
|
-
fails "NameError#receiver returns the receiver when raised from #instance_variable_get"
|
72
|
-
end
|
data/spec/filters/bugs/file.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
opal_filter "File" do
|
2
|
-
fails "File.join returns a duplicate string when given a single argument"
|
3
|
-
fails "File.join raises a TypeError exception when args are nil"
|
4
|
-
fails "File.join calls #to_str"
|
5
|
-
fails "File.join calls #to_path"
|
6
|
-
fails "File.join raises an ArgumentError if passed a recursive array"
|
7
|
-
fails "File.join inserts the separator in between empty strings and arrays"
|
8
|
-
end
|
data/spec/filters/bugs/float.rb
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
opal_filter "Float" do
|
2
|
-
fails "Float constant MAX is 1.7976931348623157e+308"
|
3
|
-
fails "Float constant MIN is 2.2250738585072014e-308"
|
4
|
-
fails "Float#divmod returns an [quotient, modulus] from dividing self by other" # precision errors caused by Math.frexp and Math.ldexp
|
5
|
-
fails "Float#next_float gives the same result for -0.0 as for +0.0" # NoMethodError: undefined method `next_float' for 0
|
6
|
-
fails "Float#next_float returns Float::INFINITY for Float::INFINITY" # NoMethodError: undefined method `next_float' for Infinity
|
7
|
-
fails "Float#next_float returns NAN if NAN was the receiver"
|
8
|
-
fails "Float#next_float returns a float the smallest possible step greater than the receiver"
|
9
|
-
fails "Float#next_float returns negative zero when stepping upward from just below zero"
|
10
|
-
fails "Float#next_float reverses the effect of prev_float for all Floats except INFINITY and +0.0" # NoMethodError: undefined method `prev_float' for -0.739980680635199
|
11
|
-
fails "Float#next_float steps directly between -1.0 and -1.0 + EPSILON/2"
|
12
|
-
fails "Float#next_float steps directly between 1.0 and 1.0 + EPSILON"
|
13
|
-
fails "Float#next_float steps directly between MAX and INFINITY"
|
14
|
-
fails "Float#prev_float gives the same result for -0.0 as for +0.0" # NoMethodError: undefined method `prev_float' for 0
|
15
|
-
fails "Float#prev_float returns -Float::INFINITY for -Float::INFINITY" # NoMethodError: undefined method `prev_float' for -Infinity
|
16
|
-
fails "Float#prev_float returns NAN if NAN was the receiver"
|
17
|
-
fails "Float#prev_float returns a float the smallest possible step smaller than the receiver"
|
18
|
-
fails "Float#prev_float returns positive zero when stepping downward from just above zero"
|
19
|
-
fails "Float#prev_float reverses the effect of next_float for all Floats except -INFINITY and -0.0" # NoMethodError: undefined method `next_float' for 0.7192216026596725
|
20
|
-
fails "Float#prev_float reverses the effect of next_float"
|
21
|
-
fails "Float#prev_float steps directly between -1.0 and -1.0 - EPSILON"
|
22
|
-
fails "Float#prev_float steps directly between 1.0 and 1.0 - EPSILON/2"
|
23
|
-
fails "Float#prev_float steps directly between MAX and INFINITY"
|
24
|
-
fails "Float#rationalize returns self as a simplified Rational with no argument" # precision errors caused by Math.frexp and Math.ldexp
|
25
|
-
fails "Float#round returns big values rounded to nearest" # Expected 0 to have same value and type as 300000000000000000000
|
26
|
-
fails "Float#to_i returns self truncated to an Integer"
|
27
|
-
fails "Float#to_int returns self truncated to an Integer"
|
28
|
-
fails "Float#to_s uses e format for a negative value with fractional part having 6 significant figures"
|
29
|
-
fails "Float#to_s uses e format for a negative value with whole part having 18 significant figures"
|
30
|
-
fails "Float#to_s uses e format for a positive value with fractional part having 6 significant figures"
|
31
|
-
fails "Float#to_s uses e format for a positive value with whole part having 18 significant figures"
|
32
|
-
fails "Float#to_s uses non-e format for a negative value with whole part having 15 significant figures"
|
33
|
-
fails "Float#to_s uses non-e format for a negative value with whole part having 16 significant figures"
|
34
|
-
fails "Float#to_s uses non-e format for a negative value with whole part having 17 significant figures"
|
35
|
-
fails "Float#to_s uses non-e format for a positive value with whole part having 15 significant figures"
|
36
|
-
fails "Float#to_s uses non-e format for a positive value with whole part having 16 significant figures"
|
37
|
-
fails "Float#to_s uses non-e format for a positive value with whole part having 17 significant figures"
|
38
|
-
fails "Float#truncate returns self truncated to an Integer"
|
39
|
-
end
|
data/spec/filters/bugs/hash.rb
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
opal_filter "Hash" do
|
2
|
-
fails "Hash#== compares keys with eql? semantics" # spec relies on integer and float being different
|
3
|
-
fails "Hash#== computes equality for complex recursive hashes"
|
4
|
-
fails "Hash#== computes equality for recursive hashes & arrays"
|
5
|
-
fails "Hash#[] compares keys with eql? semantics" # spec relies on integer and float being different
|
6
|
-
fails "Hash#[] does not create copies of the immediate default value" # spec uses mutable string
|
7
|
-
fails "Hash#[]= keeps the existing String key in the hash if there is a matching one" # Expected "foo" not to be identical to "foo"
|
8
|
-
fails "Hash#delete allows removing a key while iterating" # Exception: Cannot read property '$$is_string' of undefined
|
9
|
-
fails "Hash#eql? compares keys with eql? semantics" # spec relies on integer and float being different
|
10
|
-
fails "Hash#eql? computes equality for complex recursive hashes"
|
11
|
-
fails "Hash#eql? computes equality for recursive hashes & arrays"
|
12
|
-
fails "Hash#invert compares new keys with eql? semantics" # spec relies on integer and float being different
|
13
|
-
fails "Hash#shift allows shifting entries while iterating" # Exception: Cannot read property '$$is_string' of undefined
|
14
|
-
fails "Hash#store keeps the existing String key in the hash if there is a matching one" # Expected "foo" not to be identical to "foo"
|
15
|
-
end
|
@@ -1,5 +0,0 @@
|
|
1
|
-
opal_filter "bridged inheritance" do
|
2
|
-
fails "StringScanner#post_match returns an instance of String when passed a String subclass"
|
3
|
-
fails "StringScanner#pre_match returns an instance of String when passed a String subclass"
|
4
|
-
fails "StringScanner#rest returns an instance of String when passed a String subclass"
|
5
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
opal_filter "Integer" do
|
2
|
-
fails "Integer#chr with an encoding argument converts a String to an Encoding as Encoding.find does"
|
3
|
-
fails "Integer#chr with an encoding argument raises a RangeError is self is less than 0"
|
4
|
-
fails "Integer#chr with an encoding argument raises RangeError if self is invalid as a codepoint in the specified encoding"
|
5
|
-
fails "Integer#chr with an encoding argument returns a new String for each call"
|
6
|
-
fails "Integer#chr with an encoding argument returns a String encoding self interpreted as a codepoint in the specified encoding"
|
7
|
-
fails "Integer#chr with an encoding argument returns a String with the specified encoding"
|
8
|
-
fails "Integer#chr without argument raises a RangeError is self is less than 0"
|
9
|
-
fails "Integer#chr without argument returns a new String for each call"
|
10
|
-
fails "Integer#chr without argument when Encoding.default_internal is nil and self is between 0 and 127 (inclusive) returns a String encoding self interpreted as a US-ASCII codepoint"
|
11
|
-
fails "Integer#chr without argument when Encoding.default_internal is nil and self is between 0 and 127 (inclusive) returns a US-ASCII String"
|
12
|
-
fails "Integer#chr without argument when Encoding.default_internal is nil and self is between 128 and 255 (inclusive) returns a String containing self interpreted as a byte"
|
13
|
-
fails "Integer#chr without argument when Encoding.default_internal is nil and self is between 128 and 255 (inclusive) returns an ASCII-8BIT String"
|
14
|
-
fails "Integer#chr without argument when Encoding.default_internal is nil raises a RangeError is self is greater than 255"
|
15
|
-
fails "Integer#chr without argument when Encoding.default_internal is not nil and self is between 0 and 127 (inclusive) returns a String encoding self interpreted as a US-ASCII codepoint"
|
16
|
-
fails "Integer#chr without argument when Encoding.default_internal is not nil and self is between 0 and 127 (inclusive) returns a US-ASCII String"
|
17
|
-
fails "Integer#chr without argument when Encoding.default_internal is not nil and self is between 128 and 255 (inclusive) returns a String containing self interpreted as a byte"
|
18
|
-
fails "Integer#chr without argument when Encoding.default_internal is not nil and self is between 128 and 255 (inclusive) returns an ASCII-8BIT String"
|
19
|
-
fails "Integer#chr without argument when Encoding.default_internal is not nil and self is greater than 255 raises RangeError if self is invalid as a codepoint in the default internal encoding"
|
20
|
-
fails "Integer#chr without argument when Encoding.default_internal is not nil and self is greater than 255 returns a String encoding self interpreted as a codepoint in the default internal encoding"
|
21
|
-
fails "Integer#chr without argument when Encoding.default_internal is not nil and self is greater than 255 returns a String with the default internal encoding"
|
22
|
-
fails "Integer#gcdlcm raises a TypeError unless the argument is an Integer"
|
23
|
-
fails "Integer#gcdlcm returns [self, self] if self is equal to the argument"
|
24
|
-
fails "Integer#gcdlcm returns a two-element Array"
|
25
|
-
fails "Integer#gcdlcm returns an Array"
|
26
|
-
fails "Integer#gcdlcm returns the greatest common divisor of self and argument as the first element"
|
27
|
-
fails "Integer#gcdlcm returns the least common multiple of self and argument as the last element"
|
28
|
-
fails "Integer#round returns itself rounded to nearest if passed a negative value" # Expected NaN to have same value and type as 300
|
29
|
-
|
30
|
-
end
|
data/spec/filters/bugs/io.rb
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
opal_filter "IO" do
|
2
|
-
fails "IO::EAGAINWaitReadable combines Errno::EAGAIN and IO::WaitReadable" # NameError: uninitialized constant IO::EAGAINWaitReadable
|
3
|
-
fails "IO::EAGAINWaitReadable is the same as IO::EWOULDBLOCKWaitReadable if Errno::EAGAIN is the same as Errno::EWOULDBLOCK" # NameError: uninitialized constant Errno::EAGAIN
|
4
|
-
fails "IO::EAGAINWaitWritable combines Errno::EAGAIN and IO::WaitWritable" # NameError: uninitialized constant IO::EAGAINWaitWritable
|
5
|
-
fails "IO::EAGAINWaitWritable is the same as IO::EWOULDBLOCKWaitWritable if Errno::EAGAIN is the same as Errno::EWOULDBLOCK" # NameError: uninitialized constant Errno::EAGAIN
|
6
|
-
fails "IO::EWOULDBLOCKWaitReadable combines Errno::EWOULDBLOCK and IO::WaitReadable" # NameError: uninitialized constant IO::EWOULDBLOCKWaitReadable
|
7
|
-
fails "IO::EWOULDBLOCKWaitWritable combines Errno::EWOULDBLOCK and IO::WaitWritable" # NameError: uninitialized constant IO::EWOULDBLOCKWaitWritable
|
8
|
-
end
|
data/spec/filters/bugs/kernel.rb
DELETED
@@ -1,168 +0,0 @@
|
|
1
|
-
opal_filter "Kernel" do
|
2
|
-
fails "Kernel#=~ returns nil matching any object"
|
3
|
-
fails "Kernel#__dir__ returns the real name of the directory containing the currently-executing file"
|
4
|
-
fails "Kernel#__dir__ when used in eval with top level binding returns the real name of the directory containing the currently-executing file"
|
5
|
-
fails "Kernel#class returns the class of the object"
|
6
|
-
fails "Kernel#clone replaces a singleton object's metaclass with a new copy with the same superclass" # NoMethodError: undefined method `singleton_methods' for #<#<Class:0x2df8e>:0x2df90>
|
7
|
-
fails "Kernel#clone uses the internal allocator and does not call #allocate" # RuntimeError: allocate should not be called
|
8
|
-
fails "Kernel#define_singleton_method when given an UnboundMethod will raise when attempting to define an object's singleton method from another object's singleton method"
|
9
|
-
fails "Kernel#dup uses the internal allocator and does not call #allocate" # RuntimeError: allocate should not be called
|
10
|
-
fails "Kernel#eval allows a binding to be captured inside an eval"
|
11
|
-
fails "Kernel#eval allows creating a new class in a binding created by #eval"
|
12
|
-
fails "Kernel#eval allows creating a new class in a binding"
|
13
|
-
fails "Kernel#eval can be aliased"
|
14
|
-
fails "Kernel#eval does not alter the value of __FILE__ in the binding"
|
15
|
-
fails "Kernel#eval does not make Proc locals visible to evaluated code"
|
16
|
-
fails "Kernel#eval does not share locals across eval scopes"
|
17
|
-
fails "Kernel#eval doesn't accept a Proc object as a binding"
|
18
|
-
fails "Kernel#eval finds a local in an enclosing scope"
|
19
|
-
fails "Kernel#eval finds locals in a nested eval"
|
20
|
-
fails "Kernel#eval includes file and line information in syntax error"
|
21
|
-
fails "Kernel#eval raises a LocalJumpError if there is no lambda-style closure in the chain"
|
22
|
-
fails "Kernel#eval unwinds through a Proc-style closure and returns from a lambda-style closure in the closure chain"
|
23
|
-
fails "Kernel#eval updates a local in a scope above a surrounding block scope"
|
24
|
-
fails "Kernel#eval updates a local in a scope above when modified in a nested block scope"
|
25
|
-
fails "Kernel#eval updates a local in a surrounding block scope"
|
26
|
-
fails "Kernel#eval updates a local in an enclosing scope"
|
27
|
-
fails "Kernel#eval uses the filename of the binding if none is provided"
|
28
|
-
fails "Kernel#eval uses the same scope for local variables when given the same binding"
|
29
|
-
fails "Kernel#extend calls extend_object on argument"
|
30
|
-
fails "Kernel#extend does not calls append_features on arguments metaclass"
|
31
|
-
fails "Kernel#extend raises an ArgumentError when no arguments given"
|
32
|
-
fails "Kernel#inspect does not call #to_s if it is defined"
|
33
|
-
fails "Kernel#instance_variables immediate values returns the correct array if an instance variable is added"
|
34
|
-
fails "Kernel#local_variables contains locals as they are added"
|
35
|
-
fails "Kernel#local_variables is accessible from bindings"
|
36
|
-
fails "Kernel#local_variables is accessible in eval"
|
37
|
-
fails "Kernel#method can be called even if we only repond_to_missing? method, true"
|
38
|
-
fails "Kernel#method returns a method object if we repond_to_missing? method"
|
39
|
-
fails "Kernel#method will see an alias of the original method as == when in a derived class"
|
40
|
-
fails "Kernel#methods returns singleton methods defined by obj.meth"
|
41
|
-
fails "Kernel#methods returns singleton methods defined in 'class << self'"
|
42
|
-
fails "Kernel#methods returns the publicly accessible methods in the object, its ancestors and mixed-in modules"
|
43
|
-
fails "Kernel#methods returns the publicly accessible methods of the object"
|
44
|
-
fails "Kernel#object_id returns a different value for two Bignum literals"
|
45
|
-
fails "Kernel#object_id returns a different value for two String literals"
|
46
|
-
fails "Kernel#p flushes output if receiver is a File"
|
47
|
-
fails "Kernel#p is not affected by setting $\\, $/ or $,"
|
48
|
-
fails "Kernel#proc uses the implicit block from an enclosing method"
|
49
|
-
fails "Kernel#public_method changes the method called for super on a target aliased method"
|
50
|
-
fails "Kernel#public_method raises a NameError if we only repond_to_missing? method, true"
|
51
|
-
fails "Kernel#public_method returns a method object for a valid method"
|
52
|
-
fails "Kernel#public_method returns a method object for a valid singleton method"
|
53
|
-
fails "Kernel#public_method returns a method object if we repond_to_missing? method"
|
54
|
-
fails "Kernel#public_methods returns a list of the names of publicly accessible methods in the object and its ancestors and mixed-in modules"
|
55
|
-
fails "Kernel#public_methods returns a list of the names of publicly accessible methods in the object"
|
56
|
-
fails "Kernel#public_methods when passed false returns a list of public methods in without its ancestors"
|
57
|
-
fails "Kernel#public_methods when passed nil returns a list of public methods in without its ancestors"
|
58
|
-
fails "Kernel#puts delegates to $stdout.puts"
|
59
|
-
fails "Kernel#respond_to? throws a type error if argument can't be coerced into a Symbol"
|
60
|
-
fails "Kernel#respond_to_missing? causes #respond_to? to return false if called and returning false"
|
61
|
-
fails "Kernel#respond_to_missing? causes #respond_to? to return false if called and returning nil"
|
62
|
-
fails "Kernel#respond_to_missing? causes #respond_to? to return true if called and not returning false"
|
63
|
-
fails "Kernel#respond_to_missing? is called a 2nd argument of false when #respond_to? is called with only 1 argument"
|
64
|
-
fails "Kernel#respond_to_missing? is called for missing class methods"
|
65
|
-
fails "Kernel#respond_to_missing? is called when #respond_to? would return false"
|
66
|
-
fails "Kernel#respond_to_missing? is called with a 2nd argument of false when #respond_to? is"
|
67
|
-
fails "Kernel#respond_to_missing? is called with true as the second argument when #respond_to? is"
|
68
|
-
fails "Kernel#respond_to_missing? is not called when #respond_to? would return true"
|
69
|
-
fails "Kernel#respond_to_missing? isn't called when obj responds to the given public method"
|
70
|
-
fails "Kernel#singleton_class raises TypeError for Fixnum"
|
71
|
-
fails "Kernel#singleton_class raises TypeError for Symbol"
|
72
|
-
fails "Kernel#singleton_methods when not passed an argument does not return any included methods for a class including a module"
|
73
|
-
fails "Kernel#singleton_methods when not passed an argument does not return any included methods for a module including a module"
|
74
|
-
fails "Kernel#singleton_methods when not passed an argument returns a unique list for a subclass including a module"
|
75
|
-
fails "Kernel#singleton_methods when not passed an argument returns a unique list for a subclass"
|
76
|
-
fails "Kernel#singleton_methods when not passed an argument returns a unique list for an object extended with a module"
|
77
|
-
fails "Kernel#singleton_methods when not passed an argument returns an empty Array for an object with no singleton methods"
|
78
|
-
fails "Kernel#singleton_methods when not passed an argument returns the names of class methods for a class"
|
79
|
-
fails "Kernel#singleton_methods when not passed an argument returns the names of inherited singleton methods for a class extended with a module"
|
80
|
-
fails "Kernel#singleton_methods when not passed an argument returns the names of inherited singleton methods for a subclass including a module"
|
81
|
-
fails "Kernel#singleton_methods when not passed an argument returns the names of inherited singleton methods for a subclass of a class including a module"
|
82
|
-
fails "Kernel#singleton_methods when not passed an argument returns the names of inherited singleton methods for a subclass of a class that includes a module, where the subclass also includes a module"
|
83
|
-
fails "Kernel#singleton_methods when not passed an argument returns the names of inherited singleton methods for a subclass"
|
84
|
-
fails "Kernel#singleton_methods when not passed an argument returns the names of module methods for a module"
|
85
|
-
fails "Kernel#singleton_methods when not passed an argument returns the names of singleton methods for an object extented with a module including a module"
|
86
|
-
fails "Kernel#singleton_methods when not passed an argument returns the names of singleton methods for an object extented with a module"
|
87
|
-
fails "Kernel#singleton_methods when not passed an argument returns the names of singleton methods for an object extented with two modules"
|
88
|
-
fails "Kernel#singleton_methods when not passed an argument returns the names of singleton methods for an object"
|
89
|
-
fails "Kernel#singleton_methods when passed false does not return any included methods for a class including a module"
|
90
|
-
fails "Kernel#singleton_methods when passed false does not return any included methods for a module including a module"
|
91
|
-
fails "Kernel#singleton_methods when passed false does not return names of inherited singleton methods for a subclass"
|
92
|
-
fails "Kernel#singleton_methods when passed false does not return the names of inherited singleton methods for a class extended with a module"
|
93
|
-
fails "Kernel#singleton_methods when passed false returns an empty Array for an object extended with a module including a module"
|
94
|
-
fails "Kernel#singleton_methods when passed false returns an empty Array for an object extented with a module"
|
95
|
-
fails "Kernel#singleton_methods when passed false returns an empty Array for an object extented with two modules"
|
96
|
-
fails "Kernel#singleton_methods when passed false returns an empty Array for an object with no singleton methods"
|
97
|
-
fails "Kernel#singleton_methods when passed false returns the names of class methods for a class"
|
98
|
-
fails "Kernel#singleton_methods when passed false returns the names of module methods for a module"
|
99
|
-
fails "Kernel#singleton_methods when passed false returns the names of singleton methods for an object"
|
100
|
-
fails "Kernel#singleton_methods when passed false returns the names of singleton methods of the subclass"
|
101
|
-
fails "Kernel#singleton_methods when passed true does not return any included methods for a class including a module"
|
102
|
-
fails "Kernel#singleton_methods when passed true does not return any included methods for a module including a module"
|
103
|
-
fails "Kernel#singleton_methods when passed true returns a unique list for a subclass including a module"
|
104
|
-
fails "Kernel#singleton_methods when passed true returns a unique list for a subclass"
|
105
|
-
fails "Kernel#singleton_methods when passed true returns a unique list for an object extended with a module"
|
106
|
-
fails "Kernel#singleton_methods when passed true returns an empty Array for an object with no singleton methods"
|
107
|
-
fails "Kernel#singleton_methods when passed true returns the names of class methods for a class"
|
108
|
-
fails "Kernel#singleton_methods when passed true returns the names of inherited singleton methods for a class extended with a module"
|
109
|
-
fails "Kernel#singleton_methods when passed true returns the names of inherited singleton methods for a subclass including a module"
|
110
|
-
fails "Kernel#singleton_methods when passed true returns the names of inherited singleton methods for a subclass of a class including a module"
|
111
|
-
fails "Kernel#singleton_methods when passed true returns the names of inherited singleton methods for a subclass of a class that includes a module, where the subclass also includes a module"
|
112
|
-
fails "Kernel#singleton_methods when passed true returns the names of inherited singleton methods for a subclass"
|
113
|
-
fails "Kernel#singleton_methods when passed true returns the names of module methods for a module"
|
114
|
-
fails "Kernel#singleton_methods when passed true returns the names of singleton methods for an object extented with a module including a module"
|
115
|
-
fails "Kernel#singleton_methods when passed true returns the names of singleton methods for an object extented with a module"
|
116
|
-
fails "Kernel#singleton_methods when passed true returns the names of singleton methods for an object extented with two modules"
|
117
|
-
fails "Kernel#singleton_methods when passed true returns the names of singleton methods for an object"
|
118
|
-
fails "Kernel#sprintf with format string that contains %<> sections raises ArgumentError if missing second named argument" # KeyError: key not found: "foo"
|
119
|
-
fails "Kernel#warn writes each array element on a line when passes an array" # Expected: $stderr: "line 1\nline 2\n" got: $stderr: "[\"line 1\", \"line 2\"]\n"
|
120
|
-
fails "Kernel.Complex() when passed Numerics n1 and n2 and at least one responds to #real? with false returns n1 + n2 * Complex(0, 1)"
|
121
|
-
fails "Kernel.Complex() when passed [Complex, Complex] returns a new Complex number based on the two given numbers"
|
122
|
-
fails "Kernel.Complex() when passed [Complex] returns the passed Complex number"
|
123
|
-
fails "Kernel.Complex() when passed a Numeric which responds to #real? with false returns the passed argument"
|
124
|
-
fails "Kernel.Complex() when passed a non-Numeric second argument raises TypeError"
|
125
|
-
fails "Kernel.Complex() when passed a single non-Numeric coerces the passed argument using #to_c"
|
126
|
-
fails "Kernel.Complex() when passed an Objectc which responds to #to_c returns the passed argument" # Expected (#<Object:0x46fa6>+0i) to equal (0+1i)
|
127
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent allows embedded _ in a number on either side of the P"
|
128
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent allows embedded _ in a number on either side of the p"
|
129
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent allows hexadecimal points on the left side of the 'P'"
|
130
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent allows hexadecimal points on the left side of the 'p'"
|
131
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent interprets the exponent (on the right of 'P') in decimal"
|
132
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent interprets the exponent (on the right of 'p') in decimal"
|
133
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent interprets the fractional part (on the left side of 'P') in hexadecimal"
|
134
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent interprets the fractional part (on the left side of 'p') in hexadecimal"
|
135
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent returns 0 for '0x1P-10000'"
|
136
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent returns 0 for '0x1p-10000'"
|
137
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent returns Infinity for '0x1P10000'"
|
138
|
-
fails "Kernel.Float for hexadecimal literals with binary exponent returns Infinity for '0x1p10000'"
|
139
|
-
fails "Kernel.Rational when passed a String converts the String to a Rational using the same method as String#to_r"
|
140
|
-
fails "Kernel.Rational when passed a String does not use the same method as Float#to_r"
|
141
|
-
fails "Kernel.Rational when passed a String raises a TypeError if the first argument is a Symbol"
|
142
|
-
fails "Kernel.Rational when passed a String raises a TypeError if the second argument is a Symbol"
|
143
|
-
fails "Kernel.Rational when passed a String scales the Rational value of the first argument by the Rational value of the second"
|
144
|
-
fails "Kernel.Rational when passed a String when passed a Numeric calls #to_r to convert the first argument to a Rational"
|
145
|
-
fails "Kernel.String raises a TypeError if #to_s is not defined, even though #respond_to?(:to_s) returns true"
|
146
|
-
fails "Kernel.__callee__ returns method name even from eval"
|
147
|
-
fails "Kernel.__callee__ returns method name even from send"
|
148
|
-
fails "Kernel.__callee__ returns the aliased name when aliased method"
|
149
|
-
fails "Kernel.__callee__ returns the caller from a define_method called from the same class"
|
150
|
-
fails "Kernel.__callee__ returns the caller from block inside define_method too"
|
151
|
-
fails "Kernel.__callee__ returns the caller from blocks too"
|
152
|
-
fails "Kernel.__callee__ returns the caller from define_method too"
|
153
|
-
fails "Kernel.__method__ returns method name even from eval"
|
154
|
-
fails "Kernel.__method__ returns method name even from send"
|
155
|
-
fails "Kernel.__method__ returns the caller from block inside define_method too"
|
156
|
-
fails "Kernel.__method__ returns the caller from blocks too"
|
157
|
-
fails "Kernel.__method__ returns the caller from define_method too"
|
158
|
-
fails "Kernel.global_variables finds subset starting with std"
|
159
|
-
fails "Kernel.lambda raises an ArgumentError when no block is given"
|
160
|
-
fails "Kernel.lambda returned the passed Proc if given an existing Proc" # Expected true to be false
|
161
|
-
fails "Kernel.lambda returns from the lambda itself, not the creation site of the lambda"
|
162
|
-
fails "Kernel.loop returns StopIteration#result, the result value of a finished iterator" # requires changes in enumerator.rb
|
163
|
-
fails "Kernel.printf calls write on the first argument when it is not a string"
|
164
|
-
fails "Kernel.printf writes to stdout when a string is the first argument"
|
165
|
-
fails "Kernel.proc returned the passed Proc if given an existing Proc" # Expected false to be true
|
166
|
-
fails "self.send(:block_given?) returns false when a method defined by define_method is called with a block"
|
167
|
-
fails "self.send(:block_given?) returns true if and only if a block is supplied"
|
168
|
-
end
|
@@ -1,190 +0,0 @@
|
|
1
|
-
opal_filter "language" do
|
2
|
-
fails "A block yielded a single Array assigns elements to required arguments when a keyword rest argument is present"
|
3
|
-
fails "A block yielded a single Array assigns non-symbol keys to non-keyword arguments"
|
4
|
-
fails "A block yielded a single Array assigns symbol keys from a Hash returned by #to_hash to keyword arguments"
|
5
|
-
fails "A block yielded a single Array assigns symbol keys from a Hash to keyword arguments"
|
6
|
-
fails "A block yielded a single Array assigns the last element to a non-keyword argument if #to_hash returns nil"
|
7
|
-
fails "A block yielded a single Array calls #to_hash on the argument but does not use the result when no keywords are present"
|
8
|
-
fails "A block yielded a single Array does not treat hashes with string keys as keyword arguments"
|
9
|
-
fails "A block yielded a single Array raises a TypeError if #to_hash does not return a Hash"
|
10
|
-
fails "A class definition allows using self as the superclass if self is a class"
|
11
|
-
fails "A class definition extending an object (sclass) can use return to cause the enclosing method to return"
|
12
|
-
fails "A class definition extending an object (sclass) raises a TypeError when trying to extend numbers"
|
13
|
-
fails "A class definition raises TypeError if any constant qualifying the class is not a Module"
|
14
|
-
fails "A class definition raises TypeError if the constant qualifying the class is nil"
|
15
|
-
fails "A class definition raises a TypeError if inheriting from a metaclass"
|
16
|
-
fails "A constant on a metaclass cannot be accessed via object::CONST"
|
17
|
-
fails "A constant on a singleton class cannot be accessed via object::CONST"
|
18
|
-
fails "A lambda expression 'lambda { ... }' assigns variables from parameters for definition \n def m(a) yield a end\n def m2() yield end\n @a = lambda { |a, | a }"
|
19
|
-
fails "A lambda expression 'lambda { ... }' requires a block"
|
20
|
-
fails "A lambda expression 'lambda { ... }' with an implicit block can be created"
|
21
|
-
fails "A lambda literal -> () { } assigns variables from parameters with circular optional argument reference shadows an existing local with the same name as the argument"
|
22
|
-
fails "A lambda literal -> () { } assigns variables from parameters with circular optional argument reference shadows an existing method with the same name as the argument"
|
23
|
-
fails "A lambda literal -> () { } returns a Proc object when used in a BasicObject method"
|
24
|
-
fails "A method defined with extreme default arguments may use an fcall as a default" # if OPAL_PLATFORM == 'phantomjs'
|
25
|
-
fails "A method definition in an eval creates a class method"
|
26
|
-
fails "A method definition in an eval creates a singleton method"
|
27
|
-
fails "A method definition in an eval creates an instance method"
|
28
|
-
fails "A nested method definition creates a class method when evaluated in a class method"
|
29
|
-
fails "A nested method definition creates a method in the surrounding context when evaluated in a def expr.method"
|
30
|
-
fails "A nested method definition creates an instance method when evaluated in an instance method"
|
31
|
-
fails "A number literal can be a decimal literal with trailing 'r' to represent a Rational" # requires String#to_r
|
32
|
-
fails "A singleton class doesn't have singleton class"
|
33
|
-
fails "A singleton class raises a TypeError for Fixnum's"
|
34
|
-
fails "A singleton class raises a TypeError for symbols"
|
35
|
-
fails "A singleton method definition can be declared for a global variable"
|
36
|
-
fails "An ensure block inside a begin block is executed even when a symbol is thrown in it's corresponding begin block"
|
37
|
-
fails "An instance method with a default argument shadows an existing method with the same name as the local"
|
38
|
-
fails "Constant resolution within methods with dynamically assigned constants searches Object as a lexical scope only if Object is explicitly opened"
|
39
|
-
fails "Constant resolution within methods with statically assigned constants searches Object as a lexical scope only if Object is explicitly opened"
|
40
|
-
fails "Constant resolution within methods with ||= assignes constant if previously undefined"
|
41
|
-
fails "Executing break from within a block returns from the original invoking method even in case of chained calls"
|
42
|
-
fails "Execution variable $: is initialized to an array of strings"
|
43
|
-
fails "Execution variable $: is read-only"
|
44
|
-
fails "Execution variable $: is the same object as $LOAD_PATH and $-I"
|
45
|
-
fails "Global variable $-a is read-only"
|
46
|
-
fails "Global variable $-d is an alias of $DEBUG"
|
47
|
-
fails "Global variable $-l is read-only"
|
48
|
-
fails "Global variable $-p is read-only"
|
49
|
-
fails "Global variable $-v is an alias of $VERBOSE"
|
50
|
-
fails "Global variable $-w is an alias of $VERBOSE"
|
51
|
-
fails "Global variable $0 is the path given as the main script and the same as __FILE__"
|
52
|
-
fails "Global variable $0 raises a TypeError when not given an object that can be coerced to a String"
|
53
|
-
fails "Global variable $< is read-only"
|
54
|
-
fails "Global variable $? is read-only"
|
55
|
-
fails "Global variable $? is thread-local"
|
56
|
-
fails "Global variable $FILENAME is read-only"
|
57
|
-
fails "Global variable $\" is read-only"
|
58
|
-
fails "Hash literal expands a BasicObject using ** into the containing Hash literal initialization" # NoMethodError: undefined method `respond_to?' for BasicObject
|
59
|
-
fails "Instantiating a singleton class raises a TypeError when allocate is called"
|
60
|
-
fails "Instantiating a singleton class raises a TypeError when new is called"
|
61
|
-
fails "Invoking a method does not expand final array arguments after a splat expansion"
|
62
|
-
fails "Literal (A::X) constant resolution raises a TypeError if a non-class or non-module qualifier is given"
|
63
|
-
fails "Literal (A::X) constant resolution with dynamically assigned constants evaluates the right hand side before evaluating a constant path"
|
64
|
-
fails "Literal Regexps caches the Regexp object"
|
65
|
-
fails "Literal Regexps supports (?# )"
|
66
|
-
fails "Literal Regexps supports (?<! ) (negative lookbehind)"
|
67
|
-
fails "Literal Regexps supports (?<= ) (positive lookbehind)"
|
68
|
-
fails "Literal Regexps supports (?> ) (embedded subexpression)"
|
69
|
-
fails "Literal Regexps supports \\g (named backreference)"
|
70
|
-
fails "Literal Regexps supports character class composition"
|
71
|
-
fails "Literal Regexps supports conditional regular expressions with positional capture groups" # Exception: Invalid regular expression: /^(foo)?(?(1)(T)|(F))$/: Invalid group
|
72
|
-
fails "Literal Regexps supports conditional regular expressions with positional capture groups" # Exception: named captures are not supported in javascript: "^(?<word>foo)?(?(<word>)(T)|(F))$"
|
73
|
-
fails "Literal Regexps supports possessive quantifiers"
|
74
|
-
fails "Literal Regexps throws SyntaxError for malformed literals"
|
75
|
-
fails "Magic comment is optional"
|
76
|
-
fails "Operators * / % are left-associative"
|
77
|
-
fails "Optional variable assignments using compunded constants with ||= assignments"
|
78
|
-
fails "Post-args with optional args with a circular argument reference shadows an existing local with the same name as the argument"
|
79
|
-
fails "Post-args with optional args with a circular argument reference shadows an existing method with the same name as the argument"
|
80
|
-
fails "Predefined global $+ captures the last non nil capture"
|
81
|
-
fails "Predefined global $+ is equivalent to $~.captures.last"
|
82
|
-
fails "Predefined global $, raises TypeError if assigned a non-String"
|
83
|
-
fails "Predefined global $-0 changes $/"
|
84
|
-
fails "Predefined global $-0 does not call #to_str to convert the object to a String"
|
85
|
-
fails "Predefined global $-0 raises a TypeError if assigned a Fixnum"
|
86
|
-
fails "Predefined global $-0 raises a TypeError if assigned a boolean"
|
87
|
-
fails "Predefined global $/ changes $-0"
|
88
|
-
fails "Predefined global $/ does not call #to_str to convert the object to a String"
|
89
|
-
fails "Predefined global $/ raises a TypeError if assigned a Fixnum"
|
90
|
-
fails "Predefined global $/ raises a TypeError if assigned a boolean"
|
91
|
-
fails "Predefined global $_ is Thread-local"
|
92
|
-
fails "Predefined global $_ is set at the method-scoped level rather than block-scoped"
|
93
|
-
fails "Predefined global $_ is set to the last line read by e.g. StringIO#gets"
|
94
|
-
fails "Predefined global $stdout raises TypeError error if assigned to nil"
|
95
|
-
fails "Predefined global $stdout raises TypeError error if assigned to object that doesn't respond to #write"
|
96
|
-
fails "Predefined global $~ is set at the method-scoped level rather than block-scoped"
|
97
|
-
fails "Predefined global $~ raises an error if assigned an object not nil or instanceof MatchData"
|
98
|
-
fails "Safe navigator allows assignment methods"
|
99
|
-
fails "Safe navigator allows assignment operators"
|
100
|
-
fails "Safe navigator does not call the operator method lazily with an assignment operator"
|
101
|
-
fails "The =~ operator with named captures on syntax of /regexp/ =~ string_variable sets local variables by the captured pairs"
|
102
|
-
fails "The =~ operator with named captures on syntax of regexp_variable =~ string_variable does not set local variables"
|
103
|
-
fails "The =~ operator with named captures on syntax of string_variable =~ /regexp/ does not set local variables"
|
104
|
-
fails "The =~ operator with named captures on the method calling does not set local variables"
|
105
|
-
fails "The BEGIN keyword accesses variables outside the eval scope"
|
106
|
-
fails "The BEGIN keyword runs first in a given code unit"
|
107
|
-
fails "The BEGIN keyword runs in a shared scope"
|
108
|
-
fails "The BEGIN keyword runs multiple begins in FIFO order"
|
109
|
-
fails "The __ENCODING__ pseudo-variable is US-ASCII by default"
|
110
|
-
fails "The __ENCODING__ pseudo-variable is the encoding specified by a magic comment in the file"
|
111
|
-
fails "The __ENCODING__ pseudo-variable is the encoding specified by a magic comment inside an eval"
|
112
|
-
fails "The __ENCODING__ pseudo-variable is the evaluated strings's one inside an eval"
|
113
|
-
fails "The __FILE__ pseudo-variable equals the absolute path of a file loaded by a relative path" # we can't clear $LOADED_FEATURES, should be treated as readonly
|
114
|
-
fails "The __FILE__ pseudo-variable equals the absolute path of a file loaded by an absolute path" # we can't clear $LOADED_FEATURES, should be treated as readonly
|
115
|
-
fails "The __LINE__ pseudo-variable equals the line number of the text in a loaded file"
|
116
|
-
fails "The alias keyword is not allowed against Fixnum or String instances"
|
117
|
-
fails "The alias keyword on top level defines the alias on Object"
|
118
|
-
fails "The alias keyword operates on methods defined via attr, attr_reader, and attr_accessor"
|
119
|
-
fails "The alias keyword operates on the object's metaclass when used in instance_eval"
|
120
|
-
fails "The break statement in a captured block from a scope that has returned raises a LocalJumpError when calling the block from a method"
|
121
|
-
fails "The break statement in a captured block from a scope that has returned raises a LocalJumpError when yielding to the block"
|
122
|
-
fails "The break statement in a captured block when the invocation of the scope creating the block is still active raises a LocalJumpError when invoking the block from a method"
|
123
|
-
fails "The break statement in a captured block when the invocation of the scope creating the block is still active raises a LocalJumpError when invoking the block from the scope creating the block"
|
124
|
-
fails "The break statement in a captured block when the invocation of the scope creating the block is still active raises a LocalJumpError when yielding to the block"
|
125
|
-
fails "The break statement in a lambda created at the toplevel returns a value when invoking from a block"
|
126
|
-
fails "The break statement in a lambda created at the toplevel returns a value when invoking from a method"
|
127
|
-
fails "The break statement in a lambda created at the toplevel returns a value when invoking from the toplevel"
|
128
|
-
fails "The break statement in a lambda from a scope that has returned raises a LocalJumpError when yielding to a lambda passed as a block argument"
|
129
|
-
fails "The break statement in a lambda returns from the call site if the lambda is passed as a block" # Expected ["before", "unreachable1", "unreachable2", "after"] to equal ["before", "after"]
|
130
|
-
fails "The break statement in a lambda when the invocation of the scope creating the lambda is still active returns from the lambda" # Exception: unexpected break
|
131
|
-
fails "The def keyword within a closure looks outside the closure for the visibility"
|
132
|
-
fails "The defined? keyword for a scoped constant returns nil when a constant is defined on top-level but not on the module"
|
133
|
-
fails "The defined? keyword for a scoped constant returns nil when an undefined constant is scoped to a defined constant"
|
134
|
-
fails "The defined? keyword for a top-level scoped constant returns nil when an undefined constant is scoped to a defined constant"
|
135
|
-
fails "The defined? keyword for variables returns 'instance-variable' for an instance variable that has been assigned to nil"
|
136
|
-
fails "The defined? keyword for variables returns nil for a global variable that has been read but not assigned to"
|
137
|
-
fails "The defined? keyword for variables when a Regexp matches a String returns nil for non-captures"
|
138
|
-
fails "The defined? keyword for variables when a String matches a Regexp returns nil for non-captures"
|
139
|
-
fails "The if expression with a boolean range ('flip-flop' operator) allows combining two flip-flops"
|
140
|
-
fails "The if expression with a boolean range ('flip-flop' operator) evaluates the first conditions lazily with exclusive-end range"
|
141
|
-
fails "The if expression with a boolean range ('flip-flop' operator) evaluates the first conditions lazily with inclusive-end range"
|
142
|
-
fails "The if expression with a boolean range ('flip-flop' operator) evaluates the second conditions lazily with exclusive-end range"
|
143
|
-
fails "The if expression with a boolean range ('flip-flop' operator) evaluates the second conditions lazily with inclusive-end range"
|
144
|
-
fails "The if expression with a boolean range ('flip-flop' operator) keeps flip-flops from interfering"
|
145
|
-
fails "The if expression with a boolean range ('flip-flop' operator) mimics a sed conditional with a many-element exclusive-end range"
|
146
|
-
fails "The if expression with a boolean range ('flip-flop' operator) mimics a sed conditional with a zero-element exclusive-end range"
|
147
|
-
fails "The if expression with a boolean range ('flip-flop' operator) mimics an awk conditional with a many-element inclusive-end range"
|
148
|
-
fails "The if expression with a boolean range ('flip-flop' operator) mimics an awk conditional with a single-element inclusive-end range"
|
149
|
-
fails "The if expression with a boolean range ('flip-flop' operator) scopes state by flip-flop"
|
150
|
-
fails "The next statement in a method is invalid and raises a SyntaxError"
|
151
|
-
fails "The or operator has a lower precedence than 'next' in 'next true or false'"
|
152
|
-
fails "The predefined global constants includes TOPLEVEL_BINDING"
|
153
|
-
fails "The redo statement in a method is invalid and raises a SyntaxError"
|
154
|
-
fails "The redo statement triggers ensure block when re-executing a block"
|
155
|
-
fails "The rescue keyword only accepts Module or Class in rescue clauses" # RuntimeError: error
|
156
|
-
fails "The rescue keyword only accepts Module or Class in splatted rescue clauses" # RuntimeError: error
|
157
|
-
fails "The retry keyword inside a begin block's rescue block causes the begin block to be executed again"
|
158
|
-
fails "The retry statement raises a SyntaxError when used outside of a begin statement"
|
159
|
-
fails "The retry statement re-executes the closest block"
|
160
|
-
fails "The super keyword calls the correct method when the method visibility is modified"
|
161
|
-
fails "The super keyword passes along modified rest args when they were originally empty"
|
162
|
-
fails "The super keyword passes along modified rest args when they weren't originally empty"
|
163
|
-
fails "The super keyword uses given block even if arguments are passed explicitly"
|
164
|
-
fails "The super keyword when using keyword arguments passes any given keyword arguments including optional and required ones to the parent"
|
165
|
-
fails "The super keyword without explicit arguments passes arguments and rest arguments including any modifications"
|
166
|
-
fails "The super keyword without explicit arguments passes optional arguments that have a default value but were modified"
|
167
|
-
fails "The super keyword without explicit arguments passes optional arguments that have a default value"
|
168
|
-
fails "The super keyword without explicit arguments passes optional arguments that have a non-default value but were modified"
|
169
|
-
fails "The super keyword without explicit arguments passes rest arguments including any modifications"
|
170
|
-
fails "The super keyword without explicit arguments that are '_' including any modifications" # Expected [1, 2] to equal [14, 2]
|
171
|
-
fails "The unpacking splat operator (*) when applied to a BasicObject coerces it to Array if it respond_to?(:to_a)" # NoMethodError: undefined method `respond_to?' for BasicObject
|
172
|
-
fails "The until expression restarts the current iteration without reevaluating condition with redo"
|
173
|
-
fails "The until modifier restarts the current iteration without reevaluating condition with redo"
|
174
|
-
fails "The until modifier with begin .. end block evaluates condition after block execution"
|
175
|
-
fails "The until modifier with begin .. end block restart the current iteration without reevaluting condition with redo"
|
176
|
-
fails "The until modifier with begin .. end block runs block at least once (even if the expression is true)"
|
177
|
-
fails "The until modifier with begin .. end block skips to end of body with next"
|
178
|
-
fails "The while expression stops running body if interrupted by break in a begin ... end element op-assign value"
|
179
|
-
fails "The while expression stops running body if interrupted by break in a parenthesized element op-assign value"
|
180
|
-
fails "The while modifier with begin .. end block evaluates condition after block execution"
|
181
|
-
fails "The while modifier with begin .. end block restarts the current iteration without reevaluting condition with redo"
|
182
|
-
fails "The while modifier with begin .. end block runs block at least once (even if the expression is false)"
|
183
|
-
fails "The while modifier with begin .. end block skips to end of body with next"
|
184
|
-
fails "The yield call taking a single argument yielding to a lambda should not destructure an Array into multiple arguments" # Expected ArgumentError but no exception was raised ([1, 2] was returned)
|
185
|
-
fails "The yield call taking no arguments ignores assignment to the explicit block argument and calls the passed block"
|
186
|
-
fails "self in a metaclass body (class << obj) raises a TypeError for numbers"
|
187
|
-
fails "self in a metaclass body (class << obj) raises a TypeError for symbols"
|
188
|
-
fails_badly "The while expression stops running body if interrupted by break in a begin ... end attribute op-assign-or value"
|
189
|
-
fails_badly "The while expression stops running body if interrupted by break in a parenthesized attribute op-assign-or value"
|
190
|
-
end
|