diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1377554 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.swp diff --git a/tests/optimizer.rb b/tests/optimizer.rb new file mode 100644 index 0000000..d0db55c --- /dev/null +++ b/tests/optimizer.rb @@ -0,0 +1,6 @@ +class OptimizerTest < Test::Unit::TestCase + context "Optimizer" do + should "optimize many charblocks to one charblock" do + /[a-dt-z]/.to_s == RegExpr[ main: '[a-d] | [t-z]'].to_r.to_s + end +end