File: test_symbol.rb

package info (click to toggle)
ruby-journey 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 288 kB
  • sloc: ruby: 2,817; yacc: 42; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require 'helper'

module Journey
  module Nodes
    class TestSymbol < MiniTest::Unit::TestCase
      def test_default_regexp?
        sym = Symbol.new nil
        assert sym.default_regexp?

        sym.regexp = nil
        refute sym.default_regexp?
      end
    end
  end
end