test/pattern_test.rb in ohm-0.1.0.rc5 vs test/pattern_test.rb in ohm-0.1.0.rc6

- old
+ new

@@ -1,8 +1,10 @@ -require File.expand_path(File.join(File.dirname(__FILE__), "test_helper")) +# encoding: UTF-8 -class TestArray < Test::Unit::TestCase - test "should provide pattern matching" do - assert(Ohm::Pattern[1, Fixnum] === [1, 2]) - assert(Ohm::Pattern[String, Array] === ["foo", ["bar"]]) - end +require File.expand_path("./helper", File.dirname(__FILE__)) + +prepare.clear + +test "should provide pattern matching" do + assert(Ohm::Pattern[1, Fixnum] === [1, 2]) + assert(Ohm::Pattern[String, Array] === ["foo", ["bar"]]) end