17

Sounds like a silly question, but was wondering how should I import modules with spaces ?

I am following this link to add test cases, but my project has a space, say foo bar. So how should I import using @testable

@testable import foo bar throws error

user5381191
  • 611
  • 7
  • 21

1 Answers1

42

I also had this issue and finally figured out that a underscore _ are the replacement for spaces in module names.

So you should write the following.

@testable import foo_bar
Zortje
  • 511
  • 5
  • 3