Remove unicode from example formula

This commit is contained in:
Jack Nagel 2014-06-04 16:41:07 -05:00
parent 3c9523516b
commit 0357edcf3b

View File

@ -396,10 +396,10 @@ class ExampleFormula < Formula
# Need complete control over stdin, stdout?
require "open3"
Open3.popen3("#{bin}/example", "big5:utf-8") do |stdin, stdout, _|
stdin.write("\263\134\245\134\273\134")
Open3.popen3("#{bin}/example", "argument") do |stdin, stdout, _|
stdin.write("some text")
stdin.close
assert_equal "許功蓋", stdout.read
assert_equal "result", stdout.read
end
# If an exception is raised (e.g. by assert), or if we return false, or if