aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpacien2018-11-30 21:16:04 +0100
committerpacien2018-11-30 21:29:34 +0100
commit0c375acd686f2e7f3116e243bf9c89a836d5be99 (patch)
treeab867161ea78746ffde46952bb61fa5d91c060fd
parent1f0c6a7638353d1ebbbc4ba1a8de0887d5f68e98 (diff)
downloadgziplike-0c375acd686f2e7f3116e243bf9c89a836d5be99.tar.gz
rename main file
-rw-r--r--gziplike.nimble2
-rw-r--r--readme.md3
-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"
5description = "gzip-like LZSS compressor" 5description = "gzip-like LZSS compressor"
6license = "AGPL-3.0-or-later" 6license = "AGPL-3.0-or-later"
7srcDir = "src" 7srcDir = "src"
8bin = @["main"] 8bin = @["gziplike"]
9 9
10 10
11# Dependencies 11# Dependencies
diff --git a/readme.md b/readme.md
index be2587c..95fe641 100644
--- a/readme.md
+++ b/readme.md
@@ -10,7 +10,7 @@ Test and build
10 10
11Building this project requires Nim and Nimble version 0.19.0 or later. 11Building 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
32Copyright (C) 2018 Pacien TRAN-GIRARD. 32Copyright (C) 2018 Pacien TRAN-GIRARD.
33 33
34This project is distributed under the terms of the GNU Affero General Public License v3.0, as detailed in the provided `license.md` file. 34This 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
17import unittest, os, ospaths, osproc 17import unittest, os, ospaths, osproc
18import main 18import gziplike
19 19
20const tempDir = "tmp" 20const 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)