Sha256: 1cdf769fbe97885b45cdd8ddd388a22f55c7fba0ba9c1f33d2a4d7364fac5268
Contents?: true
Size: 517 Bytes
Versions: 2
Compression:
Stored size: 517 Bytes
Contents
#! /usr/bin/env ruby # coding: utf-8 require "helper" require "stringio" class Tefil::ZshEscaper public :process_stream end class TC_ZshEscaper < Test::Unit::TestCase def setup @is00 = Tefil::ZshEscaper.new() end def test_process_stream # stdin -> stdout $stdin = StringIO.new $stdin.puts "abcdABCD * * *" $stdin.rewind str = capture_stdout{} result = capture_stdout{ @is00.filter([])} correct = 'abcdABCD\ \*\ \*\ \*' + "\n" assert_equal(correct, result) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tefil-0.1.1 | test/test_zshescaper.rb |
tefil-0.1.0 | test/test_zshescaper.rb |