fixes #10042 (allow spaces in import) (#10504)

This allows spaces in imports, by using the following syntax:
* `import "directory with spaces" / subdir / file`, or
* `import "directory with spaces/subdir/file"`
This commit is contained in:
Miran 2019-01-31 08:20:00 +01:00 • committed by Andreas Rumpf
commit fa058773db
3 changed files with 5 additions and 1 deletions

View file

@ -2,5 +2,9 @@ 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")