Skip to content

Commit

Permalink
Showing 43 changed files with 152 additions and 0 deletions.
17 changes: 17 additions & 0 deletions spec/truffle/tags/core/argf/read_nonblock_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
slow:ARGF.read_nonblock reads a number of bytes from stdin
slow:ARGF.read_nonblock reads up to the given bytes from STDIN
slow:ARGF.read_nonblock reads up to the given bytes from a file when a file and STDIN are present
fails:ARGF.read_nonblock treats second nil argument as no output buffer
fails:ARGF.read_nonblock treats second argument as an output buffer
fails:ARGF.read_nonblock clears output buffer before appending to it
fails:ARGF.read_nonblock reads a number of bytes from the first file
fails:ARGF.read_nonblock reads from a single file consecutively
fails:ARGF.read_nonblock reads a number of bytes from stdin
fails:ARGF.read_nonblock reads the contents of a special device file
fails:ARGF.read_nonblock reads up to the given amount of bytes
fails:ARGF.read_nonblock reads up to the given bytes from STDIN
fails:ARGF.read_nonblock reads up to the given bytes from a file when a file and STDIN are present
fails:ARGF.read_nonblock raises IO::EAGAINWaitReadable when STDIN is empty
fails:ARGF.read_nonblock returns :wait_readable when the :exception is set to false
fails:ARGF.read_nonblock when using multiple files reads up to the given amount of bytes from the first file
fails:ARGF.read_nonblock when using multiple files returns an empty String when reading after having read the first file in its entirety
1 change: 1 addition & 0 deletions spec/truffle/tags/core/argf/read_tags.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
slow:ARGF.read reads the contents of stdin
slow:ARGF.read reads a number of bytes from stdin
slow:ARGF.read reads the contents of one file and stdin
fails:ARGF.read clears output buffer before appending to it
15 changes: 15 additions & 0 deletions spec/truffle/tags/core/argf/readpartial_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
slow:ARGF.readpartial reads a number of bytes from stdin
slow:ARGF.readpartial raises an EOFError if the exception was raised while reading STDIN
fails:ARGF.readpartial treats second nil argument as no output buffer
fails:ARGF.readpartial treats second argument as an output buffer
fails:ARGF.readpartial clears output buffer before appending to it
fails:ARGF.readpartial reads a number of bytes from the first file
fails:ARGF.readpartial reads from a single file consecutively
fails:ARGF.readpartial reads a number of bytes from stdin
fails:ARGF.readpartial reads the contents of a special device file
fails:ARGF.readpartial raises an ArgumentError if called without a maximum read length
fails:ARGF.readpartial reads maximum number of bytes from one file at a time
fails:ARGF.readpartial clears output buffer even if EOFError is raised because @argf is at end
fails:ARGF.readpartial returns an empty string if EOFError is raised while reading any but the last file
fails:ARGF.readpartial raises an EOFError if the exception was raised while reading the last file
fails:ARGF.readpartial raises an EOFError if the exception was raised while reading STDIN
4 changes: 4 additions & 0 deletions spec/truffle/tags/core/array/dig_tags.txt
Original file line number Diff line number Diff line change
@@ -3,3 +3,7 @@ fails:Array#dig recurses array elements
fails:Array#dig raises without any args
fails:Array#dig calls #dig on the result of #at with the remaining arguments
fails:Array#dig raises a TypeError for a non-numeric index
fails:Array#dig returns the nested value specified if the sequence includes a key
fails:Array#dig raises a TypeError if any intermediate step does not respond to #dig
fails:Array#dig raises an ArgumentError if no arguments provided
fails:Array#dig returns nil if any intermediate step is nil
1 change: 1 addition & 0 deletions spec/truffle/tags/core/array/product_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Array#product when given a block returns self
1 change: 1 addition & 0 deletions spec/truffle/tags/core/basicobject/method_missing_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:BasicObject#method_missing for an instance sets the receiver of the raised NoMethodError
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fails:Binding#local_variable_defined? returns false when a variable is not defined
fails:Binding#local_variable_defined? returns true when a regular local variable is defined
fails:Binding#local_variable_defined? returns true when a local variable is defined using eval()
fails:Binding#local_variable_defined? returns true when a local variable is defined using Binding#local_variable_set
fails:Binding#local_variable_defined? returns true when a local variable is defined in a parent scope
fails:Binding#local_variable_defined? allows usage of a String as the variable name
fails:Binding#local_variable_defined? allows usage of an object responding to #to_str as the variable name
2 changes: 2 additions & 0 deletions spec/truffle/tags/core/binding/local_variable_set_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:Binding#local_variable_set sets a local variable using a String as the variable name
fails:Binding#local_variable_set sets a local variable using an object responding to #to_str as the variable name
1 change: 1 addition & 0 deletions spec/truffle/tags/core/enumerable/count_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Enumerable#count when each yields multiple values accepts an argument for comparison using ==
1 change: 1 addition & 0 deletions spec/truffle/tags/core/enumerable/first_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Enumerable#first returns a gathered array from yield parameters
1 change: 1 addition & 0 deletions spec/truffle/tags/core/enumerable/slice_after_tags.txt
Original file line number Diff line number Diff line change
@@ -4,3 +4,4 @@ fails:Enumerable#slice_after when given an argument and no block doesn't yield a
fails:Enumerable#slice_after when given an argument and no block uses standard boolean as a test
fails:Enumerable#slice_after when given a block and no argument calls the block to determine when to yield
fails:Enumerable#slice_after when given a block and an argument raises an ArgumentError
fails:when an iterator method yields more than one value processes all yielded values
1 change: 1 addition & 0 deletions spec/truffle/tags/core/enumerable/slice_before_tags.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
fails:Enumerable#slice_before when given a block does not accept arguments
fails:Enumerable#slice_before when an iterator method yields more than one value processes all yielded values
1 change: 1 addition & 0 deletions spec/truffle/tags/core/enumerable/slice_when_tags.txt
Original file line number Diff line number Diff line change
@@ -2,3 +2,4 @@ fails:Enumerable#slice_when when given a block returns an enumerator
fails:Enumerable#slice_when when given a block splits chunks between adjacent elements i and j where the block returns true
fails:Enumerable#slice_when when given a block calls the block for length of the receiver enumerable minus one times
fails:Enumerable#slice_when when not given a block raises an ArgumentError
fails:when an iterator method yields more than one value processes all yielded values
1 change: 1 addition & 0 deletions spec/truffle/tags/core/enumerable/sort_by_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:Enumerable#sort_by returns an array of elements when a block is supplied and #map returns an enumerable
9 changes: 9 additions & 0 deletions spec/truffle/tags/core/enumerator/lazy/grep_v_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
fails:Enumerator::Lazy#grep_v requires an argument
fails:Enumerator::Lazy#grep_v returns a new instance of Enumerator::Lazy
fails:Enumerator::Lazy#grep_v sets #size to nil
fails:Enumerator::Lazy#grep_v calls the block with a gathered array when yield with multiple arguments
fails:Enumerator::Lazy#grep_v when the returned lazy enumerator is evaluated by Enumerable#first stops after specified times when not given a block
fails:Enumerator::Lazy#grep_v when the returned lazy enumerator is evaluated by Enumerable#first stops after specified times when given a block
fails:Enumerator::Lazy#grep_v on a nested Lazy sets #size to nil
fails:Enumerator::Lazy#grep_v on a nested Lazy when the returned lazy enumerator is evaluated by Enumerable#first stops after specified times when not given a block
fails:Enumerator::Lazy#grep_v on a nested Lazy when the returned lazy enumerator is evaluated by Enumerable#first stops after specified times when given a block
1 change: 1 addition & 0 deletions spec/truffle/tags/core/env/each_pair_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:ENV.each_pair with encoding transcodes from the locale encoding to Encoding.default_internal if set
1 change: 1 addition & 0 deletions spec/truffle/tags/core/env/each_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:ENV.each with encoding transcodes from the locale encoding to Encoding.default_internal if set
7 changes: 7 additions & 0 deletions spec/truffle/tags/core/file/mkfifo_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fails:File.mkfifo creates a FIFO file at the passed path
fails:File.mkfifo creates a FIFO file with passed mode & ~umask
fails:File.mkfifo creates a FIFO file with a default mode of 0666 & ~umask
fails:File.mkfifo returns 0 after creating the FIFO file
fails:File.mkfifo when path passed responds to :to_path creates a FIFO file at the path specified
fails:File.mkfifo when path passed is not a String value raises a TypeError
fails:File.mkfifo when path does not exist raises an Errno::ENOENT exception
4 changes: 4 additions & 0 deletions spec/truffle/tags/core/hash/dig_tags.txt
Original file line number Diff line number Diff line change
@@ -5,3 +5,7 @@ fails:Hash#dig handles type-mixed deep digging
fails:Hash#dig returns #[] with one arg
fails:Hash#dig raises TypeError if an intermediate element does not respond to #dig
fails:Hash#dig calls #dig on the result of #[] with the remaining arguments
fails:Hash#dig returns the nested value specified by the sequence of keys
fails:Hash#dig returns the nested value specified if the sequence includes an index
fails:Hash#dig returns nil if any intermediate step is nil
fails:Hash#dig raises an ArgumentError if no arguments provided
6 changes: 6 additions & 0 deletions spec/truffle/tags/core/hash/gt_tags.txt
Original file line number Diff line number Diff line change
@@ -2,3 +2,9 @@ fails:Hash#> returns false when receiver size is smaller than argument
fails:Hash#> returns false when receiver size is the same as argument
fails:Hash#> returns true when argument is a subset of receiver
fails:Hash#> returns false when keys match but values don't
fails:Hash#> raises a TypeError if the right operand is not a hash
fails:Hash#> returns false if both hashes have the same keys but different values
fails:Hash#> returns true if the other hash is a subset of self
fails:Hash#> returns false if the other hash is not a subset of self
fails:Hash#> converts the right operand to a hash before comparing
fails:Hash#> returns false if both hashes are identical
6 changes: 6 additions & 0 deletions spec/truffle/tags/core/hash/gte_tags.txt
Original file line number Diff line number Diff line change
@@ -2,3 +2,9 @@ fails:Hash#>= returns false when receiver size is smaller than argument
fails:Hash#>= returns false when argument is not a subset or not equals to receiver
fails:Hash#>= returns true when argument is a subset of receiver or equals to receiver
fails:Hash#>= returns false when keys match but values don't
fails:Hash#>= raises a TypeError if the right operand is not a hash
fails:Hash#>= returns false if both hashes have the same keys but different values
fails:Hash#>= returns true if the other hash is a subset of self
fails:Hash#>= returns false if the other hash is not a subset of self
fails:Hash#>= converts the right operand to a hash before comparing
fails:Hash#>= returns true if both hashes are identical
6 changes: 6 additions & 0 deletions spec/truffle/tags/core/hash/lt_tags.txt
Original file line number Diff line number Diff line change
@@ -2,3 +2,9 @@ fails:Hash#< returns false when receiver size is larger than argument
fails:Hash#< returns false when receiver size is the same as argument
fails:Hash#< returns true when receiver is a subset of argument
fails:Hash#< returns false when keys match but values don't
fails:Hash#< raises a TypeError if the right operand is not a hash
fails:Hash#< returns false if both hashes have the same keys but different values
fails:Hash#< returns true if self is a subset of the other hash
fails:Hash#< returns false if self is not a subset of the other hash
fails:Hash#< converts the right operand to a hash before comparing
fails:Hash#< returns false if both hashes are identical
6 changes: 6 additions & 0 deletions spec/truffle/tags/core/hash/lte_tags.txt
Original file line number Diff line number Diff line change
@@ -2,3 +2,9 @@ fails:Hash#<= returns false when receiver size is larger than argument
fails:Hash#<= returns false when receiver size is the same as argument
fails:Hash#<= returns true when receiver is a subset of argument or equals to argument
fails:Hash#<= returns false when keys match but values don't
fails:Hash#<= raises a TypeError if the right operand is not a hash
fails:Hash#<= returns false if both hashes have the same keys but different values
fails:Hash#<= returns true if self is a subset of the other hash
fails:Hash#<= returns false if self is not a subset of the other hash
fails:Hash#<= converts the right operand to a hash before comparing
fails:Hash#<= returns true if both hashes are identical
1 change: 1 addition & 0 deletions spec/truffle/tags/core/hash/to_proc_tags.txt
Original file line number Diff line number Diff line change
@@ -3,3 +3,4 @@ fails:Hash#to_proc the returned proc with a stored key returns the paired value
fails:Hash#to_proc the returned proc with no stored key returns nil
fails:Hash#to_proc the returned proc with no stored key when the hash has a default value returns the default value
fails:Hash#to_proc the returned proc with no stored key when the hash has a default proc returns an evaluated value from the default proc
fails:Hash#to_proc the returned proc raises an ArgumentError when calling #call on the Proc with no arguments
2 changes: 2 additions & 0 deletions spec/truffle/tags/core/io/close_read_tags.txt
Original file line number Diff line number Diff line change
@@ -6,3 +6,5 @@ fails:IO#close_read closes the stream if it is neither writable nor duplexed
fails:IO#close_read raises IOError on closed stream
fails:IO#close_read doesn't raise an IOError on subsequent invocations
fails:IO#close_read doesn't raise IOError on closed stream
fails:IO#close_read does nothing on subsequent invocations
fails:IO#close_read does nothing on closed stream
1 change: 1 addition & 0 deletions spec/truffle/tags/core/io/close_tags.txt
Original file line number Diff line number Diff line change
@@ -2,3 +2,4 @@ fails:IO#close on an IO.popen stream clears #pid
fails:IO#close on an IO.popen stream sets $?
fails:IO#close on an IO.popen stream waits for the child to exit
fails:IO#close does not raise anything when self was already closed
fails:IO#close does nothing if already closed
2 changes: 2 additions & 0 deletions spec/truffle/tags/core/io/close_write_tags.txt
Original file line number Diff line number Diff line change
@@ -7,3 +7,5 @@ fails:IO#close_write flushes and closes the write stream
fails:IO#close_write raises IOError on closed stream
fails:IO#close_write doesn't raise an IOError on subsequent invocations
fails:IO#close_write doesn't raise IOError on closed stream
fails:IO#close_write does nothing on subsequent invocations
fails:IO#close_write does nothing on closed stream
1 change: 1 addition & 0 deletions spec/truffle/tags/core/io/each_line_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:IO#each_line with limit when limit is 0 raises an ArgumentError
1 change: 1 addition & 0 deletions spec/truffle/tags/core/io/each_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:IO#each with limit when limit is 0 raises an ArgumentError
3 changes: 3 additions & 0 deletions spec/truffle/tags/core/io/puts_tags.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
fails:IO#puts writes just a newline when given just a newline
fails:IO#puts calls :to_ary before writing non-string objects, regardless of it being implemented in the receiver
fails:IO#puts calls :to_ary before writing non-string objects
fails:IO#puts returns general object info if :to_s does not return a string
2 changes: 2 additions & 0 deletions spec/truffle/tags/core/io/read_nonblock_tags.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
fails:IO#read_nonblock returns less data if that is all that is available
fails:IO#read_nonblock raises EOFError when the end is reached
fails:IO#read_nonblock when exception option is set to false when there is no data returns :wait_readable
fails:IO#read_nonblock when exception option is set to false when the end is reached returns nil
1 change: 1 addition & 0 deletions spec/truffle/tags/core/io/write_nonblock_tags.txt
Original file line number Diff line number Diff line change
@@ -12,3 +12,4 @@ fails:IO#write_nonblock raises IOError on closed stream
fails:IO#write_nonblock raises EAGAIN or a subclass when the write would block
fails:IO#write_nonblock raises an exception extending IO::WaitWritable when the write would block
fails:IO#write_nonblock raises IO::EAGAINWaitWritable when the operation would block
fails:IO#write_nonblock when exception option is set to false returns :wait_writable when the operation would block
8 changes: 8 additions & 0 deletions spec/truffle/tags/core/kernel/rand_tags.txt
Original file line number Diff line number Diff line change
@@ -3,3 +3,11 @@ fails:Kernel.rand returns a float for an argument between -1 and 1
fails:Kernel.rand ignores the sign of the argument
fails:Kernel.rand calls to_int on its argument
fails:Kernel.rand returns a float for an range argument where max is < 1
fails:Kernel.rand given an exclusive range returns an Integer between the two Integers
fails:Kernel.rand given an exclusive range returns a Float between the given Integer and Float
fails:Kernel.rand given an exclusive range returns a Float between the given Float and Integer
fails:Kernel.rand given an exclusive range returns a Float between the two given Floats
fails:Kernel.rand given an inclusive range returns an Integer between the two Integers
fails:Kernel.rand given an inclusive range returns a Float between the given Integer and Float
fails:Kernel.rand given an inclusive range returns a Float between the given Float and Integer
fails:Kernel.rand given an inclusive range returns a Float between the two given Floats
2 changes: 2 additions & 0 deletions spec/truffle/tags/core/numeric/negative_tags.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fails:Numeric#negative? on positive numbers returns false
fails:Numeric#negative? on zero returns false
fails:Numeric#negative? on negative numbers returns true
fails:Numeric#negative? returns true if self is less than 0
fails:Numeric#negative? returns false if self is greater than 0
2 changes: 2 additions & 0 deletions spec/truffle/tags/core/numeric/positive_tags.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fails:Numeric#positive? on positive numbers returns true
fails:Numeric#positive? on zero returns false
fails:Numeric#positive? on negative numbers returns false
fails:Numeric#positive? returns true if self is greater than 0
fails:Numeric#positive? returns false if self is less than 0
1 change: 1 addition & 0 deletions spec/truffle/tags/core/string/new_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:String.new accepts an encoding argument
2 changes: 2 additions & 0 deletions spec/truffle/tags/core/string/uminus_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:String#-@ returns self if the String is frozen
fails:String#-@ returns a frozen copy if the String is not frozen
2 changes: 2 additions & 0 deletions spec/truffle/tags/core/string/uplus_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:String#+@ returns an unfrozen copy of a frozen String
fails:String#+@ returns self if the String is not frozen
1 change: 1 addition & 0 deletions spec/truffle/tags/core/string/valid_encoding_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fails:String#valid_encoding? returns true if an invalid string is appended another invalid one but both make a valid string
6 changes: 6 additions & 0 deletions spec/truffle/tags/core/struct/dig_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
fails:Struct#dig returns the nested value specified by the sequence of keys
fails:Struct#dig returns the nested value specified if the sequence includes an index
fails:Struct#dig returns nil if any intermediate step is nil
fails:Struct#dig raises a TypeError if any intermediate step does not respond to #dig
fails:Struct#dig raises an ArgumentError if no arguments provided
fails:Struct#dig calls #dig on any intermediate step with the rest of the sequence as arguments
2 changes: 2 additions & 0 deletions spec/truffle/tags/language/super_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
fails:The super keyword when using keyword arguments passes any given keyword arguments to the parent
fails:The super keyword when using keyword arguments passes any given keyword arguments including optional and required ones to the parent
4 changes: 4 additions & 0 deletions spec/truffle/tags/library/coverage/peek_result_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
fails:Coverage.peek_result returns the result so far
fails:Coverage.peek_result immediate second call returns same result
fails:Coverage.peek_result second call after require returns accumulated result
fails:Coverage.peek_result call right before Coverage.result should give equal result
8 changes: 8 additions & 0 deletions spec/truffle/tags/library/coverage/result_tags.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
fails:Coverage.result gives the covered files as a hash with arrays of count or nil
fails:Coverage.result no requires/loads should give empty hash
fails:Coverage.result second call should give exception
fails:Coverage.result second run should give same result
fails:Coverage.result second run without load/require should give empty hash
fails:Coverage.result second Coverage.start does nothing
fails:Coverage.result should list coverage for the required file starting coverage
fails:Coverage.result should list coverage for the loaded file starting coverage

0 comments on commit ea64ba1

Please sign in to comment.