Class TestPathListRegexListExtension
In: lib/regex_list.rb
Parent: ::Test::Unit::TestCase

Methods

Included Modules

RegexList::PathListExtension::Assertions

Public Instance methods

[Source]

# File lib/regex_list.rb, line 165
    def setup
      @path_list = PathList.new %w[ a a/b a/c a/bc b/foo fg kb c/a a/bar f ]
    end

[Source]

# File lib/regex_list.rb, line 183
    def test_exclude_with_regex_list
      assert_exclude_with_regex_list(%w[ a a/b a/c a/bc kb c/a a/bar ], %w[ f ])
    end

[Source]

# File lib/regex_list.rb, line 179
    def test_grep_with_negative_regex_list
      assert_grep_with_negative_regex_list(%w[f a/bar a/b kb a b/foo fg a/bc c/a a/c ], %w[ c ])
    end

[Source]

# File lib/regex_list.rb, line 173
    def test_grep_with_regex_list
      assert_grep_with_regex_list(%w[ b/foo fg f ], %w[ f ])
      assert_grep_with_regex_list(%w[ a/b a/bc b/foo kb a/bar ], %w[ b ])
      assert_grep_with_regex_list(%w[ b/foo a/b a/bc a/bar kb fg f ], %w[ b f ])
    end

[Source]

# File lib/regex_list.rb, line 169
    def test_sort_with_regex_list
      assert_sort_with_regex_list(%w[ f b/foo fg a/bc a/c a/b kb c/a a/bar a ], %w[ f ])
    end

[Validate]