aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn Conway <john.a.conway@gmail.com>2019-05-08 10:37:10 +0100
committerJohn Conway <john.a.conway@gmail.com>2019-05-08 10:37:10 +0100
commitf45b14403744f99ae265cff2e05e98e74836e501 (patch)
treefa2bc6022bb42411bf8b001f857a107f4b6ed71f /tests
parented9adeb45b0f8d25585df8fdc5e769be021fa1b2 (diff)
downloadfeed-nim-f45b14403744f99ae265cff2e05e98e74836e501.tar.gz
feed-nim-f45b14403744f99ae265cff2e05e98e74836e501.zip
Changed tothe Nimble package structure
Diffstat (limited to 'tests')
-rw-r--r--tests/config.nims1
-rw-r--r--tests/test1.nim12
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/config.nims b/tests/config.nims
new file mode 100644
index 0000000..3bb69f8
--- /dev/null
+++ b/tests/config.nims
@@ -0,0 +1 @@
+switch("path", "$projectDir/../src") \ No newline at end of file
diff --git a/tests/test1.nim b/tests/test1.nim
new file mode 100644
index 0000000..0ff07eb
--- /dev/null
+++ b/tests/test1.nim
@@ -0,0 +1,12 @@
+# This is just an example to get you started. You may wish to put all of your
+# tests into a single file, or separate them into multiple `test1`, `test2`
+# etc. files (better names are recommended, just make sure the name starts with
+# the letter 't').
+#
+# To run these tests, simply execute `nimble test`.
+
+import unittest
+
+import FeedNim
+test "can add":
+ check add(5, 5) == 10