Skip to content

Commit 963a32b

Browse files
committed
adds nim 2.0.10 which is the one that fails with csources
1 parent c82761a commit 963a32b

File tree

6 files changed

+51
-2
lines changed

6 files changed

+51
-2
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Package
2+
version = "0.1.0"
3+
author = "jmgomez"
4+
description = "A new awesome nimble package"
5+
license = "MIT"
6+
srcDir = "src"
7+
bin = @["nim2010"]
8+
9+
# Dependencies
10+
11+
requires "nim == 2.0.10"
12+
13+
after build:
14+
let (output, _) = gorgeEx "./nim2010"
15+
assert output.strip == NimVersion
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This is just an example to get you started. A typical library package
2+
# exports the main API in this file. Note that you cannot rename this file
3+
# but you can remove it if you wish.
4+
5+
proc add*(x, y: int): int =
6+
## Adds two numbers together.
7+
return x + y
8+
9+
10+
echo NimVersion
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This is just an example to get you started. Users of your library will
2+
# import this file by writing ``import nim204/submodule``. Feel free to rename or
3+
# remove this file altogether. You may create additional modules alongside
4+
# this file as required.
5+
6+
type
7+
Submodule* = object
8+
name*: string
9+
10+
proc initSubmodule*(): Submodule =
11+
## Initialises a new ``Submodule`` object.
12+
Submodule(name: "Anonymous")
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# This is just an example to get you started. You may wish to put all of your
2+
# tests into a single file, or separate them into multiple `test1`, `test2`
3+
# etc. files (better names are recommended, just make sure the name starts with
4+
# the letter 't').
5+
#
6+
# To run these tests, simply execute `nimble test`.
7+
8+
import unittest
9+
10+
import nim204
11+
test "can add":
12+
check add(5, 5) == 10

tests/nimnimble/nim2.0.4/nim204.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ bin = @["nim204"]
88

99
# Dependencies
1010

11-
requires "nim >= 2.0.4 & < 2.1"
11+
requires "nim == 2.0.4"
1212

1313
after build:
1414
let (output, _) = gorgeEx "./nim204"

tests/tniminstall.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ proc isNimPkgVer(folder: string, ver: string): bool =
2121
suite "Nim install":
2222
test "Should be able to install different Nim versions":
2323
cd "nimnimble":
24-
for nimVerDir in ["nim1.6.20", "nim2.0.4", "nimdevel"]:
24+
for nimVerDir in ["nim1.6.20", "nim2.0.4", "nim2.0.10", "nimdevel"]:
2525
cd nimVerDir:
2626
let nimVer = nimVerDir.replace("nim", "")
2727
echo "Checking version ", nimVer

0 commit comments

Comments
 (0)