make more tests green
This commit is contained in:
parent
0fad659bf7
commit
87f548c5f4
4 changed files with 5 additions and 5 deletions
|
|
@ -7,7 +7,7 @@ task "install", "compile and install nake binary":
|
||||||
for index, dir in pairs(path):
|
for index, dir in pairs(path):
|
||||||
echo " ", index, ". ", dir
|
echo " ", index, ". ", dir
|
||||||
echo "Where to install nake binary? (quit with ^C or quit or exit)"
|
echo "Where to install nake binary? (quit with ^C or quit or exit)"
|
||||||
let ans = stdin.readLine().toLower
|
let ans = stdin.readLine().toLowerAscii
|
||||||
var index = 0
|
var index = 0
|
||||||
case ans
|
case ans
|
||||||
of "q", "quit", "x", "exit":
|
of "q", "quit", "x", "exit":
|
||||||
|
|
|
||||||
|
|
@ -562,7 +562,7 @@ proc importItem(data: PJsonNode; errors: var seq[string]): PItemRecord =
|
||||||
|
|
||||||
result.useSound = importSound(data[2], errors, "useSound")
|
result.useSound = importSound(data[2], errors, "useSound")
|
||||||
|
|
||||||
case data[1].str.toLower
|
case data[1].str.toLowerAscii
|
||||||
of "projectile":
|
of "projectile":
|
||||||
result.kind = Projectile
|
result.kind = Projectile
|
||||||
if data[2]["bullet"].kind == JString:
|
if data[2]["bullet"].kind == JString:
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ task "download", "download game assets":
|
||||||
if existsFile(path):
|
if existsFile(path):
|
||||||
echo "The file already exists\n",
|
echo "The file already exists\n",
|
||||||
"[R]emove [M]ove [Q]uit [S]kip Source: ", GameAssets
|
"[R]emove [M]ove [Q]uit [S]kip Source: ", GameAssets
|
||||||
case stdin.readLine.toLower
|
case stdin.readLine.toLowerAscii
|
||||||
of "r":
|
of "r":
|
||||||
removeFile path
|
removeFile path
|
||||||
of "m":
|
of "m":
|
||||||
|
|
@ -120,7 +120,7 @@ task "download", "download game assets":
|
||||||
|
|
||||||
echo "Download binary libs? Only libs for linux are available currently, enjoy the irony.\n",
|
echo "Download binary libs? Only libs for linux are available currently, enjoy the irony.\n",
|
||||||
"[Y]es [N]o Source: ", BinLibs
|
"[Y]es [N]o Source: ", BinLibs
|
||||||
case stdin.readline.toLower
|
case stdin.readline.toLowerAscii
|
||||||
of "y", "yes":
|
of "y", "yes":
|
||||||
discard ## o_O
|
discard ## o_O
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ discard """
|
||||||
|
|
||||||
import strutils
|
import strutils
|
||||||
|
|
||||||
var x = "hello world!".toLower.toUpper
|
var x = "hello world!".toLowerAscii.toUpperAscii
|
||||||
x.echo()
|
x.echo()
|
||||||
#OUT HELLO WORLD!
|
#OUT HELLO WORLD!
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue