Skip to content

Commit

Permalink
Convert track to Nimble
Browse files Browse the repository at this point in the history
Closes: exercism#89
  • Loading branch information
ee7 committed Mar 6, 2019
1 parent 87948cd commit b1adfc1
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
27 changes: 27 additions & 0 deletions exercises/hello-world/hello_world.nimble
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Package
version = "1.0"
author = "exercism.io contributors"
description = "hello-world"
license = "MIT"
srcDir = "src"


# Dependencies
requires "nim >= 0.19.4"


# Helper function
proc test(name: string) =
if not dirExists "build":
mkDir "build"
switch("out", ("./build/" & name))
--run
--verbosity:0
--hint[Processing]:off
# --path: "../src"
setCommand "c", "tests/" & name & ".nim"


# Tasks
task test, "Run the tests for this exercise":
test "test_hello_world"
2 changes: 2 additions & 0 deletions exercises/hello-world/src/hello_world.nim
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
proc hello*: string =
"Goodbye, World!"
1 change: 1 addition & 0 deletions exercises/hello-world/tests/config.nims
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--path: "$projectDir/../src"
File renamed without changes.

0 comments on commit b1adfc1

Please sign in to comment.