Skip to content

Commit

Permalink
updating tags for passing tests, adding tags for language tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jredville committed Jul 3, 2008
1 parent 1919421 commit e2693bd
Show file tree
Hide file tree
Showing 29 changed files with 89 additions and 0 deletions.
2 changes: 2 additions & 0 deletions 1.8/core/file/atime_tags.txt
@@ -0,0 +1,2 @@
fails:File.atime returns the last access time for the named file as a Time object
fails:File.atime raises an Errno::ENOENT exception if the file is not found
8 changes: 8 additions & 0 deletions 1.8/core/file/basename_tags.txt
Expand Up @@ -2,3 +2,11 @@ fails:File.basename return the last component of the filename
fails:File.basename return the basename for unix suffix
fails:File.basename return the basename for windows
fails:File.basename return basename windows forward slash
fails:File.basename return the basename of a path (basic cases)
fails:File.basename return an string
fails:File.basename return the basename for unix format
fails:File.basename return the basename for edge cases
fails:File.basename raises a TypeError if the arguments are not String types
fails:File.basename raises an ArgumentError if passed more than two arguments
fails:File.basename return basename windows unc
fails:File.basename return basename with windows suffix
2 changes: 2 additions & 0 deletions 1.8/core/file/file_tags.txt
@@ -1 +1,3 @@
fails:File.file? raises a TypeError if not passed a String type
fails:File.file? returns true if the named file exists and is a regular file.
fails:File.file? raises an ArgumentError if not passed one argument
2 changes: 2 additions & 0 deletions 1.8/core/file/ftype_tags.txt
@@ -0,0 +1,2 @@
fails:File.ftype returns a String
fails:File.ftype returns 'file' when the file is a file
18 changes: 18 additions & 0 deletions 1.8/core/file/open_tags.txt
Expand Up @@ -43,3 +43,21 @@ fails:File.open raises a TypeError if passed a filename that is not a String or
fails:File.open raises a SystemCallError if passed an invalid Integer type
fails:File.open raises an ArgumentError if passed the wrong number of arguments
fails:File.open raises an ArgumentError if passed an invalid string for mode
fails:File.open with block does not raise error when file is closed inside the block
fails:File.open with a block swallows StandardErrors produced by close
fails:File.open opens file when call with a block (basic case)
fails:File.open opens with mode string
fails:File.open opens a file with mode num
fails:File.open opens a file that no exists when use 'a' mode
fails:File.open opens a file that no exists when use 'w' mode
fails:File.open raises an ArgumentError exception when call with an unknown mode
fails:File.open can read in a block when call open with RDONLY mode
fails:File.open can read in a block when call open with 'r' mode
fails:File.open raises an IO exception when write in a block opened with RDONLY mode
fails:File.open raises an IO exception when write in a block opened with 'r' mode
fails:File.open can't read in a block when call open with File::WRONLY||File::RDONLY mode
fails:File.open raises an IO exception when read in a block opened with WRONLY mode
fails:File.open raises an IO exception when read in a block opened with 'w' mode
fails:File.open can't read in a block when call open with File::EXCL mode
fails:File.open can read in a block when call open with File::EXCL mode
fails:File.open create a new file when use File::WRONLY|File::APPEND mode
1 change: 1 addition & 0 deletions 1.8/core/file/stat/dev_tags.txt
@@ -0,0 +1 @@
fails:File::Stat#dev returns the number of the device on which the file exists
3 changes: 3 additions & 0 deletions 1.8/core/file/stat/file_tags.txt
@@ -0,0 +1,3 @@
fails:File::Stat#file? returns true if the named file exists and is a regular file.
fails:File::Stat#file? raises an ArgumentError if not passed one argument
fails:File::Stat#file? raises a TypeError if not passed a String type
1 change: 1 addition & 0 deletions 1.8/core/file/stat/rdev_tags.txt
@@ -0,0 +1 @@
fails:File::Stat#rdev returns the number of the device this file represents which the file exists
2 changes: 2 additions & 0 deletions 1.8/core/filetest/file_tags.txt
@@ -1 +1,3 @@
fails:File.file? raises a TypeError if not passed a String type
fails:File.file? returns true if the named file exists and is a regular file.
fails:File.file? raises an ArgumentError if not passed one argument
6 changes: 6 additions & 0 deletions 1.8/language/alias_tags.txt
@@ -0,0 +1,6 @@
fails:The alias keyword creates a new name for an existing method
fails:The alias keyword adds the new method to the list of methods
fails:The alias keyword adds the new method to the list of public methods
fails:The alias keyword overwrites an existing method with the target name
fails:The alias keyword is reversible
fails:The alias keyword operates on the object's metaclass when used in instance_eval
1 change: 1 addition & 0 deletions 1.8/language/case_tags.txt
@@ -0,0 +1 @@
fails:The 'case'-construct raises a SyntaxError when 'else' is used when no 'when' is given
3 changes: 3 additions & 0 deletions 1.8/language/def_tags.txt
@@ -0,0 +1,3 @@
fails:An instance method definition for 'initialize_copy' method defines it as private
fails:A method definition inside an instance_eval creates a singleton method
fails:A method definition inside an instance_eval creates a class method when the receiver is a class
1 change: 1 addition & 0 deletions 1.8/language/defined_tags.txt
@@ -0,0 +1 @@
fails:The defined? keyword returns nil when defined?(DoesNotExist.puts) is sent
2 changes: 2 additions & 0 deletions 1.8/language/execution_tags.txt
@@ -0,0 +1,2 @@
fails:Execution literal `` should return the result of the executed sub-process
fails:Execution literal %x() is the same (with also interpolation)
1 change: 1 addition & 0 deletions 1.8/language/file_tags.txt
@@ -0,0 +1 @@
fails:The __FILE__ constant equals (eval) inside an eval
3 changes: 3 additions & 0 deletions 1.8/language/for_tags.txt
@@ -0,0 +1,3 @@
fails:The for expression breaks out of a loop upon 'break', returning nil
fails:The for expression allows 'break' to have an argument which becomes the value of the for expression
fails:The for expression repeats the loop from the beginning with 'retry'
2 changes: 2 additions & 0 deletions 1.8/language/metaclass_tags.txt
@@ -0,0 +1,2 @@
fails:self in a metaclass body (class << obj) is TrueClass for true
fails:self in a metaclass body (class << obj) is FalseClass for false
2 changes: 2 additions & 0 deletions 1.8/language/method_tags.txt
@@ -0,0 +1,2 @@
fails:Calling a method fails with both lambda and block argument
fails:Calling a method with range in () should give higher priority to range
1 change: 1 addition & 0 deletions 1.8/language/module_tags.txt
@@ -0,0 +1 @@
fails:module gets a name when assigned to a constant
1 change: 1 addition & 0 deletions 1.8/language/precedence_tags.txt
@@ -0,0 +1 @@
fails:Operators <=> == === != =~ !~ are non-associative
6 changes: 6 additions & 0 deletions 1.8/language/predefined_tags.txt
@@ -0,0 +1,6 @@
fails:Predefined global $~ is set at the method-scoped level rather than block-scoped
fails:Predefined global $_ is set to the last line read by e.g. StringIO#gets
fails:Predefined global $_ is set at the method-scoped level rather than block-scoped
fails:The predefined global constants includes DATA when main script contains __END__
fails:The predefined global constants does not include DATA when main script contains no __END__
fails:The predefined global constants includes NIL
4 changes: 4 additions & 0 deletions 1.8/language/private_tags.txt
@@ -0,0 +1,4 @@
fails:The private keyword marks following methods as being private
fails:The private keyword is overridden when a new class is opened
fails:The private keyword changes visibility of previously called method
fails:The private keyword changes visiblity of previously called methods with same send/call site
1 change: 1 addition & 0 deletions 1.8/language/regexp_tags.txt
@@ -0,0 +1 @@
fails:Literal Regexps matches against $_ (last input) in a conditional if no explicit matchee provided
1 change: 1 addition & 0 deletions 1.8/language/return_tags.txt
@@ -0,0 +1 @@
fails:The return statement raises a ThreadError if used to exit a thread
3 changes: 3 additions & 0 deletions 1.8/language/symbol_tags.txt
@@ -0,0 +1,3 @@
fails:A Symbol literal is a ':' followed by a single- or double-quoted string that may contain otherwise invalid characters
fails:A Symbol literal must not be an empty string
fails:A Symbol literal can be created by the %s-delimited expression
1 change: 1 addition & 0 deletions 1.8/language/throw_tags.txt
@@ -0,0 +1 @@
fails:The throw keyword raises a ThreadError if used to exit a thread
4 changes: 4 additions & 0 deletions 1.8/language/until_tags.txt
@@ -0,0 +1,4 @@
fails:The until modifier with begin .. end block runs block at least once (even if the expression is true)
fails:The until modifier with begin .. end block evaluates condition after block execution
fails:The until modifier with begin .. end block skips to end of body with next
fails:The until modifier with begin .. end block restart the current iteration without reevaluting condition with redo
3 changes: 3 additions & 0 deletions 1.8/language/variables_tags.txt
@@ -0,0 +1,3 @@
fails:Basic assignment supports the {|r,| } form of block assignment
fails:Assigning multiple values calls #to_ary on rhs arg if rhs has only a single arg
fails:Assigning multiple values allows complex parallel assignment
4 changes: 4 additions & 0 deletions 1.8/language/while_tags.txt
@@ -0,0 +1,4 @@
fails:The while modifier with begin .. end block runs block at least once (even if the expression is false)
fails:The while modifier with begin .. end block evaluates condition after block execution
fails:The while modifier with begin .. end block skips to end of body with next
fails:The while modifier with begin .. end block restarts the current iteration without reevaluting condition with redo

0 comments on commit e2693bd

Please sign in to comment.