@@ -78,6 +78,7 @@ func TestCTagsRunner(t *testing.T) {
7878 NoError (t , err )
7979 }
8080
81+ sketchLocation = strings .Replace (sketchLocation , "\\ " , "\\ \\ " , - 1 )
8182 expectedOutput := "server " + sketchLocation + " /^BridgeServer server;$/;\" kind:variable line:31\n " +
8283 "setup " + sketchLocation + " /^void setup() {$/;\" kind:function line:33 signature:() returntype:void\n " +
8384 "loop " + sketchLocation + " /^void loop() {$/;\" kind:function line:46 signature:() returntype:void\n " +
@@ -127,6 +128,7 @@ func TestCTagsRunnerSketchWithClass(t *testing.T) {
127128 NoError (t , err )
128129 }
129130
131+ sketchLocation = strings .Replace (sketchLocation , "\\ " , "\\ \\ " , - 1 )
130132 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 " +
131133 "area\t " + sketchLocation + "\t /^ int area() {return width*height;}$/;\" \t kind:function\t line:5\t class:Rectangle\t signature:()\t returntype:int\n " +
132134 "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) {
174176 NoError (t , err )
175177 }
176178
179+ sketchLocation = strings .Replace (sketchLocation , "\\ " , "\\ \\ " , - 1 )
177180 expectedOutput := "Foo\t " + sketchLocation + "\t /^ struct Foo{$/;\" \t kind:struct\t line:2\n " +
178181 "setup\t " + sketchLocation + "\t /^void setup() {$/;\" \t kind:function\t line:6\t signature:()\t returntype:void\n " +
179182 "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) {
220223 NoError (t , err )
221224 }
222225
226+ sketchLocation = strings .Replace (sketchLocation , "\\ " , "\\ \\ " , - 1 )
223227 expectedOutput := "value\t " + sketchLocation + "\t /^\t int value() {$/;\" \t kind:function\t line:2\t namespace:Test\t signature:()\t returntype:int\n " +
224228 "setup\t " + sketchLocation + "\t /^void setup() {}$/;\" \t kind:function\t line:7\t signature:()\t returntype:void\n " +
225229 "loop\t " + sketchLocation + "\t /^void loop() {}$/;\" \t kind:function\t line:8\t signature:()\t returntype:void\n "
0 commit comments