diff options
Diffstat (limited to 'Library/Contributions/example-formula.rb')
| -rw-r--r-- | Library/Contributions/example-formula.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Contributions/example-formula.rb b/Library/Contributions/example-formula.rb index 6f3c9e5b1..e4c1eb59a 100644 --- a/Library/Contributions/example-formula.rb +++ b/Library/Contributions/example-formula.rb @@ -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 |
