opal 0.8.1 → 0.9.0.beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +2 -2
- data/.gitmodules +3 -3
- data/.jshintrc +17 -20
- data/.travis.yml +22 -11
- data/CHANGELOG.md +51 -1
- data/CODE_OF_CONDUCT.md +15 -0
- data/CONTRIBUTING.md +125 -9
- data/Gemfile +1 -1
- data/Guardfile +2 -2
- data/README.md +95 -29
- data/Rakefile +1 -1
- data/benchmark/benchmarks +103 -0
- data/benchmark/bm_array_flatten.rb +9 -0
- data/benchmark/bm_array_intersection_numbers.rb +7 -0
- data/benchmark/bm_array_intersection_objects.rb +7 -0
- data/benchmark/bm_array_intersection_strings.rb +7 -0
- data/benchmark/bm_array_join_ary.rb +9 -0
- data/benchmark/bm_array_minus_numbers.rb +7 -0
- data/benchmark/bm_array_minus_objects.rb +7 -0
- data/benchmark/bm_array_minus_strings.rb +7 -0
- data/benchmark/bm_array_union_numbers.rb +7 -0
- data/benchmark/bm_array_union_objects.rb +7 -0
- data/benchmark/bm_array_union_strings.rb +7 -0
- data/benchmark/bm_array_uniq_bang_numbers.rb +5 -0
- data/benchmark/bm_array_uniq_bang_objects.rb +5 -0
- data/benchmark/bm_array_uniq_bang_strings.rb +5 -0
- data/benchmark/bm_array_uniq_numbers.rb +5 -0
- data/benchmark/bm_array_uniq_objects.rb +5 -0
- data/benchmark/bm_array_uniq_strings.rb +5 -0
- data/benchmark/bm_dispatch_bind_table.rb +57 -0
- data/benchmark/bm_dispatch_code_gen.rb +65 -0
- data/benchmark/bm_dispatch_code_gen_if.rb +64 -0
- data/benchmark/bm_dispatch_hardcoded.rb +44 -0
- data/benchmark/bm_dispatch_send.rb +38 -0
- data/benchmark/bm_dispatch_send_table.rb +57 -0
- data/benchmark/bm_hash_assoc_object.rb +11 -0
- data/benchmark/bm_hash_assoc_string.rb +9 -0
- data/benchmark/bm_hash_clone_object.rb +9 -0
- data/benchmark/bm_hash_clone_string.rb +9 -0
- data/benchmark/bm_hash_delete_object.rb +11 -0
- data/benchmark/bm_hash_delete_string.rb +9 -0
- data/benchmark/bm_hash_each_key_object.rb +9 -0
- data/benchmark/bm_hash_each_key_string.rb +9 -0
- data/benchmark/bm_hash_each_object.rb +9 -0
- data/benchmark/bm_hash_each_string.rb +9 -0
- data/benchmark/bm_hash_each_value_object.rb +9 -0
- data/benchmark/bm_hash_each_value_string.rb +9 -0
- data/benchmark/bm_hash_element_reference_object.rb +11 -0
- data/benchmark/bm_hash_element_reference_string.rb +9 -0
- data/benchmark/bm_hash_element_set_object.rb +5 -0
- data/benchmark/bm_hash_element_set_string.rb +5 -0
- data/benchmark/bm_hash_equal_value_object.rb +14 -0
- data/benchmark/bm_hash_equal_value_string.rb +11 -0
- data/benchmark/bm_hash_fetch_object.rb +11 -0
- data/benchmark/bm_hash_fetch_string.rb +9 -0
- data/benchmark/bm_hash_flatten_object.rb +9 -0
- data/benchmark/bm_hash_flatten_string.rb +9 -0
- data/benchmark/bm_hash_has_key_object.rb +11 -0
- data/benchmark/bm_hash_has_key_string.rb +9 -0
- data/benchmark/bm_hash_has_value_object.rb +9 -0
- data/benchmark/bm_hash_has_value_string.rb +9 -0
- data/benchmark/bm_hash_hash_object.rb +9 -0
- data/benchmark/bm_hash_hash_string.rb +9 -0
- data/benchmark/bm_hash_inspect_object.rb +9 -0
- data/benchmark/bm_hash_inspect_string.rb +9 -0
- data/benchmark/bm_hash_invert_object.rb +9 -0
- data/benchmark/bm_hash_invert_string.rb +9 -0
- data/benchmark/bm_hash_keep_if_object.rb +9 -0
- data/benchmark/bm_hash_keep_if_string.rb +9 -0
- data/benchmark/bm_hash_key_object.rb +9 -0
- data/benchmark/bm_hash_key_string.rb +9 -0
- data/benchmark/bm_hash_keys_object.rb +9 -0
- data/benchmark/bm_hash_keys_string.rb +9 -0
- data/benchmark/bm_hash_literal_mixed_large.rb +3 -0
- data/benchmark/bm_hash_literal_mixed_small.rb +3 -0
- data/benchmark/bm_hash_literal_object_large.rb +4 -0
- data/benchmark/bm_hash_literal_object_small.rb +3 -0
- data/benchmark/bm_hash_literal_string_large.rb +4 -0
- data/benchmark/bm_hash_literal_string_small.rb +3 -0
- data/benchmark/bm_hash_merge_object.rb +22 -0
- data/benchmark/bm_hash_merge_string.rb +18 -0
- data/benchmark/bm_hash_rassoc_object.rb +9 -0
- data/benchmark/bm_hash_rassoc_string.rb +9 -0
- data/benchmark/bm_hash_rehash_object.rb +9 -0
- data/benchmark/bm_hash_rehash_string.rb +9 -0
- data/benchmark/bm_hash_reject_bang_object.rb +9 -0
- data/benchmark/bm_hash_reject_bang_string.rb +9 -0
- data/benchmark/bm_hash_reject_object.rb +9 -0
- data/benchmark/bm_hash_reject_string.rb +9 -0
- data/benchmark/bm_hash_replace_object.rb +18 -0
- data/benchmark/bm_hash_replace_string.rb +14 -0
- data/benchmark/bm_hash_select_bang_object.rb +9 -0
- data/benchmark/bm_hash_select_bang_string.rb +9 -0
- data/benchmark/bm_hash_select_object.rb +9 -0
- data/benchmark/bm_hash_select_string.rb +9 -0
- data/benchmark/bm_hash_shift_object.rb +10 -0
- data/benchmark/bm_hash_shift_string.rb +10 -0
- data/benchmark/bm_hash_to_a_object.rb +9 -0
- data/benchmark/bm_hash_to_a_string.rb +9 -0
- data/benchmark/bm_hash_to_h_object.rb +10 -0
- data/benchmark/bm_hash_to_h_string.rb +10 -0
- data/benchmark/bm_hash_values_object.rb +9 -0
- data/benchmark/bm_hash_values_string.rb +9 -0
- data/benchmark/run.rb +48 -0
- data/bin/opal-mspec +1 -1
- data/bin/opal-repl +4 -4
- data/docs/compiled_ruby.md +214 -56
- data/docs/configuring_gems.md +2 -2
- data/docs/faq.md +2 -2
- data/docs/getting_started.md +19 -2
- data/docs/jquery.md +5 -5
- data/docs/opal_parser.md +53 -0
- data/docs/unsupported_features.md +2 -2
- data/docs/upgrading.md +22 -0
- data/docs/using_sprockets.md +15 -0
- data/examples/rack/config.ru +13 -0
- data/examples/sinatra/config.ru +4 -5
- data/lib/mspec/opal/runner.rb +54 -11
- data/lib/opal.rb +1 -1
- data/lib/opal/builder.rb +1 -1
- data/lib/opal/builder_processors.rb +1 -1
- data/lib/opal/cli.rb +17 -13
- data/lib/opal/cli_options.rb +1 -1
- data/lib/opal/compiler.rb +12 -0
- data/lib/opal/config.rb +4 -0
- data/lib/opal/nodes/arglist.rb +5 -7
- data/lib/opal/nodes/call.rb +6 -1
- data/lib/opal/nodes/call_special.rb +74 -0
- data/lib/opal/nodes/def.rb +35 -28
- data/lib/opal/nodes/definitions.rb +3 -5
- data/lib/opal/nodes/for.rb +13 -0
- data/lib/opal/nodes/helpers.rb +15 -1
- data/lib/opal/nodes/if.rb +5 -5
- data/lib/opal/nodes/iter.rb +6 -1
- data/lib/opal/nodes/literal.rb +1 -1
- data/lib/opal/nodes/logic.rb +2 -2
- data/lib/opal/nodes/masgn.rb +1 -2
- data/lib/opal/nodes/module.rb +2 -1
- data/lib/opal/nodes/rescue.rb +10 -1
- data/lib/opal/nodes/scope.rb +8 -2
- data/lib/opal/nodes/singleton_class.rb +1 -1
- data/lib/opal/nodes/top.rb +11 -0
- data/lib/opal/nodes/variables.rb +4 -4
- data/lib/opal/parser.rb +21 -3
- data/lib/opal/parser/grammar.rb +3115 -2961
- data/lib/opal/parser/grammar.y +29 -6
- data/lib/opal/parser/lexer.rb +18 -8
- data/lib/opal/sprockets.rb +85 -0
- data/lib/opal/sprockets/processor.rb +11 -35
- data/lib/opal/sprockets/server.rb +3 -15
- data/lib/opal/version.rb +2 -2
- data/opal.gemspec +4 -4
- data/opal/README.md +9 -0
- data/opal/corelib/array.rb +433 -181
- data/opal/corelib/basic_object.rb +48 -4
- data/opal/corelib/boolean.rb +15 -6
- data/opal/corelib/class.rb +6 -5
- data/opal/corelib/comparable.rb +12 -0
- data/opal/corelib/complex.rb +282 -0
- data/opal/corelib/constants.rb +9 -0
- data/opal/corelib/enumerable.rb +83 -34
- data/opal/corelib/enumerator.rb +3 -1
- data/opal/corelib/error.rb +49 -10
- data/opal/corelib/file.rb +1 -0
- data/opal/corelib/hash.rb +353 -577
- data/opal/corelib/helpers.rb +20 -0
- data/opal/corelib/kernel.rb +114 -59
- data/opal/corelib/math.rb +470 -0
- data/opal/corelib/method.rb +11 -2
- data/opal/corelib/module.rb +96 -96
- data/opal/corelib/{nil_class.rb → nil.rb} +20 -1
- data/opal/corelib/number.rb +751 -0
- data/opal/corelib/numeric.rb +77 -437
- data/opal/corelib/proc.rb +81 -1
- data/opal/corelib/process.rb +27 -0
- data/opal/corelib/rational.rb +358 -0
- data/opal/corelib/regexp.rb +156 -27
- data/opal/corelib/runtime.js +724 -335
- data/opal/corelib/string.rb +93 -104
- data/opal/corelib/string/encoding.rb +177 -0
- data/opal/corelib/string/inheritance.rb +2 -0
- data/opal/corelib/struct.rb +105 -18
- data/opal/corelib/time.rb +267 -146
- data/opal/corelib/unsupported.rb +216 -0
- data/opal/corelib/variables.rb +0 -6
- data/opal/opal.rb +8 -22
- data/opal/opal/base.rb +9 -0
- data/opal/opal/mini.rb +17 -0
- data/spec/README.md +1 -1
- data/spec/filters/bugs/array.rb +38 -136
- data/spec/filters/bugs/{basic_object.rb → basicobject.rb} +14 -15
- data/spec/filters/bugs/class.rb +6 -12
- data/spec/filters/bugs/complex.rb +3 -0
- data/spec/filters/bugs/date.rb +162 -10
- data/spec/filters/bugs/enumerable.rb +31 -58
- data/spec/filters/bugs/enumerator.rb +42 -0
- data/spec/filters/bugs/exception.rb +66 -10
- data/spec/filters/bugs/float.rb +17 -0
- data/spec/filters/bugs/hash.rb +11 -97
- data/spec/filters/bugs/inheritance.rb +5 -0
- data/spec/filters/bugs/integer.rb +28 -0
- data/spec/filters/bugs/kernel.rb +304 -12
- data/spec/filters/bugs/language.rb +133 -399
- data/spec/filters/bugs/language_opal.rb +88 -0
- data/spec/filters/bugs/module.rb +203 -62
- data/spec/filters/bugs/numeric.rb +32 -0
- data/spec/filters/bugs/proc.rb +39 -0
- data/spec/filters/bugs/range.rb +148 -0
- data/spec/filters/bugs/regexp.rb +168 -0
- data/spec/filters/bugs/set.rb +46 -3
- data/spec/filters/bugs/singleton.rb +1 -2
- data/spec/filters/bugs/string.rb +59 -90
- data/spec/filters/bugs/strscan.rb +80 -0
- data/spec/filters/bugs/struct.rb +10 -20
- data/spec/filters/bugs/time.rb +17 -184
- data/spec/filters/bugs/unboundmethod.rb +22 -0
- data/spec/filters/unsupported/array.rb +163 -0
- data/spec/filters/unsupported/basicobject.rb +14 -0
- data/spec/filters/unsupported/bignum.rb +46 -0
- data/spec/filters/unsupported/class.rb +4 -0
- data/spec/filters/unsupported/delegator.rb +5 -0
- data/spec/filters/unsupported/enumerable.rb +11 -0
- data/spec/filters/unsupported/enumerator.rb +8 -9
- data/spec/filters/unsupported/fixnum.rb +14 -0
- data/spec/filters/unsupported/float.rb +41 -7
- data/spec/filters/unsupported/freeze.rb +45 -0
- data/spec/filters/unsupported/hash.rb +50 -0
- data/spec/filters/unsupported/integer.rb +3 -0
- data/spec/filters/unsupported/kernel.rb +31 -0
- data/spec/filters/unsupported/language.rb +17 -0
- data/spec/filters/unsupported/matchdata.rb +30 -0
- data/spec/filters/unsupported/math.rb +3 -0
- data/spec/filters/unsupported/module.rb +5 -3
- data/spec/filters/unsupported/pathname.rb +3 -0
- data/spec/filters/unsupported/privacy.rb +136 -0
- data/spec/filters/unsupported/proc.rb +3 -0
- data/spec/filters/unsupported/regexp.rb +59 -0
- data/spec/filters/unsupported/set.rb +4 -0
- data/spec/filters/unsupported/{marshal.rb → singleton.rb} +4 -2
- data/spec/filters/unsupported/{mutable_strings.rb → string.rb} +456 -336
- data/spec/filters/unsupported/struct.rb +3 -0
- data/spec/filters/unsupported/symbol.rb +5 -0
- data/spec/filters/unsupported/taint.rb +16 -0
- data/spec/filters/unsupported/thread.rb +5 -0
- data/spec/filters/unsupported/time.rb +197 -16
- data/spec/lib/cli_spec.rb +14 -4
- data/spec/lib/compiler_spec.rb +9 -1
- data/spec/lib/parser/call_spec.rb +18 -0
- data/spec/lib/parser/not_spec.rb +2 -8
- data/spec/lib/sprockets_spec.rb +24 -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/exception_spec.rb +7 -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 +332 -0
- data/spec/opal/core/helpers_spec.rb +14 -0
- data/spec/opal/core/kernel/freeze_spec.rb +1 -1
- data/spec/opal/core/kernel/raise_spec.rb +13 -0
- data/spec/opal/core/kernel/require_tree_spec.rb +9 -0
- data/spec/opal/core/language/class_spec.rb +55 -0
- data/spec/opal/core/language/fixtures/send.rb +1 -0
- data/spec/opal/core/language/keyword_arguments_spec.rb +11 -0
- data/spec/opal/core/language/send_spec.rb +5 -0
- data/spec/opal/core/method/to_proc_spec.rb +28 -0
- data/spec/opal/core/module/name_spec.rb +0 -17
- data/spec/opal/core/runtime/bridged_classes_spec.rb +2 -2
- data/spec/opal/core/runtime/eval_spec.rb +1 -1
- data/spec/opal/core/runtime/method_missing_spec.rb +6 -0
- data/spec/opal/core/runtime_spec.rb +51 -0
- data/spec/opal/stdlib/js_spec.rb +66 -0
- data/spec/opal/stdlib/native/hash_spec.rb +36 -0
- data/spec/rubyspecs +152 -273
- data/spec/spec_helper.rb +10 -11
- data/stdlib/base64.rb +9 -9
- data/stdlib/benchmark.rb +551 -4
- data/stdlib/console.rb +94 -0
- data/stdlib/date.rb +1 -1
- data/stdlib/encoding.rb +1 -170
- data/stdlib/js.rb +56 -0
- data/stdlib/json.rb +9 -14
- data/stdlib/math.rb +1 -370
- data/stdlib/native.rb +133 -63
- data/stdlib/nodejs/file.rb +5 -0
- data/stdlib/nodejs/fileutils.rb +13 -6
- data/stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/README.md +1 -1
- data/stdlib/opal-parser.rb +1 -2
- data/stdlib/ostruct.rb +65 -6
- data/stdlib/pp.rb +2 -4
- data/stdlib/rbconfig.rb +1 -3
- data/stdlib/strscan.rb +164 -28
- data/tasks/benchmarking.rake +88 -0
- data/tasks/testing.rake +181 -55
- data/{lib/mspec/opal/special_calls.rb → tasks/testing/mspec_special_calls.rb} +1 -1
- data/{lib/mspec/opal/sprockets.js → tasks/testing/phantomjs1-sprockets.js} +17 -6
- data/test/opal/test_keyword.rb +590 -0
- data/vendored-minitest/minitest.rb +2 -2
- data/vendored-minitest/test/unit.rb +5 -0
- metadata +229 -62
- data/benchmarks/operators.rb +0 -11
- data/benchmarks/prova.js.rb +0 -13
- data/docs/libraries.md +0 -36
- data/lib/mspec/opal/new.html.erb +0 -1
- data/lib/mspec/opal/rake_task.rb +0 -248
- data/opal/corelib/match_data.rb +0 -128
- data/spec/filters/bugs/math.rb +0 -95
- data/spec/filters/bugs/nil.rb +0 -7
- data/spec/filters/bugs/opal.rb +0 -9
- data/spec/filters/bugs/regular_expressions.rb +0 -41
- data/spec/filters/bugs/stringscanner.rb +0 -33
- data/spec/filters/unsupported/encoding.rb +0 -102
- data/spec/filters/unsupported/frozen.rb +0 -92
- data/spec/filters/unsupported/hash_compare_by_identity.rb +0 -16
- data/spec/filters/unsupported/integer_size.rb +0 -59
- data/spec/filters/unsupported/method_added.rb +0 -10
- data/spec/filters/unsupported/private_constants.rb +0 -30
- data/spec/filters/unsupported/private_methods.rb +0 -55
- data/spec/filters/unsupported/random.rb +0 -4
- data/spec/filters/unsupported/rational_numbers.rb +0 -4
- data/spec/filters/unsupported/regular_expressions.rb +0 -137
- data/spec/filters/unsupported/ruby_exe.rb +0 -5
- data/spec/filters/unsupported/symbols.rb +0 -17
- data/spec/filters/unsupported/tainted.rb +0 -180
- data/spec/filters/unsupported/trusted.rb +0 -88
- data/stdlib/process.rb +0 -10
- data/tasks/documenting.rake +0 -37
data/spec/filters/bugs/nil.rb
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
opal_filter "nil" do
|
2
|
-
fails "NilClass#to_r returns 0/1"
|
3
|
-
fails "NilClass#to_c returns Complex(0, 0)"
|
4
|
-
fails "NilClass#rationalize raises ArgumentError when passed more than one argument"
|
5
|
-
fails "NilClass#rationalize ignores a single argument"
|
6
|
-
fails "NilClass#rationalize returns 0/1"
|
7
|
-
end
|
data/spec/filters/bugs/opal.rb
DELETED
@@ -1,9 +0,0 @@
|
|
1
|
-
opal_filter "Opal bugs" do
|
2
|
-
fails "Array#join raises a NoMethodError if an element does not respond to #to_str, #to_ary, or #to_s"
|
3
|
-
|
4
|
-
# arity checking bugs
|
5
|
-
fails "Array#shift passed a number n as an argument raises an ArgumentError if more arguments are passed"
|
6
|
-
fails "Array#pop passed a number n as an argument raises an ArgumentError if more arguments are passed"
|
7
|
-
|
8
|
-
fails "Kernel#warn requires multiple arguments"
|
9
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
opal_filter "regular_expressions" do
|
2
|
-
fails "Regexp.new works by default for subclasses with overridden #initialize"
|
3
|
-
fails "Regexp.new given a String raises a RegexpError when passed an incorrect regexp"
|
4
|
-
fails "Regexp.new given a String with escaped characters raises a RegexpError if \\x is not followed by any hexadecimal digits"
|
5
|
-
fails "Regexp.new given a String with escaped characters accepts '\\C-\\n'"
|
6
|
-
fails "Regexp.new given a String with escaped characters accepts '\\C-\\t'"
|
7
|
-
fails "Regexp.new given a String with escaped characters accepts '\\C-\\r'"
|
8
|
-
fails "Regexp.new given a String with escaped characters accepts '\\C-\\f'"
|
9
|
-
fails "Regexp.new given a String with escaped characters accepts '\\C-\\v'"
|
10
|
-
fails "Regexp.new given a String with escaped characters accepts '\\C-\\a'"
|
11
|
-
fails "Regexp.new given a String with escaped characters accepts '\\C-\\e'"
|
12
|
-
fails "Regexp.new given a String with escaped characters accepts '\\c\\n'"
|
13
|
-
fails "Regexp.new given a String with escaped characters accepts '\\c\\t'"
|
14
|
-
fails "Regexp.new given a String with escaped characters accepts '\\c\\r'"
|
15
|
-
fails "Regexp.new given a String with escaped characters accepts '\\c\\f'"
|
16
|
-
fails "Regexp.new given a String with escaped characters accepts '\\c\\v'"
|
17
|
-
fails "Regexp.new given a String with escaped characters accepts '\\c\\a'"
|
18
|
-
fails "Regexp.new given a String with escaped characters accepts '\\c\\e'"
|
19
|
-
fails "Regexp.new given a String with escaped characters raises a RegexpError if more than six hexadecimal digits are given"
|
20
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\n'"
|
21
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\t'"
|
22
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\r'"
|
23
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\f'"
|
24
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\v'"
|
25
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\a'"
|
26
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\e'"
|
27
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\C-\\n'"
|
28
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\C-\\t'"
|
29
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\C-\\r'"
|
30
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\C-\\f'"
|
31
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\C-\\v'"
|
32
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\C-\\a'"
|
33
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\C-\\e'"
|
34
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\c\\n'"
|
35
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\c\\t'"
|
36
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\c\\r'"
|
37
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\c\\f'"
|
38
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\c\\v'"
|
39
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\c\\a'"
|
40
|
-
fails "Regexp.new given a String with escaped characters accepts '\\M-\\c\\e'"
|
41
|
-
end
|
@@ -1,33 +0,0 @@
|
|
1
|
-
opal_filter "StringScanner" do
|
2
|
-
fails "StringScanner#[] calls to_int on the given index"
|
3
|
-
fails "StringScanner#[] raises a TypeError if the given index is nil"
|
4
|
-
fails "StringScanner#[] raises a TypeError when a Range is as argument"
|
5
|
-
fails "StringScanner#[] raises a TypeError when a String is as argument"
|
6
|
-
|
7
|
-
fails "StringScanner#get_byte is not multi-byte character sensitive"
|
8
|
-
|
9
|
-
fails "StringScanner#pos returns the position of the scan pointer"
|
10
|
-
fails "StringScanner#pos returns the position of the scan pointer for multibyte string"
|
11
|
-
fails "StringScanner#pos returns 0 in the reset position"
|
12
|
-
fails "StringScanner#pos returns the length of the string in the terminate position"
|
13
|
-
fails "StringScanner#pos returns the `bytesize` for multibyte string in the terminate position"
|
14
|
-
fails "StringScanner#pos= raises a RangeError if position too far backward"
|
15
|
-
fails "StringScanner#pos= raises a RangeError when the passed argument is out of range"
|
16
|
-
|
17
|
-
fails "StringScanner#scan returns the matched string for a multi byte string"
|
18
|
-
fails "StringScanner#scan raises a TypeError if pattern isn't a Regexp"
|
19
|
-
|
20
|
-
fails "StringScanner#pos= can poin position that greater than string length for multibyte string"
|
21
|
-
fails "StringScanner#pos= positions from the end if the argument is negative for multibyte string"
|
22
|
-
|
23
|
-
fails "StringScanner#peek taints the returned String if the input was tainted"
|
24
|
-
fails "StringScanner#peek returns an instance of String when passed a String subclass"
|
25
|
-
fails "StringScanner#peek raises a RangeError when the passed argument is a Bignum"
|
26
|
-
fails "StringScanner#peek raises a ArgumentError when the passed argument is negative"
|
27
|
-
|
28
|
-
fails "StringScanner#rest taints the returned String if the input was tainted"
|
29
|
-
fails "StringScanner#rest returns an instance of String when passed a String subclass"
|
30
|
-
|
31
|
-
fails "StringScanner#[] raises a IndexError when there's no named capture"
|
32
|
-
fails "StringScanner#[] returns named capture"
|
33
|
-
end
|
@@ -1,102 +0,0 @@
|
|
1
|
-
opal_filter "Encoding" do
|
2
|
-
fails "Array#inspect raises if inspected result is not default external encoding"
|
3
|
-
fails "Array#inspect use US-ASCII encoding if the default external encoding is not ascii compatible"
|
4
|
-
fails "Array#inspect use the default external encoding if it is ascii compatible"
|
5
|
-
fails "Array#inspect returns a US-ASCII string for an empty Array"
|
6
|
-
fails "Array#inspect with encoding returns a US-ASCII string for an empty Array"
|
7
|
-
fails "Array#inspect with encoding use the default external encoding if it is ascii compatible"
|
8
|
-
fails "Array#inspect with encoding use US-ASCII encoding if the default external encoding is not ascii compatible"
|
9
|
-
fails "Array#inspect with encoding raises if inspected result is not default external encoding"
|
10
|
-
|
11
|
-
fails "Array#join fails for arrays with incompatibly-encoded strings"
|
12
|
-
fails "Array#join uses the widest common encoding when other strings are incompatible"
|
13
|
-
fails "Array#join uses the first encoding when other strings are compatible"
|
14
|
-
fails "Array#join returns a US-ASCII string for an empty Array"
|
15
|
-
|
16
|
-
fails "Array#to_s raises if inspected result is not default external encoding"
|
17
|
-
fails "Array#to_s returns a US-ASCII string for an empty Array"
|
18
|
-
fails "Array#to_s use US-ASCII encoding if the default external encoding is not ascii compatible"
|
19
|
-
fails "Array#to_s use the default external encoding if it is ascii compatible"
|
20
|
-
fails "Array#to_s with encoding raises if inspected result is not default external encoding"
|
21
|
-
fails "Array#to_s with encoding returns a US-ASCII string for an empty Array"
|
22
|
-
fails "Array#to_s with encoding use US-ASCII encoding if the default external encoding is not ascii compatible"
|
23
|
-
fails "Array#to_s with encoding use the default external encoding if it is ascii compatible"
|
24
|
-
|
25
|
-
fails "String#== ignores encoding difference of compatible string"
|
26
|
-
fails "String#== considers encoding difference of incompatible string"
|
27
|
-
fails "String#== considers encoding compatibility"
|
28
|
-
|
29
|
-
fails "String#=== ignores encoding difference of compatible string"
|
30
|
-
fails "String#=== considers encoding difference of incompatible string"
|
31
|
-
fails "String#=== considers encoding compatibility"
|
32
|
-
|
33
|
-
fails "String#<=> with String returns -1 if self is bytewise less than other"
|
34
|
-
fails "String#<=> with String returns 1 if self is bytewise greater than other"
|
35
|
-
fails "String#<=> with String returns 0 if self and other contain identical ASCII-compatible bytes in different encodings"
|
36
|
-
fails "String#<=> with String returns 0 with identical ASCII-compatible bytes of different encodings"
|
37
|
-
fails "String#<=> with String does not return 0 if self and other contain identical non-ASCII-compatible bytes in different encodings"
|
38
|
-
fails "String#<=> with String compares the indices of the encodings when the strings have identical non-ASCII-compatible bytes"
|
39
|
-
fails "String#<=> with String ignores encoding difference"
|
40
|
-
|
41
|
-
fails "String.allocate returns a fully-formed String"
|
42
|
-
fails "String.allocate returns a binary String"
|
43
|
-
|
44
|
-
fails "String.new returns a binary String"
|
45
|
-
|
46
|
-
fails "String#capitalize is locale insensitive (only upcases a-z and only downcases A-Z)"
|
47
|
-
|
48
|
-
fails "String#chars is unicode aware"
|
49
|
-
|
50
|
-
fails "String#count returns the number of occurrences of a multi-byte character"
|
51
|
-
|
52
|
-
fails "String#downcase is locale insensitive (only replaces A-Z)"
|
53
|
-
|
54
|
-
fails "String#each_char is unicode aware"
|
55
|
-
|
56
|
-
fails "String#eql? ignores encoding difference of compatible string"
|
57
|
-
fails "String#eql? considers encoding difference of incompatible string"
|
58
|
-
fails "String#eql? considers encoding compatibility"
|
59
|
-
|
60
|
-
fails "String#gsub with pattern and block uses the compatible encoding if they are compatible"
|
61
|
-
fails "String#gsub with pattern and block raises an Encoding::CompatibilityError if the encodings are not compatible"
|
62
|
-
fails "String#gsub with pattern and block replaces the incompatible part properly even if the encodings are not compatible"
|
63
|
-
fails "String#gsub with pattern and block raises an ArgumentError if encoding is not valid"
|
64
|
-
|
65
|
-
fails "String#initialize with an argument carries over the encoding invalidity"
|
66
|
-
|
67
|
-
fails "String#replace carries over the encoding invalidity"
|
68
|
-
|
69
|
-
fails "String#split with Regexp retains the encoding of the source string"
|
70
|
-
fails "String#split with Regexp returns an ArgumentError if an invalid UTF-8 string is supplied"
|
71
|
-
fails "String#split with Regexp respects the encoding of the regexp when splitting between characters"
|
72
|
-
fails "String#split with Regexp splits a string on each character for a multibyte encoding and empty split"
|
73
|
-
|
74
|
-
fails "String#upcase is locale insensitive (only replaces a-z)"
|
75
|
-
|
76
|
-
fails "The defined? keyword for pseudo-variables returns 'expression' for __ENCODING__"
|
77
|
-
|
78
|
-
# language/magic_comment_spec
|
79
|
-
fails "Magic comment can take vim style"
|
80
|
-
fails "Magic comment can take Emacs style"
|
81
|
-
fails "Magic comment can be after the shebang"
|
82
|
-
fails "Magic comment must be the first token of the line"
|
83
|
-
fails "Magic comment must be at the first line"
|
84
|
-
fails "Magic comment is case-insensitive"
|
85
|
-
fails "Magic comment determines __ENCODING__"
|
86
|
-
|
87
|
-
# Opal uses \u notation exclusively for String#inspect
|
88
|
-
fails "String#inspect returns a string with non-printing characters replaced by \\x notation"
|
89
|
-
fails "String#inspect returns a string with a NUL character replaced by \\000"
|
90
|
-
end
|
91
|
-
|
92
|
-
opal_filter "Regexp.escape" do
|
93
|
-
fails "Regexp.escape sets the encoding of the result to US-ASCII if there are only US-ASCII characters present in the input String"
|
94
|
-
fails "Regexp.escape sets the encoding of the result to the encoding of the String if any non-US-ASCII characters are present in an input String with valid encoding"
|
95
|
-
fails "Regexp.escape sets the encoding of the result to ASCII-8BIT if any non-US-ASCII characters are present in an input String with invalid encoding"
|
96
|
-
end
|
97
|
-
|
98
|
-
opal_filter "Regexp.quote" do
|
99
|
-
fails "Regexp.quote sets the encoding of the result to US-ASCII if there are only US-ASCII characters present in the input String"
|
100
|
-
fails "Regexp.quote sets the encoding of the result to the encoding of the String if any non-US-ASCII characters are present in an input String with valid encoding"
|
101
|
-
fails "Regexp.quote sets the encoding of the result to ASCII-8BIT if any non-US-ASCII characters are present in an input String with invalid encoding"
|
102
|
-
end
|
@@ -1,92 +0,0 @@
|
|
1
|
-
opal_filter "Object#frozen" do
|
2
|
-
fails "Array#fill raises a RuntimeError on a frozen array"
|
3
|
-
fails "Array#fill raises a RuntimeError on an empty frozen array"
|
4
|
-
fails "Array#frozen? returns true if array is frozen"
|
5
|
-
fails "Array#frozen? returns false for an array being sorted by #sort"
|
6
|
-
fails "Array#unshift raises a RuntimeError on a frozen array when the array is modified"
|
7
|
-
fails "Array#unshift raises a RuntimeError on a frozen array when the array would not be modified"
|
8
|
-
fails "Array#uniq! doesn't yield to the block on a frozen array"
|
9
|
-
fails "Array#uniq! raises a RuntimeError on a frozen array when the array would not be modified"
|
10
|
-
fails "Array#uniq! raises a RuntimeError on a frozen array when the array is modified"
|
11
|
-
fails "Array#sort! raises a RuntimeError on a frozen array"
|
12
|
-
fails "Array#slice! raises a RuntimeError on a frozen array"
|
13
|
-
fails "Array#shuffle! raises a RuntimeError on a frozen array"
|
14
|
-
fails "Array#shift raises a RuntimeError on an empty frozen array"
|
15
|
-
fails "Array#shift raises a RuntimeError on a frozen array"
|
16
|
-
fails "Array#reverse! raises a RuntimeError on a frozen array"
|
17
|
-
fails "Array#reject! raises a RuntimeError on an empty frozen array"
|
18
|
-
fails "Array#reject! raises a RuntimeError on a frozen array"
|
19
|
-
fails "Array#push raises a RuntimeError on a frozen array"
|
20
|
-
fails "Array#pop passed a number n as an argument raises a RuntimeError on a frozen array"
|
21
|
-
fails "Array#pop raises a RuntimeError on an empty frozen array"
|
22
|
-
fails "Array#pop raises a RuntimeError on a frozen array"
|
23
|
-
fails "Array#insert raises a RuntimeError on frozen arrays when the array would not be modified"
|
24
|
-
fails "Array#insert raises a RuntimeError on frozen arrays when the array is modified"
|
25
|
-
fails "Array#flatten! raises a RuntimeError on frozen arrays when the array would not be modified"
|
26
|
-
fails "Array#flatten! raises a RuntimeError on frozen arrays when the array is modified"
|
27
|
-
fails "Array#delete raises a RuntimeError on a frozen array"
|
28
|
-
fails "Array#delete_if raises a RuntimeError on an empty frozen array"
|
29
|
-
fails "Array#delete_if raises a RuntimeError on a frozen array"
|
30
|
-
fails "Array#delete_at raises a RuntimeError on a frozen array"
|
31
|
-
fails "Array#compact! raises a RuntimeError on a frozen array"
|
32
|
-
fails "Array#clear raises a RuntimeError on a frozen array"
|
33
|
-
fails "Array#<< raises a RuntimeError on a frozen array"
|
34
|
-
fails "Array#[]= raises a RuntimeError on a frozen array"
|
35
|
-
fails "Array#map! when frozen raises a RuntimeError when calling #each on the returned Enumerator when empty"
|
36
|
-
fails "Array#map! when frozen raises a RuntimeError when calling #each on the returned Enumerator"
|
37
|
-
fails "Array#map! when frozen raises a RuntimeError when empty"
|
38
|
-
fails "Array#map! when frozen raises a RuntimeError"
|
39
|
-
fails "Array#reject! returns an Enumerator if no block given, and the array is frozen"
|
40
|
-
fails "Array#replace raises a RuntimeError on a frozen array"
|
41
|
-
fails "Array#select! on frozen objects with truthy block keeps elements after any exception"
|
42
|
-
fails "Array#select! on frozen objects with truthy block raises a RuntimeError"
|
43
|
-
fails "Array#select! on frozen objects with falsy block keeps elements after any exception"
|
44
|
-
fails "Array#select! on frozen objects with falsy block raises a RuntimeError"
|
45
|
-
fails "Array#clone copies frozen status from the original"
|
46
|
-
fails "Array#collect! when frozen raises a RuntimeError when calling #each on the returned Enumerator when empty"
|
47
|
-
fails "Array#collect! when frozen raises a RuntimeError when calling #each on the returned Enumerator"
|
48
|
-
fails "Array#collect! when frozen raises a RuntimeError when empty"
|
49
|
-
fails "Array#collect! when frozen raises a RuntimeError"
|
50
|
-
fails "Array#concat raises a RuntimeError when Array is frozen and modification occurs"
|
51
|
-
fails "Array#concat raises a RuntimeError when Array is frozen and no modification occurs"
|
52
|
-
fails "Array#delete_if returns an Enumerator if no block given, and the array is frozen"
|
53
|
-
fails "Array#[]= checks frozen before attempting to coerce arguments"
|
54
|
-
fails "Array#keep_if on frozen objects returns an Enumerator if no block is given"
|
55
|
-
fails "Array#keep_if on frozen objects with truthy block keeps elements after any exception"
|
56
|
-
fails "Array#keep_if on frozen objects with truthy block raises a RuntimeError"
|
57
|
-
fails "Array#keep_if on frozen objects with falsy block keeps elements after any exception"
|
58
|
-
fails "Array#keep_if on frozen objects with falsy block raises a RuntimeError"
|
59
|
-
fails "Array#initialize raises a RuntimeError on frozen arrays"
|
60
|
-
fails "Array#initialize_copy raises a RuntimeError on a frozen array"
|
61
|
-
|
62
|
-
fails "Hash#clear raises a RuntimeError if called on a frozen instance"
|
63
|
-
fails "Hash#default_proc= raises a RuntimeError if self is frozen"
|
64
|
-
fails "Hash#initialize_copy raises a RuntimeError if called on a frozen instance that would not be modified"
|
65
|
-
fails "Hash#initialize_copy raises a RuntimeError if called on a frozen instance that is modified"
|
66
|
-
fails "Hash#initialize raises a RuntimeError if called on a frozen instance"
|
67
|
-
fails "Hash#store raises a RuntimeError if called on a frozen instance"
|
68
|
-
fails "Hash#store duplicates and freezes string keys"
|
69
|
-
fails "Hash#default= raises a RuntimeError if called on a frozen instance"
|
70
|
-
fails "Hash#delete raises a RuntimeError if called on a frozen instance"
|
71
|
-
fails "Hash#delete_if raises a RuntimeError if called on a frozen instance"
|
72
|
-
fails "Hash#[]= raises a RuntimeError if called on a frozen instance"
|
73
|
-
fails "Hash#keep_if raises a RuntimeError if called on a frozen instance"
|
74
|
-
fails "Hash#merge! raises a RuntimeError on a frozen instance that is modified"
|
75
|
-
fails "Hash#merge! checks frozen status before coercing an object with #to_hash"
|
76
|
-
fails "Hash#merge! raises a RuntimeError on a frozen instance that would not be modified"
|
77
|
-
fails "Hash#reject! raises a RuntimeError if called on a frozen instance that is modified"
|
78
|
-
fails "Hash#reject! raises a RuntimeError if called on a frozen instance that would not be modified"
|
79
|
-
fails "Hash#reject! returns an Enumerator if called on a frozen instance"
|
80
|
-
fails "Hash#replace raises a RuntimeError if called on a frozen instance that is modified"
|
81
|
-
fails "Hash#replace raises a RuntimeError if called on a frozen instance that would not be modified"
|
82
|
-
fails "Hash#select! raises a RuntimeError if called on an empty frozen instance"
|
83
|
-
fails "Hash#select! raises a RuntimeError if called on a frozen instance that would not be modified"
|
84
|
-
fails "Hash#shift raises a RuntimeError if called on a frozen instance"
|
85
|
-
fails "Hash#update raises a RuntimeError on a frozen instance that would not be modified"
|
86
|
-
fails "Hash#update checks frozen status before coercing an object with #to_hash"
|
87
|
-
fails "Hash#update raises a RuntimeError on a frozen instance that is modified"
|
88
|
-
fails "Hash#rehash raises a RuntimeError if called on a frozen instance"
|
89
|
-
fails "Hash#[]= duplicates and freezes string keys"
|
90
|
-
|
91
|
-
fails "Module#class_variable_set raises a RuntimeError when self is frozen"
|
92
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
opal_filter "Hash#comapre_by_identity" do
|
2
|
-
fails "Hash#compare_by_identity causes future comparisons on the receiver to be made by identity"
|
3
|
-
fails "Hash#compare_by_identity causes #compare_by_identity? to return true"
|
4
|
-
fails "Hash#compare_by_identity returns self"
|
5
|
-
fails "Hash#compare_by_identity uses the semantics of BasicObject#equal? to determine key identity"
|
6
|
-
fails "Hash#compare_by_identity uses #equal? semantics, but doesn't actually call #equal? to determine identity"
|
7
|
-
fails "Hash#compare_by_identity regards #dup'd objects as having different identities"
|
8
|
-
fails "Hash#compare_by_identity regards #clone'd objects as having different identities"
|
9
|
-
fails "Hash#compare_by_identity regards references to the same object as having the same identity"
|
10
|
-
fails "Hash#compare_by_identity raises a RuntimeError on frozen hashes"
|
11
|
-
fails "Hash#compare_by_identity perists over #dups"
|
12
|
-
fails "Hash#compare_by_identity persists over #clones"
|
13
|
-
fails "Hash#compare_by_identity? returns false by default"
|
14
|
-
fails "Hash#compare_by_identity? returns true once #compare_by_identity has been invoked on self"
|
15
|
-
fails "Hash#compare_by_identity? returns true when called multiple times on the same ident hash"
|
16
|
-
end
|
@@ -1,59 +0,0 @@
|
|
1
|
-
opal_filter "fixnum and array size" do
|
2
|
-
fails "Array#slice raises a RangeError when the length is out of range of Fixnum"
|
3
|
-
fails "Array#slice raises a RangeError when the start index is out of range of Fixnum"
|
4
|
-
|
5
|
-
fails "Array#fill with (filler, index, length) raises an ArgumentError or RangeError for too-large sizes"
|
6
|
-
|
7
|
-
fails "Array#[] raises a RangeError when the length is out of range of Fixnum"
|
8
|
-
fails "Array#[] raises a RangeError when the start index is out of range of Fixnum"
|
9
|
-
|
10
|
-
fails "Kernel.Integer returns a Fixnum or Bignum object"
|
11
|
-
fails "Kernel#Integer returns a Fixnum or Bignum object"
|
12
|
-
|
13
|
-
fails "String#% supports negative bignums with %u or %d"
|
14
|
-
|
15
|
-
fails "String#to_i with bases parses a String in base 2"
|
16
|
-
fails "String#to_i with bases parses a String in base 3"
|
17
|
-
fails "String#to_i with bases parses a String in base 4"
|
18
|
-
fails "String#to_i with bases parses a String in base 5"
|
19
|
-
fails "String#to_i with bases parses a String in base 6"
|
20
|
-
fails "String#to_i with bases parses a String in base 7"
|
21
|
-
fails "String#to_i with bases parses a String in base 8"
|
22
|
-
fails "String#to_i with bases parses a String in base 9"
|
23
|
-
fails "String#to_i with bases parses a String in base 10"
|
24
|
-
fails "String#to_i with bases parses a String in base 11"
|
25
|
-
fails "String#to_i with bases parses a String in base 12"
|
26
|
-
fails "String#to_i with bases parses a String in base 13"
|
27
|
-
fails "String#to_i with bases parses a String in base 14"
|
28
|
-
fails "String#to_i with bases parses a String in base 15"
|
29
|
-
fails "String#to_i with bases parses a String in base 16"
|
30
|
-
fails "String#to_i with bases parses a String in base 17"
|
31
|
-
fails "String#to_i with bases parses a String in base 18"
|
32
|
-
fails "String#to_i with bases parses a String in base 19"
|
33
|
-
fails "String#to_i with bases parses a String in base 20"
|
34
|
-
fails "String#to_i with bases parses a String in base 21"
|
35
|
-
fails "String#to_i with bases parses a String in base 22"
|
36
|
-
fails "String#to_i with bases parses a String in base 23"
|
37
|
-
fails "String#to_i with bases parses a String in base 24"
|
38
|
-
fails "String#to_i with bases parses a String in base 25"
|
39
|
-
fails "String#to_i with bases parses a String in base 26"
|
40
|
-
fails "String#to_i with bases parses a String in base 27"
|
41
|
-
fails "String#to_i with bases parses a String in base 28"
|
42
|
-
fails "String#to_i with bases parses a String in base 29"
|
43
|
-
fails "String#to_i with bases parses a String in base 30"
|
44
|
-
fails "String#to_i with bases parses a String in base 31"
|
45
|
-
fails "String#to_i with bases parses a String in base 32"
|
46
|
-
fails "String#to_i with bases parses a String in base 33"
|
47
|
-
fails "String#to_i with bases parses a String in base 34"
|
48
|
-
fails "String#to_i with bases parses a String in base 35"
|
49
|
-
fails "String#to_i with bases parses a String in base 36"
|
50
|
-
|
51
|
-
fails "Fixnum#<< with n << m returns a Bignum == fixnum_min() * 2 when fixnum_min() << 1 and n < 0"
|
52
|
-
fails "Fixnum#<< with n << m returns a Bignum == fixnum_max() * 2 when fixnum_max() << 1 and n > 0"
|
53
|
-
fails "Fixnum#<< with n << m returns 0 when m < 0 and m is a Bignum"
|
54
|
-
fails "Fixnum#<< with n << m returns 0 when m < 0 and m == p where 2**p > n >= 2**(p-1)"
|
55
|
-
|
56
|
-
fails "Fixnum#>> with n >> m returns a Bignum == fixnum_max() * 2 when fixnum_max() >> -1 and n > 0"
|
57
|
-
fails "Fixnum#>> with n >> m returns a Bignum == fixnum_min() * 2 when fixnum_min() >> -1 and n < 0"
|
58
|
-
fails "Fixnum#>> with n >> m returns 0 when m is a Bignum"
|
59
|
-
end
|
@@ -1,10 +0,0 @@
|
|
1
|
-
opal_filter "method_added" do
|
2
|
-
fails "BasicObject#singleton_method_undefined is called when a method is removed on self"
|
3
|
-
fails "BasicObject#singleton_method_undefined is a private method"
|
4
|
-
fails "BasicObject#singleton_method_removed is called when a method is removed on self"
|
5
|
-
fails "BasicObject#singleton_method_removed is a private method"
|
6
|
-
fails "BasicObject#singleton_method_added is called when define_method is used in the singleton class"
|
7
|
-
fails "BasicObject#singleton_method_added is called when a method is defined in the singleton class"
|
8
|
-
fails "BasicObject#singleton_method_added is called when a method is defined on self"
|
9
|
-
fails "BasicObject#singleton_method_added is a private method"
|
10
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
opal_filter "{private,public,protected}_constant" do
|
2
|
-
fails "Module#public_constant marked constants in Object is defined? using ::Const form"
|
3
|
-
fails "Module#public_constant marked constants in Object can be accessed using ::Const form"
|
4
|
-
fails "Module#public_constant marked constants in a class is defined? with A::B form"
|
5
|
-
fails "Module#public_constant marked constants in a class can be accessed from outside the class"
|
6
|
-
fails "Module#public_constant marked constants in a module is defined? with A::B form"
|
7
|
-
fails "Module#public_constant marked constants in a module can be accessed from outside the module"
|
8
|
-
fails "Module#private_constant marked constants in Object is defined? through the normal search"
|
9
|
-
fails "Module#private_constant marked constants in Object is not defined? using ::Const form"
|
10
|
-
fails "Module#private_constant marked constants in Object cannot be accessed using ::Const form"
|
11
|
-
fails "Module#private_constant marked constants in a class is defined? from subclasses"
|
12
|
-
fails "Module#private_constant marked constants in a class is defined? from lexical scope"
|
13
|
-
fails "Module#private_constant marked constants in a class can be accessed from lexical scope"
|
14
|
-
fails "Module#private_constant marked constants in a class is defined? from the class itself"
|
15
|
-
fails "Module#private_constant marked constants in a class can be accessed from the class itself"
|
16
|
-
fails "Module#private_constant marked constants in a class is not defined? with A::B form"
|
17
|
-
fails "Module#private_constant marked constants in a class cannot be reopened as a class"
|
18
|
-
fails "Module#private_constant marked constants in a class cannot be reopened as a module"
|
19
|
-
fails "Module#private_constant marked constants in a class cannot be accessed from outside the class"
|
20
|
-
fails "Module#private_constant marked constants in a module is defined? from classes that include the module"
|
21
|
-
fails "Module#private_constant marked constants in a module is defined? from lexical scope"
|
22
|
-
fails "Module#private_constant marked constants in a module can be accessed from lexical scope"
|
23
|
-
fails "Module#private_constant marked constants in a module is defined? from the module itself"
|
24
|
-
fails "Module#private_constant marked constants in a module can be accessed from the module itself"
|
25
|
-
fails "Module#private_constant marked constants in a module is not defined? with A::B form"
|
26
|
-
fails "Module#private_constant marked constants in a module cannot be reopened as a class"
|
27
|
-
fails "Module#private_constant marked constants in a module cannot be reopened as a module"
|
28
|
-
fails "Module#private_constant marked constants in a module cannot be accessed from outside the module"
|
29
|
-
fails "Module#private_constant marked constants remain private even when updated"
|
30
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
opal_filter "Private methods" do
|
2
|
-
fails "Array#initialize is private"
|
3
|
-
fails "The defined? keyword when called with a method name having a module as a receiver returns nil if the method is private"
|
4
|
-
fails "Array#initialize_copy is private"
|
5
|
-
|
6
|
-
fails "BasicObject#initialize is a private instance method"
|
7
|
-
fails "BasicObject#method_missing is a private method"
|
8
|
-
fails "BasicObject#!= is a public instance method"
|
9
|
-
fails "BasicObject#! is a public instance method"
|
10
|
-
|
11
|
-
fails "Hash#initialize_copy is private"
|
12
|
-
fails "Hash#initialize is private"
|
13
|
-
|
14
|
-
fails "Struct#initialize is private"
|
15
|
-
|
16
|
-
fails "Defining an 'initialize' method sets the method's visibility to private"
|
17
|
-
fails "Defining an 'initialize_copy' method sets the method's visibility to private"
|
18
|
-
|
19
|
-
fails "Invoking a private getter method does not permit self as a receiver"
|
20
|
-
fails "The defined? keyword when called with a method name having a module as receiver returns nil if the method is private"
|
21
|
-
fails "The defined? keyword when called with a method name having a module as receiver returns nil if the method is protected"
|
22
|
-
|
23
|
-
fails "SimpleDelegator.new doesn't forward private method calls"
|
24
|
-
fails "SimpleDelegator.new doesn't forward private method calls even via send or __send__"
|
25
|
-
fails "SimpleDelegator.new forwards protected method calls"
|
26
|
-
|
27
|
-
fails "Set#initialize is private"
|
28
|
-
|
29
|
-
fails "Singleton.allocate is a private method"
|
30
|
-
fails "Singleton.new is a private method"
|
31
|
-
|
32
|
-
fails "The private keyword changes the visibility of the existing method in the subclass"
|
33
|
-
fails "The private keyword changes visiblity of previously called methods with same send/call site"
|
34
|
-
fails "The private keyword changes visibility of previously called method"
|
35
|
-
fails "The private keyword is overridden when a new class is opened"
|
36
|
-
fails "The private keyword marks following methods as being private"
|
37
|
-
|
38
|
-
fails "Class.inherited is called when marked as a public class method"
|
39
|
-
fails "Class#initialize is private"
|
40
|
-
|
41
|
-
fails "Math#atanh is a private instance method"
|
42
|
-
|
43
|
-
fails "Kernel has private instance method Array()"
|
44
|
-
fails "Kernel has private instance method Hash()"
|
45
|
-
fails "Kernel#Integer is a private method"
|
46
|
-
fails "Kernel#Float is a private method"
|
47
|
-
fails "Kernel#format is a private method"
|
48
|
-
fails "Kernel#sprintf is a private method"
|
49
|
-
fails "Kernel#String is a private method"
|
50
|
-
fails "Kernel#warn is a private method"
|
51
|
-
|
52
|
-
fails "Module#instance_methods makes a private Object instance method public in Kernel"
|
53
|
-
|
54
|
-
fails "String#initialize is a private method"
|
55
|
-
end
|