 		}
 
 	}
-	
+
 	func compileAndExpectError(_ file: String, useStdLib: Bool = true) -> String? {
-		
+
 		let runner = Runner(logDebug: false)
-		
-		
+
 		let fileURL = getFilePath(for: file, extension: "lion")
-		
+
 		guard let path = fileURL?.path else {
 			return nil
 		}
-		
+
 		guard let source = try? String(contentsOfFile: path, encoding: .utf8) else {
 			return nil
 		}
-		
+
 		do {
 			let _ = try runner.compileToBytecode(source)
 			return nil

		let error = "Cannot assign FunctionNode(prototype: FunctionPrototypeNode(name: bar, argumentNames: [], returns: false), \n    ) on line 4"
		assertCompileError(in: "AssignFunctionToVar", expectedError: error)
	}
	
	func assertCompileError(in file: String, expectedError: String, useStdLib: Bool = false) {
		
		guard let error = compileAndExpectError(file, useStdLib: useStdLib) else {
			
			let message = "[\(file).lion]: Expected error \"\(expectedError)\" but found: nil"
			
			XCTFail( message)
			
			return
		}
		
		guard error == expectedError else {
			let message = "[\(file).lion]: Expected error \"\(expectedError)\""
			XCTFail(message)

		} catch {
			return nil
		}

	}

}
