@@ -78,6 +78,7 @@ func TestCTagsRunner(t *testing.T) {
78
78
NoError (t , err )
79
79
}
80
80
81
+ sketchLocation = strings .Replace (sketchLocation , "\\ " , "\\ \\ " , - 1 )
81
82
expectedOutput := "server " + sketchLocation + " /^BridgeServer server;$/;\" kind:variable line:31\n " +
82
83
"setup " + sketchLocation + " /^void setup() {$/;\" kind:function line:33 signature:() returntype:void\n " +
83
84
"loop " + sketchLocation + " /^void loop() {$/;\" kind:function line:46 signature:() returntype:void\n " +
@@ -127,6 +128,7 @@ func TestCTagsRunnerSketchWithClass(t *testing.T) {
127
128
NoError (t , err )
128
129
}
129
130
131
+ sketchLocation = strings .Replace (sketchLocation , "\\ " , "\\ \\ " , - 1 )
130
132
expectedOutput := "set_values\t " + sketchLocation + "\t /^ void set_values (int,int);$/;\" \t kind:prototype\t line:4\t class:Rectangle\t signature:(int,int)\t returntype:void\n " +
131
133
"area\t " + sketchLocation + "\t /^ int area() {return width*height;}$/;\" \t kind:function\t line:5\t class:Rectangle\t signature:()\t returntype:int\n " +
132
134
"set_values\t " + sketchLocation + "\t /^void Rectangle::set_values (int x, int y) {$/;\" \t kind:function\t line:8\t class:Rectangle\t signature:(int x, int y)\t returntype:void\n " +
@@ -174,6 +176,7 @@ func TestCTagsRunnerSketchWithTypename(t *testing.T) {
174
176
NoError (t , err )
175
177
}
176
178
179
+ sketchLocation = strings .Replace (sketchLocation , "\\ " , "\\ \\ " , - 1 )
177
180
expectedOutput := "Foo\t " + sketchLocation + "\t /^ struct Foo{$/;\" \t kind:struct\t line:2\n " +
178
181
"setup\t " + sketchLocation + "\t /^void setup() {$/;\" \t kind:function\t line:6\t signature:()\t returntype:void\n " +
179
182
"loop\t " + sketchLocation + "\t /^void loop() {}$/;\" \t kind:function\t line:10\t signature:()\t returntype:void\n " +
@@ -220,6 +223,7 @@ func TestCTagsRunnerSketchWithNamespace(t *testing.T) {
220
223
NoError (t , err )
221
224
}
222
225
226
+ sketchLocation = strings .Replace (sketchLocation , "\\ " , "\\ \\ " , - 1 )
223
227
expectedOutput := "value\t " + sketchLocation + "\t /^\t int value() {$/;\" \t kind:function\t line:2\t namespace:Test\t signature:()\t returntype:int\n " +
224
228
"setup\t " + sketchLocation + "\t /^void setup() {}$/;\" \t kind:function\t line:7\t signature:()\t returntype:void\n " +
225
229
"loop\t " + sketchLocation + "\t /^void loop() {}$/;\" \t kind:function\t line:8\t signature:()\t returntype:void\n "
0 commit comments