mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-01 02:42:05 +00:00
This allows spaces in imports, by using the following syntax: * `import "directory with spaces" / subdir / file`, or * `import "directory with spaces/subdir/file"`
11 lines
262 B
Nim
11 lines
262 B
Nim
discard """
|
|
output: "Successful"
|
|
"""
|
|
# Test for the compiler to be able to compile a Nim file with spaces in the directory name.
|
|
# Also test if import of a directory with a space works.
|
|
|
|
import "more spaces" / mspace
|
|
|
|
assert tenTimes(5) == 50
|
|
echo("Successful")
|