|
1 | 1 | opal_filter 'tainted' do
|
2 |
| - fails "Array#clear keeps tainted status" |
3 |
| - fails "Array#compact! keeps tainted status even if all elements are removed" |
4 |
| - fails "Array#delete_at keeps tainted status" |
5 |
| - fails "Array#delete_if keeps tainted status" |
6 |
| - fails "Array#delete keeps tainted status" |
7 |
| - fails "Array#shift passed a number n as an argument keeps taint status" |
8 |
| - fails "Array#shift passed a number n as an argument returns an untainted array even if the array is tainted" |
9 |
| - fails "Array#pop passed a number n as an argument keeps taint status" |
10 |
| - fails "Array#pop passed a number n as an argument returns an untainted array even if the array is tainted" |
11 |
| - fails "Array#pop keeps taint status" |
12 |
| - fails "Array#+ does not get infected even if an original array is tainted" |
| 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" |
13 | 7 | fails "Array#* with an integer copies the taint status of the original array if the passed count is not 0"
|
14 | 8 | fails "Array#* with an integer copies the taint status of the original array even if the array is empty"
|
15 | 9 | fails "Array#* with an integer copies the taint status of the original array even if the passed count is 0"
|
16 |
| - fails "Array#compact does not keep tainted status even if all elements are removed" |
17 |
| - fails "Array#map! keeps tainted status" |
18 |
| - fails "Array#map does not copy tainted status" |
| 10 | + |
| 11 | + fails "Array#+ does not get infected even if an original array is tainted" |
| 12 | + |
| 13 | + fails "Array#clear keeps tainted status" |
| 14 | + |
19 | 15 | fails "Array#clone copies taint status from the original"
|
20 |
| - fails "Array#collect! keeps tainted status" |
| 16 | + |
21 | 17 | fails "Array#collect does not copy tainted status"
|
| 18 | + |
| 19 | + fails "Array#collect! keeps tainted status" |
| 20 | + |
| 21 | + fails "Array#compact does not keep tainted status even if all elements are removed" |
| 22 | + |
| 23 | + fails "Array#compact! keeps tainted status even if all elements are removed" |
| 24 | + |
22 | 25 | fails "Array#concat keeps tainted status"
|
23 | 26 | fails "Array#concat keeps the tainted status of elements"
|
| 27 | + |
| 28 | + fails "Array#delete keeps tainted status" |
| 29 | + |
| 30 | + fails "Array#delete_at keeps tainted status" |
| 31 | + |
| 32 | + fails "Array#delete_if keeps tainted status" |
| 33 | + |
24 | 34 | fails "Array#dup copies taint status from the original"
|
| 35 | + |
25 | 36 | fails "Array#inspect taints the result if an element is tainted"
|
26 | 37 | fails "Array#inspect does not taint the result if the Array is tainted but empty"
|
27 | 38 | fails "Array#inspect taints the result if the Array is non-empty and tainted"
|
28 |
| - fails "Array#to_s taints the result if an element is tainted" |
29 |
| - fails "Array#to_s does not taint the result if the Array is tainted but empty" |
30 |
| - fails "Array#to_s taints the result if the Array is non-empty and tainted" |
| 39 | + |
31 | 40 | fails "Array#join with a tainted separator taints the result if the array has two or more elements"
|
32 | 41 | fails "Array#join with a tainted separator does not taint the result if the array has only one element"
|
33 | 42 | fails "Array#join with a tainted separator does not taint the result if the array is empty"
|
34 | 43 | fails "Array#join taints the result if the result of coercing an element is tainted"
|
35 | 44 | fails "Array#join does not taint the result if the Array is tainted but empty"
|
36 | 45 | fails "Array#join taints the result if the Array is tainted and non-empty"
|
37 |
| - fails "Array#* with a string with a tainted separator taints the result if the array has two or more elements" |
38 |
| - fails "Array#* with a string with a tainted separator does not taint the result if the array has only one element" |
39 |
| - fails "Array#* with a string with a tainted separator does not taint the result if the array is empty" |
40 | 46 |
|
41 |
| - fails "Hash#reject taints the resulting hash" |
| 47 | + fails "Array#pop passed a number n as an argument keeps taint status" |
| 48 | + fails "Array#pop passed a number n as an argument returns an untainted array even if the array is tainted" |
| 49 | + fails "Array#pop keeps taint status" |
42 | 50 |
|
43 |
| - fails "Kernel#to_s returns a tainted result if self is tainted" |
| 51 | + fails "Array#map! keeps tainted status" |
| 52 | + fails "Array#map does not copy tainted status" |
44 | 53 |
|
45 |
| - fails "String#upcase taints result when self is tainted" |
46 |
| - fails "String#to_s taints the result when self is tainted" |
47 |
| - fails "String#to_str taints the result when self is tainted" |
48 |
| - fails "String#swapcase taints resulting string when self is tainted" |
49 |
| - fails "String#reverse taints the result if self is tainted" |
| 54 | + fails "Array#shift passed a number n as an argument keeps taint status" |
| 55 | + fails "Array#shift passed a number n as an argument returns an untainted array even if the array is tainted" |
| 56 | + |
| 57 | + fails "Array#to_s taints the result if an element is tainted" |
| 58 | + fails "Array#to_s does not taint the result if the Array is tainted but empty" |
| 59 | + fails "Array#to_s taints the result if the Array is non-empty and tainted" |
| 60 | + |
| 61 | + fails "Hash#reject taints the resulting hash" |
50 | 62 |
|
51 |
| - fails "Pathname.new is tainted if path is tainted" |
52 |
| - fails "String#downcase taints result when self is tainted" |
53 | 63 | fails "String#capitalize taints resulting string when self is tainted"
|
| 64 | + |
| 65 | + fails "String#downcase taints result when self is tainted" |
| 66 | + |
54 | 67 | 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"
|
55 | 68 | fails "String#center with length, padding taints result when self or padstr is tainted"
|
| 69 | + |
56 | 70 | fails "String#chomp when passed a String does not taint the result when the argument is tainted"
|
57 | 71 | fails "String#chomp when passed a String taints the result if self is tainted"
|
58 | 72 | fails "String#chomp when passed '\\n' taints the result if self is tainted"
|
59 | 73 | fails "String#chomp when passed '' taints the result if self is tainted"
|
60 | 74 | fails "String#chomp when passed nil taints the result if self is tainted"
|
61 | 75 | fails "String#chomp when passed nil returns a copy of the String"
|
62 | 76 | fails "String#chomp when passed no argument taints the result if self is tainted"
|
| 77 | + |
| 78 | + fails "String#chop taints result when self is tainted" |
| 79 | + |
| 80 | + fails "String#reverse taints the result if self is tainted" |
| 81 | + |
| 82 | + fails "String#swapcase taints resulting string when self is tainted" |
| 83 | + |
| 84 | + fails "String#to_s taints the result when self is tainted" |
| 85 | + |
| 86 | + fails "String#to_str taints the result when self is tainted" |
| 87 | + |
| 88 | + fails "String#upcase taints result when self is tainted" |
| 89 | + |
| 90 | + fails "Pathname.new is tainted if path is tainted" |
63 | 91 | end
|
0 commit comments