Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Import module with spaces using @testable

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

like image 888
user5381191 Avatar asked Oct 28 '15 09:10

user5381191


1 Answers

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
like image 183
Zortje Avatar answered Oct 11 '22 19:10

Zortje