opal 0.8.1 → 0.9.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (331) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +2 -2
  3. data/.gitmodules +3 -3
  4. data/.jshintrc +17 -20
  5. data/.travis.yml +22 -11
  6. data/CHANGELOG.md +51 -1
  7. data/CODE_OF_CONDUCT.md +15 -0
  8. data/CONTRIBUTING.md +125 -9
  9. data/Gemfile +1 -1
  10. data/Guardfile +2 -2
  11. data/README.md +95 -29
  12. data/Rakefile +1 -1
  13. data/benchmark/benchmarks +103 -0
  14. data/benchmark/bm_array_flatten.rb +9 -0
  15. data/benchmark/bm_array_intersection_numbers.rb +7 -0
  16. data/benchmark/bm_array_intersection_objects.rb +7 -0
  17. data/benchmark/bm_array_intersection_strings.rb +7 -0
  18. data/benchmark/bm_array_join_ary.rb +9 -0
  19. data/benchmark/bm_array_minus_numbers.rb +7 -0
  20. data/benchmark/bm_array_minus_objects.rb +7 -0
  21. data/benchmark/bm_array_minus_strings.rb +7 -0
  22. data/benchmark/bm_array_union_numbers.rb +7 -0
  23. data/benchmark/bm_array_union_objects.rb +7 -0
  24. data/benchmark/bm_array_union_strings.rb +7 -0
  25. data/benchmark/bm_array_uniq_bang_numbers.rb +5 -0
  26. data/benchmark/bm_array_uniq_bang_objects.rb +5 -0
  27. data/benchmark/bm_array_uniq_bang_strings.rb +5 -0
  28. data/benchmark/bm_array_uniq_numbers.rb +5 -0
  29. data/benchmark/bm_array_uniq_objects.rb +5 -0
  30. data/benchmark/bm_array_uniq_strings.rb +5 -0
  31. data/benchmark/bm_dispatch_bind_table.rb +57 -0
  32. data/benchmark/bm_dispatch_code_gen.rb +65 -0
  33. data/benchmark/bm_dispatch_code_gen_if.rb +64 -0
  34. data/benchmark/bm_dispatch_hardcoded.rb +44 -0
  35. data/benchmark/bm_dispatch_send.rb +38 -0
  36. data/benchmark/bm_dispatch_send_table.rb +57 -0
  37. data/benchmark/bm_hash_assoc_object.rb +11 -0
  38. data/benchmark/bm_hash_assoc_string.rb +9 -0
  39. data/benchmark/bm_hash_clone_object.rb +9 -0
  40. data/benchmark/bm_hash_clone_string.rb +9 -0
  41. data/benchmark/bm_hash_delete_object.rb +11 -0
  42. data/benchmark/bm_hash_delete_string.rb +9 -0
  43. data/benchmark/bm_hash_each_key_object.rb +9 -0
  44. data/benchmark/bm_hash_each_key_string.rb +9 -0
  45. data/benchmark/bm_hash_each_object.rb +9 -0
  46. data/benchmark/bm_hash_each_string.rb +9 -0
  47. data/benchmark/bm_hash_each_value_object.rb +9 -0
  48. data/benchmark/bm_hash_each_value_string.rb +9 -0
  49. data/benchmark/bm_hash_element_reference_object.rb +11 -0
  50. data/benchmark/bm_hash_element_reference_string.rb +9 -0
  51. data/benchmark/bm_hash_element_set_object.rb +5 -0
  52. data/benchmark/bm_hash_element_set_string.rb +5 -0
  53. data/benchmark/bm_hash_equal_value_object.rb +14 -0
  54. data/benchmark/bm_hash_equal_value_string.rb +11 -0
  55. data/benchmark/bm_hash_fetch_object.rb +11 -0
  56. data/benchmark/bm_hash_fetch_string.rb +9 -0
  57. data/benchmark/bm_hash_flatten_object.rb +9 -0
  58. data/benchmark/bm_hash_flatten_string.rb +9 -0
  59. data/benchmark/bm_hash_has_key_object.rb +11 -0
  60. data/benchmark/bm_hash_has_key_string.rb +9 -0
  61. data/benchmark/bm_hash_has_value_object.rb +9 -0
  62. data/benchmark/bm_hash_has_value_string.rb +9 -0
  63. data/benchmark/bm_hash_hash_object.rb +9 -0
  64. data/benchmark/bm_hash_hash_string.rb +9 -0
  65. data/benchmark/bm_hash_inspect_object.rb +9 -0
  66. data/benchmark/bm_hash_inspect_string.rb +9 -0
  67. data/benchmark/bm_hash_invert_object.rb +9 -0
  68. data/benchmark/bm_hash_invert_string.rb +9 -0
  69. data/benchmark/bm_hash_keep_if_object.rb +9 -0
  70. data/benchmark/bm_hash_keep_if_string.rb +9 -0
  71. data/benchmark/bm_hash_key_object.rb +9 -0
  72. data/benchmark/bm_hash_key_string.rb +9 -0
  73. data/benchmark/bm_hash_keys_object.rb +9 -0
  74. data/benchmark/bm_hash_keys_string.rb +9 -0
  75. data/benchmark/bm_hash_literal_mixed_large.rb +3 -0
  76. data/benchmark/bm_hash_literal_mixed_small.rb +3 -0
  77. data/benchmark/bm_hash_literal_object_large.rb +4 -0
  78. data/benchmark/bm_hash_literal_object_small.rb +3 -0
  79. data/benchmark/bm_hash_literal_string_large.rb +4 -0
  80. data/benchmark/bm_hash_literal_string_small.rb +3 -0
  81. data/benchmark/bm_hash_merge_object.rb +22 -0
  82. data/benchmark/bm_hash_merge_string.rb +18 -0
  83. data/benchmark/bm_hash_rassoc_object.rb +9 -0
  84. data/benchmark/bm_hash_rassoc_string.rb +9 -0
  85. data/benchmark/bm_hash_rehash_object.rb +9 -0
  86. data/benchmark/bm_hash_rehash_string.rb +9 -0
  87. data/benchmark/bm_hash_reject_bang_object.rb +9 -0
  88. data/benchmark/bm_hash_reject_bang_string.rb +9 -0
  89. data/benchmark/bm_hash_reject_object.rb +9 -0
  90. data/benchmark/bm_hash_reject_string.rb +9 -0
  91. data/benchmark/bm_hash_replace_object.rb +18 -0
  92. data/benchmark/bm_hash_replace_string.rb +14 -0
  93. data/benchmark/bm_hash_select_bang_object.rb +9 -0
  94. data/benchmark/bm_hash_select_bang_string.rb +9 -0
  95. data/benchmark/bm_hash_select_object.rb +9 -0
  96. data/benchmark/bm_hash_select_string.rb +9 -0
  97. data/benchmark/bm_hash_shift_object.rb +10 -0
  98. data/benchmark/bm_hash_shift_string.rb +10 -0
  99. data/benchmark/bm_hash_to_a_object.rb +9 -0
  100. data/benchmark/bm_hash_to_a_string.rb +9 -0
  101. data/benchmark/bm_hash_to_h_object.rb +10 -0
  102. data/benchmark/bm_hash_to_h_string.rb +10 -0
  103. data/benchmark/bm_hash_values_object.rb +9 -0
  104. data/benchmark/bm_hash_values_string.rb +9 -0
  105. data/benchmark/run.rb +48 -0
  106. data/bin/opal-mspec +1 -1
  107. data/bin/opal-repl +4 -4
  108. data/docs/compiled_ruby.md +214 -56
  109. data/docs/configuring_gems.md +2 -2
  110. data/docs/faq.md +2 -2
  111. data/docs/getting_started.md +19 -2
  112. data/docs/jquery.md +5 -5
  113. data/docs/opal_parser.md +53 -0
  114. data/docs/unsupported_features.md +2 -2
  115. data/docs/upgrading.md +22 -0
  116. data/docs/using_sprockets.md +15 -0
  117. data/examples/rack/config.ru +13 -0
  118. data/examples/sinatra/config.ru +4 -5
  119. data/lib/mspec/opal/runner.rb +54 -11
  120. data/lib/opal.rb +1 -1
  121. data/lib/opal/builder.rb +1 -1
  122. data/lib/opal/builder_processors.rb +1 -1
  123. data/lib/opal/cli.rb +17 -13
  124. data/lib/opal/cli_options.rb +1 -1
  125. data/lib/opal/compiler.rb +12 -0
  126. data/lib/opal/config.rb +4 -0
  127. data/lib/opal/nodes/arglist.rb +5 -7
  128. data/lib/opal/nodes/call.rb +6 -1
  129. data/lib/opal/nodes/call_special.rb +74 -0
  130. data/lib/opal/nodes/def.rb +35 -28
  131. data/lib/opal/nodes/definitions.rb +3 -5
  132. data/lib/opal/nodes/for.rb +13 -0
  133. data/lib/opal/nodes/helpers.rb +15 -1
  134. data/lib/opal/nodes/if.rb +5 -5
  135. data/lib/opal/nodes/iter.rb +6 -1
  136. data/lib/opal/nodes/literal.rb +1 -1
  137. data/lib/opal/nodes/logic.rb +2 -2
  138. data/lib/opal/nodes/masgn.rb +1 -2
  139. data/lib/opal/nodes/module.rb +2 -1
  140. data/lib/opal/nodes/rescue.rb +10 -1
  141. data/lib/opal/nodes/scope.rb +8 -2
  142. data/lib/opal/nodes/singleton_class.rb +1 -1
  143. data/lib/opal/nodes/top.rb +11 -0
  144. data/lib/opal/nodes/variables.rb +4 -4
  145. data/lib/opal/parser.rb +21 -3
  146. data/lib/opal/parser/grammar.rb +3115 -2961
  147. data/lib/opal/parser/grammar.y +29 -6
  148. data/lib/opal/parser/lexer.rb +18 -8
  149. data/lib/opal/sprockets.rb +85 -0
  150. data/lib/opal/sprockets/processor.rb +11 -35
  151. data/lib/opal/sprockets/server.rb +3 -15
  152. data/lib/opal/version.rb +2 -2
  153. data/opal.gemspec +4 -4
  154. data/opal/README.md +9 -0
  155. data/opal/corelib/array.rb +433 -181
  156. data/opal/corelib/basic_object.rb +48 -4
  157. data/opal/corelib/boolean.rb +15 -6
  158. data/opal/corelib/class.rb +6 -5
  159. data/opal/corelib/comparable.rb +12 -0
  160. data/opal/corelib/complex.rb +282 -0
  161. data/opal/corelib/constants.rb +9 -0
  162. data/opal/corelib/enumerable.rb +83 -34
  163. data/opal/corelib/enumerator.rb +3 -1
  164. data/opal/corelib/error.rb +49 -10
  165. data/opal/corelib/file.rb +1 -0
  166. data/opal/corelib/hash.rb +353 -577
  167. data/opal/corelib/helpers.rb +20 -0
  168. data/opal/corelib/kernel.rb +114 -59
  169. data/opal/corelib/math.rb +470 -0
  170. data/opal/corelib/method.rb +11 -2
  171. data/opal/corelib/module.rb +96 -96
  172. data/opal/corelib/{nil_class.rb → nil.rb} +20 -1
  173. data/opal/corelib/number.rb +751 -0
  174. data/opal/corelib/numeric.rb +77 -437
  175. data/opal/corelib/proc.rb +81 -1
  176. data/opal/corelib/process.rb +27 -0
  177. data/opal/corelib/rational.rb +358 -0
  178. data/opal/corelib/regexp.rb +156 -27
  179. data/opal/corelib/runtime.js +724 -335
  180. data/opal/corelib/string.rb +93 -104
  181. data/opal/corelib/string/encoding.rb +177 -0
  182. data/opal/corelib/string/inheritance.rb +2 -0
  183. data/opal/corelib/struct.rb +105 -18
  184. data/opal/corelib/time.rb +267 -146
  185. data/opal/corelib/unsupported.rb +216 -0
  186. data/opal/corelib/variables.rb +0 -6
  187. data/opal/opal.rb +8 -22
  188. data/opal/opal/base.rb +9 -0
  189. data/opal/opal/mini.rb +17 -0
  190. data/spec/README.md +1 -1
  191. data/spec/filters/bugs/array.rb +38 -136
  192. data/spec/filters/bugs/{basic_object.rb → basicobject.rb} +14 -15
  193. data/spec/filters/bugs/class.rb +6 -12
  194. data/spec/filters/bugs/complex.rb +3 -0
  195. data/spec/filters/bugs/date.rb +162 -10
  196. data/spec/filters/bugs/enumerable.rb +31 -58
  197. data/spec/filters/bugs/enumerator.rb +42 -0
  198. data/spec/filters/bugs/exception.rb +66 -10
  199. data/spec/filters/bugs/float.rb +17 -0
  200. data/spec/filters/bugs/hash.rb +11 -97
  201. data/spec/filters/bugs/inheritance.rb +5 -0
  202. data/spec/filters/bugs/integer.rb +28 -0
  203. data/spec/filters/bugs/kernel.rb +304 -12
  204. data/spec/filters/bugs/language.rb +133 -399
  205. data/spec/filters/bugs/language_opal.rb +88 -0
  206. data/spec/filters/bugs/module.rb +203 -62
  207. data/spec/filters/bugs/numeric.rb +32 -0
  208. data/spec/filters/bugs/proc.rb +39 -0
  209. data/spec/filters/bugs/range.rb +148 -0
  210. data/spec/filters/bugs/regexp.rb +168 -0
  211. data/spec/filters/bugs/set.rb +46 -3
  212. data/spec/filters/bugs/singleton.rb +1 -2
  213. data/spec/filters/bugs/string.rb +59 -90
  214. data/spec/filters/bugs/strscan.rb +80 -0
  215. data/spec/filters/bugs/struct.rb +10 -20
  216. data/spec/filters/bugs/time.rb +17 -184
  217. data/spec/filters/bugs/unboundmethod.rb +22 -0
  218. data/spec/filters/unsupported/array.rb +163 -0
  219. data/spec/filters/unsupported/basicobject.rb +14 -0
  220. data/spec/filters/unsupported/bignum.rb +46 -0
  221. data/spec/filters/unsupported/class.rb +4 -0
  222. data/spec/filters/unsupported/delegator.rb +5 -0
  223. data/spec/filters/unsupported/enumerable.rb +11 -0
  224. data/spec/filters/unsupported/enumerator.rb +8 -9
  225. data/spec/filters/unsupported/fixnum.rb +14 -0
  226. data/spec/filters/unsupported/float.rb +41 -7
  227. data/spec/filters/unsupported/freeze.rb +45 -0
  228. data/spec/filters/unsupported/hash.rb +50 -0
  229. data/spec/filters/unsupported/integer.rb +3 -0
  230. data/spec/filters/unsupported/kernel.rb +31 -0
  231. data/spec/filters/unsupported/language.rb +17 -0
  232. data/spec/filters/unsupported/matchdata.rb +30 -0
  233. data/spec/filters/unsupported/math.rb +3 -0
  234. data/spec/filters/unsupported/module.rb +5 -3
  235. data/spec/filters/unsupported/pathname.rb +3 -0
  236. data/spec/filters/unsupported/privacy.rb +136 -0
  237. data/spec/filters/unsupported/proc.rb +3 -0
  238. data/spec/filters/unsupported/regexp.rb +59 -0
  239. data/spec/filters/unsupported/set.rb +4 -0
  240. data/spec/filters/unsupported/{marshal.rb → singleton.rb} +4 -2
  241. data/spec/filters/unsupported/{mutable_strings.rb → string.rb} +456 -336
  242. data/spec/filters/unsupported/struct.rb +3 -0
  243. data/spec/filters/unsupported/symbol.rb +5 -0
  244. data/spec/filters/unsupported/taint.rb +16 -0
  245. data/spec/filters/unsupported/thread.rb +5 -0
  246. data/spec/filters/unsupported/time.rb +197 -16
  247. data/spec/lib/cli_spec.rb +14 -4
  248. data/spec/lib/compiler_spec.rb +9 -1
  249. data/spec/lib/parser/call_spec.rb +18 -0
  250. data/spec/lib/parser/not_spec.rb +2 -8
  251. data/spec/lib/sprockets_spec.rb +24 -0
  252. data/spec/opal/core/array/intersection_spec.rb +38 -0
  253. data/spec/opal/core/array/minus_spec.rb +38 -0
  254. data/spec/opal/core/array/union_spec.rb +38 -0
  255. data/spec/opal/core/array/uniq_spec.rb +49 -0
  256. data/spec/opal/core/exception_spec.rb +7 -0
  257. data/spec/opal/core/fixtures/require_tree_with_dot/file 1.rb +1 -0
  258. data/spec/opal/core/fixtures/require_tree_with_dot/file 2.rb +1 -0
  259. data/spec/opal/core/fixtures/require_tree_with_dot/file 3.rb +1 -0
  260. data/spec/opal/core/fixtures/require_tree_with_dot/index.rb +3 -0
  261. data/spec/opal/core/hash/internals_spec.rb +332 -0
  262. data/spec/opal/core/helpers_spec.rb +14 -0
  263. data/spec/opal/core/kernel/freeze_spec.rb +1 -1
  264. data/spec/opal/core/kernel/raise_spec.rb +13 -0
  265. data/spec/opal/core/kernel/require_tree_spec.rb +9 -0
  266. data/spec/opal/core/language/class_spec.rb +55 -0
  267. data/spec/opal/core/language/fixtures/send.rb +1 -0
  268. data/spec/opal/core/language/keyword_arguments_spec.rb +11 -0
  269. data/spec/opal/core/language/send_spec.rb +5 -0
  270. data/spec/opal/core/method/to_proc_spec.rb +28 -0
  271. data/spec/opal/core/module/name_spec.rb +0 -17
  272. data/spec/opal/core/runtime/bridged_classes_spec.rb +2 -2
  273. data/spec/opal/core/runtime/eval_spec.rb +1 -1
  274. data/spec/opal/core/runtime/method_missing_spec.rb +6 -0
  275. data/spec/opal/core/runtime_spec.rb +51 -0
  276. data/spec/opal/stdlib/js_spec.rb +66 -0
  277. data/spec/opal/stdlib/native/hash_spec.rb +36 -0
  278. data/spec/rubyspecs +152 -273
  279. data/spec/spec_helper.rb +10 -11
  280. data/stdlib/base64.rb +9 -9
  281. data/stdlib/benchmark.rb +551 -4
  282. data/stdlib/console.rb +94 -0
  283. data/stdlib/date.rb +1 -1
  284. data/stdlib/encoding.rb +1 -170
  285. data/stdlib/js.rb +56 -0
  286. data/stdlib/json.rb +9 -14
  287. data/stdlib/math.rb +1 -370
  288. data/stdlib/native.rb +133 -63
  289. data/stdlib/nodejs/file.rb +5 -0
  290. data/stdlib/nodejs/fileutils.rb +13 -6
  291. data/stdlib/nodejs/node_modules/js-yaml/node_modules/argparse/README.md +1 -1
  292. data/stdlib/opal-parser.rb +1 -2
  293. data/stdlib/ostruct.rb +65 -6
  294. data/stdlib/pp.rb +2 -4
  295. data/stdlib/rbconfig.rb +1 -3
  296. data/stdlib/strscan.rb +164 -28
  297. data/tasks/benchmarking.rake +88 -0
  298. data/tasks/testing.rake +181 -55
  299. data/{lib/mspec/opal/special_calls.rb → tasks/testing/mspec_special_calls.rb} +1 -1
  300. data/{lib/mspec/opal/sprockets.js → tasks/testing/phantomjs1-sprockets.js} +17 -6
  301. data/test/opal/test_keyword.rb +590 -0
  302. data/vendored-minitest/minitest.rb +2 -2
  303. data/vendored-minitest/test/unit.rb +5 -0
  304. metadata +229 -62
  305. data/benchmarks/operators.rb +0 -11
  306. data/benchmarks/prova.js.rb +0 -13
  307. data/docs/libraries.md +0 -36
  308. data/lib/mspec/opal/new.html.erb +0 -1
  309. data/lib/mspec/opal/rake_task.rb +0 -248
  310. data/opal/corelib/match_data.rb +0 -128
  311. data/spec/filters/bugs/math.rb +0 -95
  312. data/spec/filters/bugs/nil.rb +0 -7
  313. data/spec/filters/bugs/opal.rb +0 -9
  314. data/spec/filters/bugs/regular_expressions.rb +0 -41
  315. data/spec/filters/bugs/stringscanner.rb +0 -33
  316. data/spec/filters/unsupported/encoding.rb +0 -102
  317. data/spec/filters/unsupported/frozen.rb +0 -92
  318. data/spec/filters/unsupported/hash_compare_by_identity.rb +0 -16
  319. data/spec/filters/unsupported/integer_size.rb +0 -59
  320. data/spec/filters/unsupported/method_added.rb +0 -10
  321. data/spec/filters/unsupported/private_constants.rb +0 -30
  322. data/spec/filters/unsupported/private_methods.rb +0 -55
  323. data/spec/filters/unsupported/random.rb +0 -4
  324. data/spec/filters/unsupported/rational_numbers.rb +0 -4
  325. data/spec/filters/unsupported/regular_expressions.rb +0 -137
  326. data/spec/filters/unsupported/ruby_exe.rb +0 -5
  327. data/spec/filters/unsupported/symbols.rb +0 -17
  328. data/spec/filters/unsupported/tainted.rb +0 -180
  329. data/spec/filters/unsupported/trusted.rb +0 -88
  330. data/stdlib/process.rb +0 -10
  331. data/tasks/documenting.rake +0 -37
@@ -1,4 +0,0 @@
1
- opal_filter "RNGs" do
2
- fails "Array#shuffle uses given random generator"
3
- fails "Array#shuffle uses default random generator"
4
- end
@@ -1,4 +0,0 @@
1
- opal_filter "rational_numbers" do
2
- fails "Kernel.Integer calls to_i on Rationals"
3
- fails "Kernel#Integer calls to_i on Rationals"
4
- end
@@ -1,137 +0,0 @@
1
- opal_filter "regular_expressions" do
2
- fails "MatchData#[Symbol] returns the corresponding named match when given a Symbol"
3
- fails "MatchData#[Symbol] returns the corresponding named match when given a String"
4
- fails "MatchData#[Symbol] returns the matching version of multiple corresponding named match"
5
- fails "MatchData#[Symbol] returns the last match when multiple named matches exist with the same name"
6
- fails "MatchData#[Symbol] returns nil on non-matching named matches"
7
- fails "MatchData#[Symbol] raises an IndexError if there is no named match corresponding to the Symbol"
8
- fails "MatchData#[Symbol] raises an IndexError if there is no named match corresponding to the String"
9
- fails "MatchData#[Symbol] returns matches in the String's encoding"
10
-
11
- fails "MatchData#begin returns the offset of the start of the nth element"
12
- fails "MatchData#begin returns nil when the nth match isn't found"
13
- fails "MatchData#begin returns the offset for multi byte strings"
14
- fails "MatchData#begin returns the offset for multi byte strings with unicode regexp"
15
-
16
- fails "MatchData#end returns the offset of the end of the nth element"
17
- fails "MatchData#end returns nil when the nth match isn't found"
18
- fails "MatchData#end returns the offset for multi byte strings"
19
- fails "MatchData#end returns the offset for multi byte strings with unicode regexp"
20
-
21
- fails "MatchData#names returns an Array"
22
- fails "MatchData#names sets each element to a String"
23
- fails "MatchData#names returns the names of the named capture groups"
24
- fails "MatchData#names returns [] if there were no named captures"
25
- fails "MatchData#names returns each name only once"
26
- fails "MatchData#names equals Regexp#names"
27
-
28
- fails "MatchData#offset returns a two element array with the begin and end of the nth match"
29
- fails "MatchData#offset returns [nil, nil] when the nth match isn't found"
30
- fails "MatchData#offset returns the offset for multi byte strings"
31
- fails "MatchData#offset returns the offset for multi byte strings with unicode regexp"
32
-
33
- fails "MatchData#regexp returns the pattern used in the match"
34
-
35
- fails "String#gsub with pattern and replacement replaces \\k named backreferences with the regexp's corresponding capture"
36
- fails "String#gsub with pattern and replacement doesn't freak out when replacing ^" #Only fails "Text\nFoo".gsub(/^/, ' ').should == " Text\n Foo"
37
- fails "String#gsub with pattern and replacement supports \\G which matches at the beginning of the remaining (non-matched) string"
38
- fails "String#gsub with pattern and replacement returns a copy of self with all occurrences of pattern replaced with replacement" #Only fails str.gsub(/\Ah\S+\s*/, "huh? ").should == "huh? homely world. hah!"
39
-
40
- fails "String#index with Regexp supports \\G which matches at the given start offset"
41
-
42
- fails "String#match matches \\G at the start of the string"
43
-
44
- fails "String#scan supports \\G which matches the end of the previous match / string start for first match"
45
-
46
- fails "String#sub with pattern, replacement supports \\G which matches at the beginning of the string"
47
-
48
- fails "Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 'u' option"
49
- fails "Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 'e' option"
50
- fails "Regexp#options includes Regexp::FIXEDENCODING for a Regexp literal with the 's' option"
51
- fails "Regexp#options does not include Regexp::FIXEDENCODING for a Regexp literal with the 'n' option"
52
- fails "Regexp#options includes Regexp::NOENCODING for a Regexp literal with the 'n' option"
53
-
54
- fails "Regexp.union returns a Regexp with the encoding of an ASCII-incompatible String argument"
55
- fails "Regexp.union returns a Regexp with the encoding of a String containing non-ASCII-compatible characters"
56
- fails "Regexp.union returns a Regexp with US-ASCII encoding if all arguments are ASCII-only"
57
- fails "Regexp.union returns a Regexp with the encoding of multiple non-conflicting ASCII-incompatible String arguments"
58
- fails "Regexp.union returns a Regexp with the encoding of multiple non-conflicting Strings containing non-ASCII-compatible characters"
59
- fails "Regexp.union returns a Regexp with the encoding of a String containing non-ASCII-compatible characters and another ASCII-only String"
60
- fails "Regexp.union returns a Regexp with UTF-8 if one part is UTF-8"
61
- fails "Regexp.union raises ArgumentError if the arguments include conflicting ASCII-incompatible Regexps"
62
- fails "Regexp.union raises ArgumentError if the arguments include conflicting fixed encoding Regexps"
63
- fails "Regexp.union raises ArgumentError if the arguments include a fixed encoding Regexp and a String containing non-ASCII-compatible characters in a different encoding"
64
- fails "Regexp.union raises ArgumentError if the arguments include a String containing non-ASCII-compatible characters and a fixed encoding Regexp in a different encoding"
65
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and an ASCII-only String"
66
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and an ASCII-only String"
67
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and an ASCII-only Regexp"
68
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and an ASCII-only Regexp"
69
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and a String containing non-ASCII-compatible characters in a different encoding"
70
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and a String containing non-ASCII-compatible characters in a different encoding"
71
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible String and a Regexp containing non-ASCII-compatible characters in a different encoding"
72
- fails "Regexp.union raises ArgumentError if the arguments include an ASCII-incompatible Regexp and a Regexp containing non-ASCII-compatible characters in a different encoding"
73
-
74
- fails "Regexp.new given a Regexp uses US_ASCII encoding if third argument is 'n' or 'none' (case insensitive) and only ascii characters"
75
- fails "Regexp.new given a Regexp uses ASCII_8BIT encoding if third argument is 'n' or 'none' (case insensitive) and non-ascii characters"
76
- fails "Regexp.new given a Regexp returns a Regexp with US-ASCII encoding if only 7-bit ASCII characters are present regardless of the input String's encoding"
77
- fails "Regexp.new given a Regexp returns a Regexp with source String having US-ASCII encoding if only 7-bit ASCII characters are present regardless of the input String's encoding"
78
- fails "Regexp.new given a Regexp returns a Regexp with US-ASCII encoding if UTF-8 escape sequences using only 7-bit ASCII are present"
79
- fails "Regexp.new given a Regexp returns a Regexp with source String having US-ASCII encoding if UTF-8 escape sequences using only 7-bit ASCII are present"
80
- fails "Regexp.new given a Regexp returns a Regexp with UTF-8 encoding if any UTF-8 escape sequences outside 7-bit ASCII are present"
81
- fails "Regexp.new given a Regexp returns a Regexp with source String having UTF-8 encoding if any UTF-8 escape sequences outside 7-bit ASCII are present"
82
- fails "Regexp.new given a Regexp returns a Regexp with the input String's encoding"
83
- fails "Regexp.new given a Regexp returns a Regexp with source String having the input String's encoding"
84
- fails "Regexp.new given a Regexp sets the encoding to UTF-8 if the Regexp literal has the 'u' option"
85
- fails "Regexp.new given a Regexp sets the encoding to EUC-JP if the Regexp literal has the 'e' option"
86
- fails "Regexp.new given a Regexp sets the encoding to Windows-31J if the Regexp literal has the 's' option"
87
- fails "Regexp.new given a Regexp sets the encoding to US-ASCII if the Regexp literal has the 'n' option and the source String is ASCII only"
88
- fails "Regexp.new given a Regexp sets the encoding to source String's encoding if the Regexp literal has the 'n' option and the source String is not ASCII only"
89
- fails "Regexp.new given a String uses US_ASCII encoding if third argument is 'n' or 'none' (case insensitive) and only ascii characters"
90
- fails "Regexp.new given a String uses ASCII_8BIT encoding if third argument is 'n' or 'none' (case insensitive) and non-ascii characters"
91
- fails "Regexp.new given a String returns a Regexp with US-ASCII encoding if only 7-bit ASCII characters are present regardless of the input String's encoding"
92
- fails "Regexp.new given a String returns a Regexp with source String having US-ASCII encoding if only 7-bit ASCII characters are present regardless of the input String's encoding"
93
- fails "Regexp.new given a String returns a Regexp with US-ASCII encoding if UTF-8 escape sequences using only 7-bit ASCII are present"
94
- fails "Regexp.new given a String returns a Regexp with source String having US-ASCII encoding if UTF-8 escape sequences using only 7-bit ASCII are present"
95
- fails "Regexp.new given a String returns a Regexp with UTF-8 encoding if any UTF-8 escape sequences outside 7-bit ASCII are present"
96
- fails "Regexp.new given a String returns a Regexp with source String having UTF-8 encoding if any UTF-8 escape sequences outside 7-bit ASCII are present"
97
- fails "Regexp.new given a String returns a Regexp with the input String's encoding"
98
- fails "Regexp.new given a String returns a Regexp with source String having the input String's encoding"
99
- fails "Regexp.new given a String sets the encoding to UTF-8 if the Regexp literal has the 'u' option"
100
- fails "Regexp.new given a String sets the encoding to EUC-JP if the Regexp literal has the 'e' option"
101
- fails "Regexp.new given a String sets the encoding to Windows-31J if the Regexp literal has the 's' option"
102
- fails "Regexp.new given a String sets the encoding to US-ASCII if the Regexp literal has the 'n' option and the source String is ASCII only"
103
- fails "Regexp.new given a String sets the encoding to source String's encoding if the Regexp literal has the 'n' option and the source String is not ASCII only"
104
- fails "Regexp.new given a String with escaped characters uses US_ASCII encoding if third argument is 'n' or 'none' (case insensitive) and only ascii characters"
105
- fails "Regexp.new given a String with escaped characters uses ASCII_8BIT encoding if third argument is 'n' or 'none' (case insensitive) and non-ascii characters"
106
- fails "Regexp.new given a String with escaped characters returns a Regexp with US-ASCII encoding if only 7-bit ASCII characters are present regardless of the input String's encoding"
107
- fails "Regexp.new given a String with escaped characters returns a Regexp with source String having US-ASCII encoding if only 7-bit ASCII characters are present regardless of the input String's encoding"
108
- fails "Regexp.new given a String with escaped characters returns a Regexp with US-ASCII encoding if UTF-8 escape sequences using only 7-bit ASCII are present"
109
- fails "Regexp.new given a String with escaped characters returns a Regexp with source String having US-ASCII encoding if UTF-8 escape sequences using only 7-bit ASCII are present"
110
- fails "Regexp.new given a String with escaped characters returns a Regexp with UTF-8 encoding if any UTF-8 escape sequences outside 7-bit ASCII are present"
111
- fails "Regexp.new given a String with escaped characters returns a Regexp with source String having UTF-8 encoding if any UTF-8 escape sequences outside 7-bit ASCII are present"
112
- fails "Regexp.new given a String with escaped characters returns a Regexp with the input String's encoding"
113
- fails "Regexp.new given a String with escaped characters returns a Regexp with source String having the input String's encoding"
114
- fails "Regexp.new given a String with escaped characters sets the encoding to UTF-8 if the Regexp literal has the 'u' option"
115
- fails "Regexp.new given a String with escaped characters sets the encoding to EUC-JP if the Regexp literal has the 'e' option"
116
- fails "Regexp.new given a String with escaped characters sets the encoding to Windows-31J if the Regexp literal has the 's' option"
117
- fails "Regexp.new given a String with escaped characters sets the encoding to US-ASCII if the Regexp literal has the 'n' option and the source String is ASCII only"
118
- fails "Regexp.new given a String with escaped characters sets the encoding to source String's encoding if the Regexp literal has the 'n' option and the source String is not ASCII only"
119
- fails "Regexp.new given a String ignores the third argument if it is 'e' or 'euc' (case-insensitive)"
120
- fails "Regexp.new given a String ignores the third argument if it is 's' or 'sjis' (case-insensitive)"
121
- fails "Regexp.new given a String ignores the third argument if it is 'u' or 'utf8' (case-insensitive)"
122
- fails "Regexp.new given a String with escaped characters accepts \\u{H} for a single Unicode codepoint"
123
- fails "Regexp.new given a String with escaped characters accepts \\u{HH} for a single Unicode codepoint"
124
- fails "Regexp.new given a String with escaped characters accepts \\u{HHH} for a single Unicode codepoint"
125
- fails "Regexp.new given a String with escaped characters accepts \\u{HHHH} for a single Unicode codepoint"
126
- fails "Regexp.new given a String with escaped characters accepts \\u{HHHHH} for a single Unicode codepoint"
127
- fails "Regexp.new given a String with escaped characters accepts \\u{HHHHHH} for a single Unicode codepoint"
128
- fails "Regexp.new given a String with escaped characters accepts characters followed by \\u{HHHH}"
129
- fails "Regexp.new given a String with escaped characters accepts \\u{HHHH} followed by characters"
130
- fails "Regexp.new given a String with escaped characters accepts escaped hexadecimal digits followed by \\u{HHHH}"
131
- fails "Regexp.new given a String with escaped characters accepts escaped octal digits followed by \\u{HHHH}"
132
- fails "Regexp.new given a String with escaped characters accepts a combination of escaped octal and hexadecimal digits and \\u{HHHH}"
133
- fails "Regexp.new given a String with escaped characters raises a RegexpError if less than four digits are given for \\uHHHH"
134
- fails "Regexp.new given a String with escaped characters raises a RegexpError if the \\u{} escape is empty"
135
- # regexp extended related
136
- fails "Regexp.new given a String accepts a Fixnum of two or more options ORed together as the second argument"
137
- end
@@ -1,5 +0,0 @@
1
- opal_filter "ruby_exe" do
2
- fails "The break statement in a lambda created at the toplevel returns a value when invoking from the toplevel"
3
- fails "The break statement in a lambda created at the toplevel returns a value when invoking from a method"
4
- fails "The break statement in a lambda created at the toplevel returns a value when invoking from a block"
5
- end
@@ -1,17 +0,0 @@
1
- # These specs fail because Opal does not have a separate Symbol class, and maps
2
- # them to Strings. Symbol#inspect is expected to != String#inspect.
3
- opal_filter "Symbols" do
4
- fails "A Symbol literal is a ':' followed by any number of valid characters"
5
- fails "A Symbol literal is a ':' followed by a single- or double-quoted string that may contain otherwise invalid characters"
6
- fails "A Symbol literal is converted to a literal, unquoted representation if the symbol contains only valid characters"
7
- fails "A Symbol literal can be created by the %s-delimited expression"
8
- fails "A Symbol literal can contain null in the string"
9
- fails "A Symbol literal can be an empty string"
10
-
11
- fails "String#each_line raises a TypeError when the separator is a symbol"
12
- fails "String#gsub with pattern and Hash ignores non-String keys"
13
- fails "String#index raises a TypeError if passed a Symbol"
14
- fails "String#lines raises a TypeError when the separator is a symbol"
15
- fails "String#sub with pattern and Hash ignores non-String keys"
16
- fails "String#upto does not work with symbols"
17
- end
@@ -1,180 +0,0 @@
1
- opal_filter 'tainted' do
2
- fails "Kernel#to_s returns a tainted result if self is tainted"
3
-
4
- fails "Array#* with a string with a tainted separator taints the result if the array has two or more elements"
5
- fails "Array#* with a string with a tainted separator does not taint the result if the array has only one element"
6
- fails "Array#* with a string with a tainted separator does not taint the result if the array is empty"
7
- fails "Array#* with an integer copies the taint status of the original array if the passed count is not 0"
8
- fails "Array#* with an integer copies the taint status of the original array even if the array is empty"
9
- fails "Array#* with an integer copies the taint status of the original array even if the passed count is 0"
10
-
11
- fails "Array#+ does not get infected even if an original array is tainted"
12
-
13
- fails "Array#concat is not infected by the other"
14
-
15
- fails "Array#clear keeps tainted status"
16
-
17
- fails "Array#clone copies taint status from the original"
18
-
19
- fails "Array#collect does not copy tainted status"
20
-
21
- fails "Array#collect! keeps tainted status"
22
-
23
- fails "Array#compact does not keep tainted status even if all elements are removed"
24
-
25
- fails "Array#compact! keeps tainted status even if all elements are removed"
26
-
27
- fails "Array#concat keeps tainted status"
28
- fails "Array#concat keeps the tainted status of elements"
29
-
30
- fails "Array#delete keeps tainted status"
31
-
32
- fails "Array#delete_at keeps tainted status"
33
-
34
- fails "Array#delete_if keeps tainted status"
35
-
36
- fails "Array#dup copies taint status from the original"
37
-
38
- fails "Array#flatten returns a tainted array if self is tainted"
39
-
40
- fails "Array#inspect taints the result if an element is tainted"
41
- fails "Array#inspect does not taint the result if the Array is tainted but empty"
42
- fails "Array#inspect taints the result if the Array is non-empty and tainted"
43
-
44
- fails "Array#join with a tainted separator taints the result if the array has two or more elements"
45
- fails "Array#join with a tainted separator does not taint the result if the array has only one element"
46
- fails "Array#join with a tainted separator does not taint the result if the array is empty"
47
- fails "Array#join taints the result if the result of coercing an element is tainted"
48
- fails "Array#join does not taint the result if the Array is tainted but empty"
49
- fails "Array#join taints the result if the Array is tainted and non-empty"
50
-
51
- fails "Array#pop passed a number n as an argument keeps taint status"
52
- fails "Array#pop passed a number n as an argument returns an untainted array even if the array is tainted"
53
- fails "Array#pop keeps taint status"
54
-
55
- fails "Array#map! keeps tainted status"
56
- fails "Array#map does not copy tainted status"
57
-
58
- fails "Array#shift passed a number n as an argument keeps taint status"
59
- fails "Array#shift passed a number n as an argument returns an untainted array even if the array is tainted"
60
-
61
- fails "Array#to_s taints the result if an element is tainted"
62
- fails "Array#to_s does not taint the result if the Array is tainted but empty"
63
- fails "Array#to_s taints the result if the Array is non-empty and tainted"
64
-
65
- fails "Hash#reject taints the resulting hash"
66
- fails "Hash#to_a returns a tainted array if self is tainted"
67
- fails "Hash#to_s returns a tainted string if self is tainted and not empty"
68
- fails "Hash#inspect returns a tainted string if self is tainted and not empty"
69
-
70
- fails "String#% always taints the result when the format string is tainted"
71
- fails "String#% taints result for %p when argument.inspect is tainted"
72
- fails "String#% taints result for %s when argument is tainted"
73
-
74
- fails "String#+ taints the result when self or other is tainted"
75
-
76
- fails "String#* always taints the result when self is tainted"
77
-
78
- fails "String#[] with index, length always taints resulting strings when self is tainted"
79
- fails "String#[] with Range always taints resulting strings when self is tainted"
80
- fails "String#[] with Regexp always taints resulting strings when self or regexp is tainted"
81
- fails "String#[] with Regexp, index always taints resulting strings when self or regexp is tainted"
82
- fails "String#[] with String taints resulting strings when other is tainted"
83
-
84
- fails "String#capitalize taints resulting string when self is tainted"
85
-
86
- fails "String#downcase taints result when self is tainted"
87
-
88
- fails "String#center with length, padding when padding is tainted and self is untainted returns a tainted string if and only if length is longer than self"
89
- fails "String#center with length, padding taints result when self or padstr is tainted"
90
-
91
- fails "String#chomp when passed a String does not taint the result when the argument is tainted"
92
- fails "String#chomp when passed a String taints the result if self is tainted"
93
- fails "String#chomp when passed '\\n' taints the result if self is tainted"
94
- fails "String#chomp when passed '' taints the result if self is tainted"
95
- fails "String#chomp when passed nil taints the result if self is tainted"
96
- fails "String#chomp when passed nil returns a copy of the String"
97
- fails "String#chomp when passed no argument taints the result if self is tainted"
98
-
99
- fails "String#chop taints result when self is tainted"
100
-
101
- fails "String#delete taints result when self is tainted"
102
-
103
- fails "String#each_line taints substrings that are passed to the block if self is tainted"
104
-
105
- fails "String#gsub with pattern and replacement taints the result if the original string or replacement is tainted"
106
- fails "String#gsub with pattern and Hash taints the result if the original string is tainted"
107
- fails "String#gsub with pattern and Hash taints the result if a hash value is tainted"
108
-
109
- fails "String#inspect taints the result if self is tainted"
110
-
111
- fails "String#lines taints substrings that are passed to the block if self is tainted"
112
-
113
- fails "String#ljust with length, padding taints result when self or padstr is tainted"
114
- fails "String#ljust with length, padding when padding is tainted and self is untainted returns a tainted string if and only if length is longer than self"
115
-
116
- fails "String#lstrip taints the result when self is tainted"
117
-
118
- fails "String#next taints the result if self is tainted"
119
-
120
- fails "String#reverse taints the result if self is tainted"
121
-
122
- fails "String#rjust with length, padding taints result when self or padstr is tainted"
123
- fails "String#rjust with length, padding when padding is tainted and self is untainted returns a tainted string if and only if length is longer than self"
124
-
125
- fails "String#rstrip taints the result when self is tainted"
126
-
127
- fails "String#scan taints the results if the String argument is tainted"
128
- fails "String#scan taints the results when passed a String argument if self is tainted"
129
- fails "String#scan taints the results if the Regexp argument is tainted"
130
- fails "String#scan taints the results when passed a Regexp argument if self is tainted"
131
- fails "String#scan with pattern and block taints the results if the String argument is tainted"
132
- fails "String#scan with pattern and block taints the results when passed a String argument if self is tainted"
133
- fails "String#scan with pattern and block taints the results if the Regexp argument is tainted"
134
- fails "String#scan with pattern and block taints the results when passed a Regexp argument if self is tainted"
135
-
136
- fails "String#slice with index, length always taints resulting strings when self is tainted"
137
- fails "String#slice with Range always taints resulting strings when self is tainted"
138
- fails "String#slice with Regexp always taints resulting strings when self or regexp is tainted"
139
- fails "String#slice with Regexp, index always taints resulting strings when self or regexp is tainted"
140
- fails "String#slice with String taints resulting strings when other is tainted"
141
-
142
- fails "String#split with String taints the resulting strings if self is tainted"
143
- fails "String#split with Regexp taints the resulting strings if self is tainted"
144
- fails "String#split with Regexp taints an empty string if self is tainted"
145
- fails "String#split with Regexp doesn't taints the resulting strings if the Regexp is tainted"
146
-
147
- fails "String#squeeze taints the result when self is tainted"
148
-
149
- fails "String#strip taints the result when self is tainted"
150
-
151
- fails "String#swapcase taints resulting string when self is tainted"
152
-
153
- fails "String#sub with pattern, replacement taints the result if the original string or replacement is tainted"
154
- fails "String#sub with pattern and block taints the result if the original string or replacement is tainted"
155
- fails "String#sub with pattern and Hash taints the result if a hash value is tainted"
156
- fails "String#sub with pattern and Hash taints the result if the original string is tainted"
157
-
158
- fails "String#succ taints the result if self is tainted"
159
-
160
- fails "String#to_s taints the result when self is tainted"
161
-
162
- fails "String#to_str taints the result when self is tainted"
163
-
164
- fails "String#tr taints the result when self is tainted"
165
-
166
- fails "String#tr_s taints the result when self is tainted"
167
-
168
- fails "String#upcase taints result when self is tainted"
169
-
170
- fails "Pathname.new is tainted if path is tainted"
171
-
172
- fails "Enumerable#entries returns a tainted array if self is tainted"
173
-
174
- fails "Enumerable#group_by returns a tainted hash if self is tainted"
175
-
176
- fails "Enumerable#to_a returns a tainted array if self is tainted"
177
-
178
- fails "MatchData#post_match keeps taint status from the source string"
179
- fails "MatchData#pre_match keeps taint status from the source string"
180
- end
@@ -1,88 +0,0 @@
1
- opal_filter "Object#trusted/untrusted" do
2
- fails "Kernel#to_s returns an untrusted result if self is untrusted"
3
-
4
- fails "Array#+ does not infected even if an original array is untrusted"
5
-
6
- fails "Array#* with an integer copies the untrusted status of the original array if the passed count is not 0"
7
- fails "Array#* with an integer copies the untrusted status of the original array even if the array is empty"
8
- fails "Array#* with an integer copies the untrusted status of the original array even if the passed count is 0"
9
- fails "Array#* with a string with an untrusted separator untrusts the result if the array has two or more elements"
10
- fails "Array#* with a string with an untrusted separator does not untrust the result if the array has only one element"
11
- fails "Array#* with a string with an untrusted separator does not untrust the result if the array is empty"
12
-
13
- fails "Array#delete keeps untrusted status"
14
-
15
- fails "Array#delete_if keeps untrusted status"
16
-
17
- fails "Array#delete_at keeps untrusted status"
18
-
19
- fails "Array#clear keeps untrusted status"
20
-
21
- fails "Array#clone copies untrusted status from the original"
22
-
23
- fails "Array#collect does not copy untrusted status"
24
-
25
- fails "Array#compact does not keep untrusted status even if all elements are removed"
26
-
27
- fails "Array#compact! keeps untrusted status even if all elements are removed"
28
-
29
- fails "Array#collect! keeps untrusted status"
30
-
31
- fails "Array#concat keeps untrusted status"
32
- fails "Array#concat is not infected untrustedness by the other"
33
- fails "Array#concat keeps the untrusted status of elements"
34
-
35
- fails "Array#dup copies untrusted status from the original"
36
-
37
- fails "Array#flatten returns an untrusted array if self is untrusted"
38
-
39
- fails "Array#inspect untrusts the result if an element is untrusted"
40
- fails "Array#inspect does not untrust the result if the Array is untrusted but empty"
41
- fails "Array#inspect untrusts the result if the Array is untrusted"
42
-
43
- fails "Array#join with an untrusted separator untrusts the result if the array has two or more elements"
44
- fails "Array#join with an untrusted separator does not untrust the result if the array has only one element"
45
- fails "Array#join with an untrusted separator does not untrust the result if the array is empty"
46
- fails "Array#join untrusts the result if the result of coercing an element is untrusted"
47
- fails "Array#join does not untrust the result if the Array is untrusted but empty"
48
- fails "Array#join untrusts the result if the Array is untrusted and non-empty"
49
-
50
- fails "Array#map does not copy untrusted status"
51
-
52
- fails "Array#pop passed a number n as an argument keeps untrusted status"
53
- fails "Array#pop passed a number n as an argument returns a trusted array even if the array is untrusted"
54
- fails "Array#pop keeps untrusted status"
55
-
56
- fails "Array#map! keeps untrusted status"
57
-
58
- fails "Array#to_s untrusts the result if an element is untrusted"
59
- fails "Array#to_s does not untrust the result if the Array is untrusted but empty"
60
- fails "Array#to_s untrusts the result if the Array is untrusted"
61
-
62
- fails "Enumerable#to_a returns an untrusted array if self is untrusted"
63
-
64
- fails "Enumerable#entries returns an untrusted array if self is untrusted"
65
-
66
- fails "Enumerable#group_by returns an untrusted hash if self is untrusted"
67
-
68
- fails "Hash#inspect returns an untrusted string if self is untrusted and not empty"
69
-
70
- fails "Hash#to_a returns an untrusted array if self is untrusted"
71
-
72
- fails "Hash#to_s returns an untrusted string if self is untrusted and not empty"
73
-
74
- fails "String#chop untrusts result when self is untrusted"
75
-
76
- fails "String#gsub with pattern and replacement untrusts the result if the original string or replacement is untrusted"
77
- fails "String#gsub with pattern and Hash untrusts the result if the original string is untrusted"
78
- fails "String#gsub with pattern and Hash untrusts the result if a hash value is untrusted"
79
- fails "String#gsub with pattern and block untrusts the result if the original string or replacement is untrusted"
80
-
81
- fails "String#inspect untrusts the result if self is untrusted"
82
-
83
- fails "String#sub with pattern and Hash untrusts the result if the original string is untrusted"
84
- fails "String#sub with pattern and Hash untrusts the result if a hash value is untrusted"
85
-
86
- fails "MatchData#pre_match keeps untrusted status from the source string"
87
- fails "MatchData#post_match keeps untrusted status from the source string"
88
- end
data/stdlib/process.rb DELETED
@@ -1,10 +0,0 @@
1
- class Process
2
- def self.pid
3
- 0
4
- end
5
- end
6
-
7
- class Signal
8
- def self.trap(*)
9
- end
10
- end