diff options
-rw-r--r-- | gziplike.nimble | 2 | ||||
-rw-r--r-- | readme.md | 3 | ||||
-rw-r--r-- | src/gziplike.nim (renamed from src/main.nim) | 0 | ||||
-rw-r--r-- | tests/tgziplike.nim (renamed from tests/tmain.nim) | 4 |
4 files changed, 4 insertions, 5 deletions
diff --git a/gziplike.nimble b/gziplike.nimble index b985f7d..cbcd7b9 100644 --- a/gziplike.nimble +++ b/gziplike.nimble | |||
@@ -5,7 +5,7 @@ author = "pacien" | |||
5 | description = "gzip-like LZSS compressor" | 5 | description = "gzip-like LZSS compressor" |
6 | license = "AGPL-3.0-or-later" | 6 | license = "AGPL-3.0-or-later" |
7 | srcDir = "src" | 7 | srcDir = "src" |
8 | bin = @["main"] | 8 | bin = @["gziplike"] |
9 | 9 | ||
10 | 10 | ||
11 | # Dependencies | 11 | # Dependencies |
@@ -10,7 +10,7 @@ Test and build | |||
10 | 10 | ||
11 | Building this project requires Nim and Nimble version 0.19.0 or later. | 11 | Building this project requires Nim and Nimble version 0.19.0 or later. |
12 | 12 | ||
13 | * `nimble build` produces a binary named `main` | 13 | * `nimble build` produces a binary named `gziplike` |
14 | * `nimble test` runs the included unit tests | 14 | * `nimble test` runs the included unit tests |
15 | 15 | ||
16 | 16 | ||
@@ -32,4 +32,3 @@ License | |||
32 | Copyright (C) 2018 Pacien TRAN-GIRARD. | 32 | Copyright (C) 2018 Pacien TRAN-GIRARD. |
33 | 33 | ||
34 | This project is distributed under the terms of the GNU Affero General Public License v3.0, as detailed in the provided `license.md` file. | 34 | This project is distributed under the terms of the GNU Affero General Public License v3.0, as detailed in the provided `license.md` file. |
35 | |||
diff --git a/src/main.nim b/src/gziplike.nim index cf76f5e..cf76f5e 100644 --- a/src/main.nim +++ b/src/gziplike.nim | |||
diff --git a/tests/tmain.nim b/tests/tgziplike.nim index 07d9c35..2b79240 100644 --- a/tests/tmain.nim +++ b/tests/tgziplike.nim | |||
@@ -15,7 +15,7 @@ | |||
15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. | 15 | # along with this program. If not, see <https://www.gnu.org/licenses/>. |
16 | 16 | ||
17 | import unittest, os, ospaths, osproc | 17 | import unittest, os, ospaths, osproc |
18 | import main | 18 | import gziplike |
19 | 19 | ||
20 | const tempDir = "tmp" | 20 | const tempDir = "tmp" |
21 | 21 | ||
@@ -32,7 +32,7 @@ suite "main": | |||
32 | check startProcess("cmp", args=[input, final], options={poUsePath}).waitForExit() == 0 | 32 | check startProcess("cmp", args=[input, final], options={poUsePath}).waitForExit() == 0 |
33 | 33 | ||
34 | test "identity (binary)": | 34 | test "identity (binary)": |
35 | let input = "tests" / "tmain" | 35 | let input = "tests" / "tgziplike" |
36 | let intermediate = tempDir / "compressed" | 36 | let intermediate = tempDir / "compressed" |
37 | let final = tempDir / "decompressed" | 37 | let final = tempDir / "decompressed" |
38 | compress.transform(input, intermediate) | 38 | compress.transform(input, intermediate) |