add_test (ParseTreeTestCase)

    # File test/pt_testcase.rb, line 54
      def self.add_test name, data, klass = self.name[4..-1]
        name = name.to_s
        klass = klass.to_s

        if testcases.has_key? name then
          if testcases[name].has_key? klass then
            warn "testcase #{klass}##{name} already has data"
          else
            testcases[name][klass] = data
          end
        else
          warn "testcase #{name} does not exist"
        end
      end