Skip to content

Commit 28ab018

Browse files
committed
also test for expression in generics
1 parent 158c626 commit 28ab018

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/arduino.cc/builder/test/ctags_runner_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func TestCTagsRunnerSketchWithTemplates(t *testing.T) {
271271
}
272272

273273
sketchLocation = strings.Replace(sketchLocation, "\\", "\\\\", -1)
274-
expectedOutput := "printGyro\t" + sketchLocation + "\t/^void printGyro()$/;\"\tkind:function\tline:8\tsignature:()\treturntype:void\n"
274+
expectedOutput := "printGyro\t" + sketchLocation + "\t/^void printGyro()$/;\"\tkind:function\tline:10\tsignature:()\treturntype:void\n"
275275

276276
require.Equal(t, expectedOutput, strings.Replace(context[constants.CTX_CTAGS_OUTPUT].(string), "\r\n", "\n", -1))
277277
}

src/arduino.cc/builder/test/sketch_with_templates_and_shift/template_and_shift.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
template<> class FastPin<0> : public _ARMPIN<0, 10, 1 << 10, 0> {};;
22

3+
template<> class FastPin<0> : public _ARMPIN<0, 10, 1 < 10, 0> {};;
4+
35
template <class SomeType, template <class> class OtherType> class NestedTemplateClass
46
{
57
OtherType<SomeType> f;

0 commit comments

Comments
 (0)