Skip to content

Commit 81f14ae

Browse files
committed
- added assertions for cli configurations input
1 parent 4d63873 commit 81f14ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nimplex.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ proc simplex_sampling_hed(dim: int,
7878
when isMainModule:
7979
echo "Configuration (Full/Internal/Random)(Fractional/Integer)(Full/Shape) - e.g. FFS or R:"
8080
let config = readLine(stdin)
81-
assert config.len == 3 or config=="R"
81+
assert config.len == 3 or config=="R", "Invalid configuration"
8282

8383
echo "Simplex dimensions:"
8484
let dim = readLine(stdin).parseInt()

0 commit comments

Comments
 (0)