From 2f7c6476be6c6945d13c083700fc876c9615bd1a Mon Sep 17 00:00:00 2001 From: Brian Ford Date: Mon, 25 Oct 2010 00:15:00 -0700 Subject: [PATCH] Added tags for 'rbx' and 'ruby' implementations. Ideally, all specs would pass. But it will take some time to get the specs passing, so we'll add tags for now so we have a known good set of specs. --- Rakefile | 2 +- spec/default.mspec | 6 ++++++ spec/rbx/tags/matching/evaluator/character_tags.txt | 2 ++ spec/rbx/tags/matching/evaluator/choice_tags.txt | 2 ++ spec/rbx/tags/matching/evaluator/concatenation_tags.txt | 1 + spec/rbx/tags/matching/evaluator/if_tags.txt | 1 + spec/rbx/tags/matching/evaluator/unless_tags.txt | 1 + spec/rbx/tags/matching/machine/any_tags.txt | 3 +++ spec/rbx/tags/matching/machine/character_tags.txt | 3 +++ spec/rbx/tags/matching/machine/choice_tags.txt | 3 +++ spec/rbx/tags/matching/machine/concatenation_tags.txt | 3 +++ spec/rbx/tags/matching/machine/if_tags.txt | 3 +++ spec/rbx/tags/matching/machine/unless_tags.txt | 3 +++ spec/rbx/tags/matching/rubinius/any_tags.txt | 1 + spec/rbx/tags/matching/rubinius/character_tags.txt | 2 ++ spec/rbx/tags/matching/rubinius/choice_tags.txt | 2 ++ spec/rbx/tags/matching/rubinius/concatenation_tags.txt | 1 + spec/rbx/tags/matching/rubinius/if_tags.txt | 1 + spec/rbx/tags/matching/rubinius/unless_tags.txt | 1 + spec/ruby/tags/matching/evaluator/character_tags.txt | 2 ++ spec/ruby/tags/matching/evaluator/choice_tags.txt | 2 ++ spec/ruby/tags/matching/evaluator/concatenation_tags.txt | 1 + spec/ruby/tags/matching/evaluator/if_tags.txt | 1 + spec/ruby/tags/matching/evaluator/unless_tags.txt | 1 + spec/ruby/tags/matching/machine/any_tags.txt | 3 +++ spec/ruby/tags/matching/machine/character_tags.txt | 3 +++ spec/ruby/tags/matching/machine/choice_tags.txt | 3 +++ spec/ruby/tags/matching/machine/concatenation_tags.txt | 3 +++ spec/ruby/tags/matching/machine/if_tags.txt | 3 +++ spec/ruby/tags/matching/machine/unless_tags.txt | 3 +++ 30 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 spec/rbx/tags/matching/evaluator/character_tags.txt create mode 100644 spec/rbx/tags/matching/evaluator/choice_tags.txt create mode 100644 spec/rbx/tags/matching/evaluator/concatenation_tags.txt create mode 100644 spec/rbx/tags/matching/evaluator/if_tags.txt create mode 100644 spec/rbx/tags/matching/evaluator/unless_tags.txt create mode 100644 spec/rbx/tags/matching/machine/any_tags.txt create mode 100644 spec/rbx/tags/matching/machine/character_tags.txt create mode 100644 spec/rbx/tags/matching/machine/choice_tags.txt create mode 100644 spec/rbx/tags/matching/machine/concatenation_tags.txt create mode 100644 spec/rbx/tags/matching/machine/if_tags.txt create mode 100644 spec/rbx/tags/matching/machine/unless_tags.txt create mode 100644 spec/rbx/tags/matching/rubinius/any_tags.txt create mode 100644 spec/rbx/tags/matching/rubinius/character_tags.txt create mode 100644 spec/rbx/tags/matching/rubinius/choice_tags.txt create mode 100644 spec/rbx/tags/matching/rubinius/concatenation_tags.txt create mode 100644 spec/rbx/tags/matching/rubinius/if_tags.txt create mode 100644 spec/rbx/tags/matching/rubinius/unless_tags.txt create mode 100644 spec/ruby/tags/matching/evaluator/character_tags.txt create mode 100644 spec/ruby/tags/matching/evaluator/choice_tags.txt create mode 100644 spec/ruby/tags/matching/evaluator/concatenation_tags.txt create mode 100644 spec/ruby/tags/matching/evaluator/if_tags.txt create mode 100644 spec/ruby/tags/matching/evaluator/unless_tags.txt create mode 100644 spec/ruby/tags/matching/machine/any_tags.txt create mode 100644 spec/ruby/tags/matching/machine/character_tags.txt create mode 100644 spec/ruby/tags/matching/machine/choice_tags.txt create mode 100644 spec/ruby/tags/matching/machine/concatenation_tags.txt create mode 100644 spec/ruby/tags/matching/machine/if_tags.txt create mode 100644 spec/ruby/tags/matching/machine/unless_tags.txt diff --git a/Rakefile b/Rakefile index c8463ce..4c80a0b 100644 --- a/Rakefile +++ b/Rakefile @@ -6,7 +6,7 @@ BASE_DIR = File.expand_path('../', __FILE__) RUBY = ENV["RUBY"] || "rbx" def spec(target) - sh("mspec -t #{target} -T -I#{BASE_DIR} spec") { |ok, res| } + sh("mspec ci -t #{target} -T -I#{BASE_DIR} spec") { |ok, res| } end desc "Run the specs with $RUBY or 'rbx' (default)" diff --git a/spec/default.mspec b/spec/default.mspec index c79b055..c66be36 100644 --- a/spec/default.mspec +++ b/spec/default.mspec @@ -3,5 +3,11 @@ require 'spec/custom/guards/engine' class MSpecScript + tags_dir = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby' + set :tags_patterns, [ + [%r(spec/), "spec/#{tags_dir}/tags/"], + [/_spec.rb$/, '_tags.txt'] + ] + set :target, 'rbx' end diff --git a/spec/rbx/tags/matching/evaluator/character_tags.txt b/spec/rbx/tags/matching/evaluator/character_tags.txt new file mode 100644 index 0000000..3c930ce --- /dev/null +++ b/spec/rbx/tags/matching/evaluator/character_tags.txt @@ -0,0 +1,2 @@ +fails:Character#match returns the index of the character following the matched substring +fails:Character#match returns 0 when pattern is empty diff --git a/spec/rbx/tags/matching/evaluator/choice_tags.txt b/spec/rbx/tags/matching/evaluator/choice_tags.txt new file mode 100644 index 0000000..aa6a407 --- /dev/null +++ b/spec/rbx/tags/matching/evaluator/choice_tags.txt @@ -0,0 +1,2 @@ +fails:Choice#match matches the first pattern if both match +fails:Choice#match matches the second pattern if the first does not match diff --git a/spec/rbx/tags/matching/evaluator/concatenation_tags.txt b/spec/rbx/tags/matching/evaluator/concatenation_tags.txt new file mode 100644 index 0000000..7edcf69 --- /dev/null +++ b/spec/rbx/tags/matching/evaluator/concatenation_tags.txt @@ -0,0 +1 @@ +fails:Concatenation#match returns the index of the character following the matched substring diff --git a/spec/rbx/tags/matching/evaluator/if_tags.txt b/spec/rbx/tags/matching/evaluator/if_tags.txt new file mode 100644 index 0000000..c6c2ec2 --- /dev/null +++ b/spec/rbx/tags/matching/evaluator/if_tags.txt @@ -0,0 +1 @@ +fails:If#match returns the index of the character following the matched substring diff --git a/spec/rbx/tags/matching/evaluator/unless_tags.txt b/spec/rbx/tags/matching/evaluator/unless_tags.txt new file mode 100644 index 0000000..aa87d23 --- /dev/null +++ b/spec/rbx/tags/matching/evaluator/unless_tags.txt @@ -0,0 +1 @@ +fails:Unless#match returns the index of the character following the matched substring diff --git a/spec/rbx/tags/matching/machine/any_tags.txt b/spec/rbx/tags/matching/machine/any_tags.txt new file mode 100644 index 0000000..cea2cee --- /dev/null +++ b/spec/rbx/tags/matching/machine/any_tags.txt @@ -0,0 +1,3 @@ +fails:Any#match returns nil when the subject is empty +fails:Any#match returns nil if there are not N characters to match in the subject +fails:Any#match returns the index of the character following the matched substring diff --git a/spec/rbx/tags/matching/machine/character_tags.txt b/spec/rbx/tags/matching/machine/character_tags.txt new file mode 100644 index 0000000..2c7811c --- /dev/null +++ b/spec/rbx/tags/matching/machine/character_tags.txt @@ -0,0 +1,3 @@ +fails:Character#match returns nil when the subject is empty +fails:Character#match returns nil when the subject does not match completely +fails:Character#match returns the index of the character following the matched substring diff --git a/spec/rbx/tags/matching/machine/choice_tags.txt b/spec/rbx/tags/matching/machine/choice_tags.txt new file mode 100644 index 0000000..da1120d --- /dev/null +++ b/spec/rbx/tags/matching/machine/choice_tags.txt @@ -0,0 +1,3 @@ +fails:Choice#match returns nil if none of the patterns match +fails:Choice#match matches the first pattern if both match +fails:Choice#match matches the second pattern if the first does not match diff --git a/spec/rbx/tags/matching/machine/concatenation_tags.txt b/spec/rbx/tags/matching/machine/concatenation_tags.txt new file mode 100644 index 0000000..2b3a713 --- /dev/null +++ b/spec/rbx/tags/matching/machine/concatenation_tags.txt @@ -0,0 +1,3 @@ +fails:Concatenation#match returns nil if the first pattern does not match +fails:Concatenation#match returns nil if the second pattern does not match +fails:Concatenation#match returns the index of the character following the matched substring diff --git a/spec/rbx/tags/matching/machine/if_tags.txt b/spec/rbx/tags/matching/machine/if_tags.txt new file mode 100644 index 0000000..ae75a7e --- /dev/null +++ b/spec/rbx/tags/matching/machine/if_tags.txt @@ -0,0 +1,3 @@ +fails:If#match returns nil if the first pattern does not match +fails:If#match returns nil if the second pattern does not match +fails:If#match returns the index of the character following the matched substring diff --git a/spec/rbx/tags/matching/machine/unless_tags.txt b/spec/rbx/tags/matching/machine/unless_tags.txt new file mode 100644 index 0000000..0e8cb9d --- /dev/null +++ b/spec/rbx/tags/matching/machine/unless_tags.txt @@ -0,0 +1,3 @@ +fails:Unless#match returns nil if the first pattern does not match +fails:Unless#match returns nil if the second pattern match +fails:Unless#match returns the index of the character following the matched substring diff --git a/spec/rbx/tags/matching/rubinius/any_tags.txt b/spec/rbx/tags/matching/rubinius/any_tags.txt new file mode 100644 index 0000000..026d1f8 --- /dev/null +++ b/spec/rbx/tags/matching/rubinius/any_tags.txt @@ -0,0 +1 @@ +fails:Any#match returns the index of the character following the matched substring diff --git a/spec/rbx/tags/matching/rubinius/character_tags.txt b/spec/rbx/tags/matching/rubinius/character_tags.txt new file mode 100644 index 0000000..3c930ce --- /dev/null +++ b/spec/rbx/tags/matching/rubinius/character_tags.txt @@ -0,0 +1,2 @@ +fails:Character#match returns the index of the character following the matched substring +fails:Character#match returns 0 when pattern is empty diff --git a/spec/rbx/tags/matching/rubinius/choice_tags.txt b/spec/rbx/tags/matching/rubinius/choice_tags.txt new file mode 100644 index 0000000..aa6a407 --- /dev/null +++ b/spec/rbx/tags/matching/rubinius/choice_tags.txt @@ -0,0 +1,2 @@ +fails:Choice#match matches the first pattern if both match +fails:Choice#match matches the second pattern if the first does not match diff --git a/spec/rbx/tags/matching/rubinius/concatenation_tags.txt b/spec/rbx/tags/matching/rubinius/concatenation_tags.txt new file mode 100644 index 0000000..7edcf69 --- /dev/null +++ b/spec/rbx/tags/matching/rubinius/concatenation_tags.txt @@ -0,0 +1 @@ +fails:Concatenation#match returns the index of the character following the matched substring diff --git a/spec/rbx/tags/matching/rubinius/if_tags.txt b/spec/rbx/tags/matching/rubinius/if_tags.txt new file mode 100644 index 0000000..c6c2ec2 --- /dev/null +++ b/spec/rbx/tags/matching/rubinius/if_tags.txt @@ -0,0 +1 @@ +fails:If#match returns the index of the character following the matched substring diff --git a/spec/rbx/tags/matching/rubinius/unless_tags.txt b/spec/rbx/tags/matching/rubinius/unless_tags.txt new file mode 100644 index 0000000..aa87d23 --- /dev/null +++ b/spec/rbx/tags/matching/rubinius/unless_tags.txt @@ -0,0 +1 @@ +fails:Unless#match returns the index of the character following the matched substring diff --git a/spec/ruby/tags/matching/evaluator/character_tags.txt b/spec/ruby/tags/matching/evaluator/character_tags.txt new file mode 100644 index 0000000..3c930ce --- /dev/null +++ b/spec/ruby/tags/matching/evaluator/character_tags.txt @@ -0,0 +1,2 @@ +fails:Character#match returns the index of the character following the matched substring +fails:Character#match returns 0 when pattern is empty diff --git a/spec/ruby/tags/matching/evaluator/choice_tags.txt b/spec/ruby/tags/matching/evaluator/choice_tags.txt new file mode 100644 index 0000000..aa6a407 --- /dev/null +++ b/spec/ruby/tags/matching/evaluator/choice_tags.txt @@ -0,0 +1,2 @@ +fails:Choice#match matches the first pattern if both match +fails:Choice#match matches the second pattern if the first does not match diff --git a/spec/ruby/tags/matching/evaluator/concatenation_tags.txt b/spec/ruby/tags/matching/evaluator/concatenation_tags.txt new file mode 100644 index 0000000..7edcf69 --- /dev/null +++ b/spec/ruby/tags/matching/evaluator/concatenation_tags.txt @@ -0,0 +1 @@ +fails:Concatenation#match returns the index of the character following the matched substring diff --git a/spec/ruby/tags/matching/evaluator/if_tags.txt b/spec/ruby/tags/matching/evaluator/if_tags.txt new file mode 100644 index 0000000..c6c2ec2 --- /dev/null +++ b/spec/ruby/tags/matching/evaluator/if_tags.txt @@ -0,0 +1 @@ +fails:If#match returns the index of the character following the matched substring diff --git a/spec/ruby/tags/matching/evaluator/unless_tags.txt b/spec/ruby/tags/matching/evaluator/unless_tags.txt new file mode 100644 index 0000000..aa87d23 --- /dev/null +++ b/spec/ruby/tags/matching/evaluator/unless_tags.txt @@ -0,0 +1 @@ +fails:Unless#match returns the index of the character following the matched substring diff --git a/spec/ruby/tags/matching/machine/any_tags.txt b/spec/ruby/tags/matching/machine/any_tags.txt new file mode 100644 index 0000000..cea2cee --- /dev/null +++ b/spec/ruby/tags/matching/machine/any_tags.txt @@ -0,0 +1,3 @@ +fails:Any#match returns nil when the subject is empty +fails:Any#match returns nil if there are not N characters to match in the subject +fails:Any#match returns the index of the character following the matched substring diff --git a/spec/ruby/tags/matching/machine/character_tags.txt b/spec/ruby/tags/matching/machine/character_tags.txt new file mode 100644 index 0000000..2c7811c --- /dev/null +++ b/spec/ruby/tags/matching/machine/character_tags.txt @@ -0,0 +1,3 @@ +fails:Character#match returns nil when the subject is empty +fails:Character#match returns nil when the subject does not match completely +fails:Character#match returns the index of the character following the matched substring diff --git a/spec/ruby/tags/matching/machine/choice_tags.txt b/spec/ruby/tags/matching/machine/choice_tags.txt new file mode 100644 index 0000000..da1120d --- /dev/null +++ b/spec/ruby/tags/matching/machine/choice_tags.txt @@ -0,0 +1,3 @@ +fails:Choice#match returns nil if none of the patterns match +fails:Choice#match matches the first pattern if both match +fails:Choice#match matches the second pattern if the first does not match diff --git a/spec/ruby/tags/matching/machine/concatenation_tags.txt b/spec/ruby/tags/matching/machine/concatenation_tags.txt new file mode 100644 index 0000000..2b3a713 --- /dev/null +++ b/spec/ruby/tags/matching/machine/concatenation_tags.txt @@ -0,0 +1,3 @@ +fails:Concatenation#match returns nil if the first pattern does not match +fails:Concatenation#match returns nil if the second pattern does not match +fails:Concatenation#match returns the index of the character following the matched substring diff --git a/spec/ruby/tags/matching/machine/if_tags.txt b/spec/ruby/tags/matching/machine/if_tags.txt new file mode 100644 index 0000000..ae75a7e --- /dev/null +++ b/spec/ruby/tags/matching/machine/if_tags.txt @@ -0,0 +1,3 @@ +fails:If#match returns nil if the first pattern does not match +fails:If#match returns nil if the second pattern does not match +fails:If#match returns the index of the character following the matched substring diff --git a/spec/ruby/tags/matching/machine/unless_tags.txt b/spec/ruby/tags/matching/machine/unless_tags.txt new file mode 100644 index 0000000..0e8cb9d --- /dev/null +++ b/spec/ruby/tags/matching/machine/unless_tags.txt @@ -0,0 +1,3 @@ +fails:Unless#match returns nil if the first pattern does not match +fails:Unless#match returns nil if the second pattern match +fails:Unless#match returns the index of the character following the matched substring