diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/lrzip.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Library/Formula/lrzip.rb b/Library/Formula/lrzip.rb index 61bf5e82f..ccf91597f 100644 --- a/Library/Formula/lrzip.rb +++ b/Library/Formula/lrzip.rb @@ -14,4 +14,18 @@ class Lrzip < Formula system "make" system "make install" end + + test do + path = testpath/"data.txt" + original_contents = "." * 1000 + path.write original_contents + + # compress: data.txt -> data.txt.lrz + system bin/"lrzip", "-o", "#{path}.lrz", path + path.unlink + + # decompress: data.txt.lrz -> data.txt + system bin/"lrzip", "-d", "#{path}.lrz" + assert_equal original_contents, path.read + end end |
