Skip to content

Commit

Permalink
Added language specs to CI and updated tags for them.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ford committed Oct 27, 2008
1 parent 9a5d5aa commit a49773f
Show file tree
Hide file tree
Showing 18 changed files with 51 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/default.mspec
Expand Up @@ -3,10 +3,10 @@ class MSpecScript
# as the CI process.
set :ci_files, [
'spec/frozen/1.8/core',
'spec/frozen/1.8/language',

# These additional directories will be enabled as the
# specs in them are updated for the C++ VM.
# 'spec/frozen/1.8/language',
# 'spec/compiler',
# 'spec/core',
# 'spec/debugger',
Expand Down
6 changes: 6 additions & 0 deletions spec/tags/frozen/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
2 changes: 2 additions & 0 deletions spec/tags/frozen/1.8/language/array_tags.txt
@@ -0,0 +1,2 @@
fails:The unpacking splat operator (*) when applied to a literal nested array, unpacks its elements into the containing array
fails:The unpacking splat operator (*) when applied to a nested referenced array, unpacks its elements into the containing array
8 changes: 8 additions & 0 deletions spec/tags/frozen/1.8/language/break_tags.txt
@@ -0,0 +1,8 @@
fails:The break statement ends block execution if used whithin block
fails:The break statement causes block to return value passed to break
fails:The break statement causes block to return nil if no value passed to break
fails:Breaking out of a loop with a value assigns splatted objects
fails:Breaking out of a loop with a value assigns to a splatted reference
fails:Breaking out of a loop with a value assigns splatted objects to a splatted reference
fails:Breaking out of a loop with a value assigns splatted objects to a splatted reference from a splatted loop
fails:Breaking out of a loop with a value assigns splatted objects to multiple block variables
2 changes: 2 additions & 0 deletions spec/tags/frozen/1.8/language/case_tags.txt
@@ -0,0 +1,2 @@
fails:The 'case'-construct raises a SyntaxError when 'else' is used when no 'when' is given
fails:The 'case'-construct raises a SyntaxError when 'else' is used before a 'when' was given
3 changes: 3 additions & 0 deletions spec/tags/frozen/1.8/language/class_tags.txt
@@ -1,2 +1,5 @@
fails:A class definition returns the value of the last statement in the body
fails:A class definition allows using self as the superclass iff self is a class
fails:A class definition raises TypeError if constant given as class name exists and is not a Module
fails:A class definition raises TypeError if any constant qualifying the class is not a Module
fails:class provides hooks calls inherited when a class is created
2 changes: 2 additions & 0 deletions spec/tags/frozen/1.8/language/constants_tags.txt
@@ -1 +1,3 @@
fails:Constant lookup rule looks up in modules included in Object
fails:Constant declaration can be done under modules
fails:Constant declaration can be done under classes
1 change: 1 addition & 0 deletions spec/tags/frozen/1.8/language/def_tags.txt
Expand Up @@ -3,3 +3,4 @@ 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
fails:A method definition in an eval creates a class method
fails:A singleton method definition can be declared for a class variable
fails:An instance method definition with a splat allows only a single * argument
1 change: 1 addition & 0 deletions spec/tags/frozen/1.8/language/method_tags.txt
@@ -1,3 +1,4 @@
fails:Calling a method with range in () should give higher priority to range
fails:Calling a method fails with both lambda and block argument
fails:Calling a private setter method permits self as a receiver
fails:Calling a method with ambiguous missing parens, arguments go with innermost call
4 changes: 4 additions & 0 deletions spec/tags/frozen/1.8/language/next_tags.txt
@@ -0,0 +1,4 @@
fails:Assignment via next assigns objects to a splatted reference
fails:Assignment via next assigns splatted objects
fails:Assignment via next assigns splatted objects to a splatted reference via a splatted yield
fails:Assignment via next assigns splatted objects to multiple variables
1 change: 1 addition & 0 deletions spec/tags/frozen/1.8/language/order_tags.txt
@@ -1,3 +1,4 @@
fails:A method call evaluates arguments after receiver
fails:A method call evaluates arguments left-to-right
fails:A method call evaluates block pass before arguments
fails:A method call evaluates block pass before receiver
5 changes: 5 additions & 0 deletions spec/tags/frozen/1.8/language/precedence_tags.txt
@@ -0,0 +1,5 @@
fails:Operators ! ~ + is right-associative
fails:Operators ! ~ + have a higher precedence than **
fails:Operators <=> == === != =~ !~ have higher precedence than &&
fails:Operators <=> == === != =~ !~ are non-associative
fails:Operators .. ... are non-associative
1 change: 1 addition & 0 deletions spec/tags/frozen/1.8/language/regexp_tags.txt
@@ -0,0 +1 @@
fails:Literal Regexps matches against $_ (last input) in a conditional if no explicit matchee provided
4 changes: 4 additions & 0 deletions spec/tags/frozen/1.8/language/return_tags.txt
@@ -1,2 +1,6 @@
fails:Executing return from within a block raises a LocalJumpError
fails:Executing return from within a block causes the method calling the method that yields to the block to return
fails:Assignment via return assigns objects to block variables
fails:Assignment via return assigns objects to splatted block variables that include the splat operator inside the block
fails:Assignment via return assigns splatted objects to block variables
fails:Assignment via return assigns splatted objects to multiple block variables
1 change: 1 addition & 0 deletions spec/tags/frozen/1.8/language/symbol_tags.txt
@@ -0,0 +1 @@
fails:A Symbol literal must not be an empty string
1 change: 1 addition & 0 deletions spec/tags/frozen/1.8/language/undef_tags.txt
@@ -0,0 +1 @@
fails:The undef keyword undefines 'meth='
4 changes: 4 additions & 0 deletions spec/tags/frozen/1.8/language/variables_tags.txt
Expand Up @@ -4,3 +4,7 @@ fails:Assigning multiple values allows complex parallel assignment
fails:Multiple assignments with splats * on a range should act like array expansion
fails:Operator assignment 'obj[idx] op= expr' returns result of rhs not result of []=
fails:Scope of variables instance variables not overwritten by local variable in each block
fails:Basic assignment allows the assignment of the rhs to the lhs using the lhs splat operator
fails:Assignment using expansion succeeds without conversion
fails:Conditional assignment checks for class variable definition before fetching its value
fails:Multiple assignments with splats * on the lhs collects all parameters from its position onwards as an Array or an empty Array
4 changes: 4 additions & 0 deletions spec/tags/frozen/1.8/language/yield_tags.txt
@@ -1 +1,5 @@
fails:Assignment via yield assigns splatted objects to multiple block variables
fails:Assignment via yield assigns objects to block variables
fails:Assignment via yield assigns objects to block variables that include the splat operator inside the block
fails:Assignment via yield assigns objects to splatted block variables that include the splat operator inside the block
fails:Assignment via yield assigns objects to multiple block variables

0 comments on commit a49773f

Please sign in to comment.