RegExpr/tests/optimizer.rb

7 lines
194 B
Ruby
Raw Permalink Normal View History

2012-12-09 13:27:06 +01:00
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