From 30b8c8e9448c830ffccb0941aa3cac7a6cbb1a34 Mon Sep 17 00:00:00 2001 From: pacien Date: Sun, 25 Nov 2018 21:09:29 +0100 Subject: Add binary identity test --- tests/tmain.nim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/tmain.nim b/tests/tmain.nim index 2deb443..07d9c35 100644 --- a/tests/tmain.nim +++ b/tests/tmain.nim @@ -23,10 +23,18 @@ suite "main": setup: createDir(tempDir) teardown: removeDir(tempDir) - test "identity": + test "identity (text)": let input = "license.md" let intermediate = tempDir / "compressed" let final = tempDir / "decompressed" compress.transform(input, intermediate) decompress.transform(intermediate, final) check startProcess("cmp", args=[input, final], options={poUsePath}).waitForExit() == 0 + + test "identity (binary)": + let input = "tests" / "tmain" + let intermediate = tempDir / "compressed" + let final = tempDir / "decompressed" + compress.transform(input, intermediate) + decompress.transform(intermediate, final) + check startProcess("cmp", args=[input, final], options={poUsePath}).waitForExit() == 0 -- cgit v1.2.3