Sha256: 67450935b31b92b8c8fcabaa067d440b8064289b4a8187e60c0cdaf6d7055436

Contents?: true

Size: 518 Bytes

Versions: 4

Compression:

Stored size: 518 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

4 entries across 4 versions & 1 rubygems

Version Path
tefil-0.1.5 test/test_zshescaper.rb
tefil-0.1.4 test/test_zshescaper.rb
tefil-0.1.3 test/test_zshescaper.rb
tefil-0.1.2 test/test_zshescaper.rb