Sha256: 858a0a59247050d84891c368d2cb8c419d4d8ceed8daa026ed1b04d1aa75f390
Contents?: true
Size: 629 Bytes
Versions: 6
Compression:
Stored size: 629 Bytes
Contents
S::Suite.new 'Test the wc command (wc.rb)' do attributes do strategy S::Cmd command 'wc -c' self.exit 0 # Must use self otherwise it is Kernel.exit end contents do name 'good foo' do input 'foo' output(/\s*3\n$/) end name 'bad foo' do input 'foo' output(/\s*4\n$/) weight(-1) end name 'good foo foo' do input "foo\n foo" output(/\s*8\n$/) end name 'useless foo' do input "foo" end name 'from file test' do input Pathname.new('<<pwd>>/../fixtures/text/1.txt') output(/\s*272\n$/) end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
uttk-0.3.1.2 | test/ruby/wc.rb |
uttk-0.3.6.1 | test/ruby/wc.rb |
uttk-0.3.5.0 | test/ruby/wc.rb |
uttk-0.4.6.2 | test/ruby/wc.rb |
uttk-0.4.5.0 | test/ruby/wc.rb |
uttk-0.4.6.1 | test/ruby/wc.rb |