Mercurial > games > semicongine
annotate tests/test_resources.nim @ 881:11a55a45aba2
fix: all tests (once more)
author | Sam <sam@basx.dev> |
---|---|
date | Mon, 29 Jan 2024 00:19:35 +0700 |
parents | 275ac4cdf7e0 |
children | 1ab09f8cc68d |
rev | line source |
---|---|
696
275ac4cdf7e0
did: replace zippy with "standard" nim zip, compiled from source, fix some errors
Sam <sam@basx.dev>
parents:
674
diff
changeset
|
1 import std/streams |
668
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
2 |
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
3 import semicongine |
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
4 |
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
5 proc main() = |
674
496b328faa43
add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents:
668
diff
changeset
|
6 echo "Mods available: ", modList() |
496b328faa43
add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents:
668
diff
changeset
|
7 for modName in modList(): |
496b328faa43
add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents:
668
diff
changeset
|
8 echo modName, ":" |
496b328faa43
add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents:
668
diff
changeset
|
9 selectedMod = modName |
496b328faa43
add: resource packaging and loading for different resource types, simplify build commands, update readme
Sam <sam@basx.dev>
parents:
668
diff
changeset
|
10 for i in walkResources(): |
696
275ac4cdf7e0
did: replace zippy with "standard" nim zip, compiled from source, fix some errors
Sam <sam@basx.dev>
parents:
674
diff
changeset
|
11 echo " ", i, ": ", loadResource(i).readAll().len |
668
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
12 |
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
13 when isMainModule: |
a02d503ffa53
add: some adjustment to the last refactoring :P
Sam <sam@basx.dev>
parents:
diff
changeset
|
14 main() |