Module: File::Grep::Etest
- Defined in:
- lib/vex/base/filesystem/grep.rb
Instance Method Summary collapse
Instance Method Details
#test_grep ⇒ Object
25 26 27 28 |
# File 'lib/vex/base/filesystem/grep.rb', line 25 def test_grep assert_equal 4, File.grep(/Etest/, __FILE__).length assert_equal 5, File.grep(/ETEST/i, __FILE__).length end |
#test_greps ⇒ Object
30 31 32 33 |
# File 'lib/vex/base/filesystem/grep.rb', line 30 def test_greps assert_equal 8, File.grep(/Etest/, [ __FILE__, __FILE__ ]).length assert_equal 8, File.grep(/Etest/, __FILE__, __FILE__ ).length end |