test_expected (TestSexpProcessor)

    # File test/test_sexp_processor.rb, line 275
      def test_expected
        assert_equal Sexp, @processor.expected
        assert_raises(SexpTypeError) do
          @processor.process([:expected])           # should raise
        end

        @processor.process(s(:str, "string"))       # shouldn't raise

        @processor.expected = Hash
        assert_equal Hash, @processor.expected
        assert !(Hash === s()), "Hash === s() should not be true"

        assert_raises(SexpTypeError) do
          @processor.process(s(:string, "string"))     # should raise
        end

        @processor.process([:expected])        # shouldn't raise
      end