@@ -76,8 +76,9 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckChannelFrequencyStarts) {
7676 kSampleRate , kSpectrumSize ));
7777
7878 const int16_t expected[] = {0 , 4 , 8 };
79- TF_LITE_MICRO_EXPECT_EQ (state.num_channels + 1 ,
80- static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
79+ TF_LITE_MICRO_EXPECT_EQ (
80+ state.num_channels + 1 ,
81+ static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
8182 int i;
8283 for (i = 0 ; i <= state.num_channels ; ++i) {
8384 TF_LITE_MICRO_EXPECT_EQ (state.channel_frequency_starts [i], expected[i]);
@@ -93,8 +94,9 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckChannelWeightStarts) {
9394 kSampleRate , kSpectrumSize ));
9495
9596 const int16_t expected[] = {0 , 8 , 16 };
96- TF_LITE_MICRO_EXPECT_EQ (state.num_channels + 1 ,
97- static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
97+ TF_LITE_MICRO_EXPECT_EQ (
98+ state.num_channels + 1 ,
99+ static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
98100 int i;
99101 for (i = 0 ; i <= state.num_channels ; ++i) {
100102 TF_LITE_MICRO_EXPECT_EQ (state.channel_weight_starts [i], expected[i]);
@@ -110,8 +112,9 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckChannelWidths) {
110112 kSampleRate , kSpectrumSize ));
111113
112114 const int16_t expected[] = {8 , 8 , 8 };
113- TF_LITE_MICRO_EXPECT_EQ (state.num_channels + 1 ,
114- static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
115+ TF_LITE_MICRO_EXPECT_EQ (
116+ state.num_channels + 1 ,
117+ static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
115118 int i;
116119 for (i = 0 ; i <= state.num_channels ; ++i) {
117120 TF_LITE_MICRO_EXPECT_EQ (state.channel_widths [i], expected[i]);
@@ -129,9 +132,10 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckWeights) {
129132 const int16_t expected[] = {0 , 3277 , 2217 , 1200 , 222 , 0 , 0 , 0 ,
130133 0 , 3376 , 2468 , 1591 , 744 , 0 , 0 , 0 ,
131134 0 , 4020 , 3226 , 2456 , 1708 , 983 , 277 , 0 };
132- TF_LITE_MICRO_EXPECT_EQ (state.channel_weight_starts [state.num_channels ] +
133- state.channel_widths [state.num_channels ],
134- static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
135+ TF_LITE_MICRO_EXPECT_EQ (
136+ state.channel_weight_starts [state.num_channels ] +
137+ state.channel_widths [state.num_channels ],
138+ static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
135139 for (size_t i = 0 ; i < sizeof (expected) / sizeof (expected[0 ]); ++i) {
136140 TF_LITE_MICRO_EXPECT_EQ (state.weights [i], expected[i]);
137141 }
@@ -148,9 +152,10 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckUnweights) {
148152 const int16_t expected[] = {0 , 819 , 1879 , 2896 , 3874 , 0 , 0 , 0 ,
149153 0 , 720 , 1628 , 2505 , 3352 , 0 , 0 , 0 ,
150154 0 , 76 , 870 , 1640 , 2388 , 3113 , 3819 , 0 };
151- TF_LITE_MICRO_EXPECT_EQ (state.channel_weight_starts [state.num_channels ] +
152- state.channel_widths [state.num_channels ],
153- static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
155+ TF_LITE_MICRO_EXPECT_EQ (
156+ state.channel_weight_starts [state.num_channels ] +
157+ state.channel_widths [state.num_channels ],
158+ static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
154159 for (size_t i = 0 ; i < sizeof (expected) / sizeof (expected[0 ]); ++i) {
155160 TF_LITE_MICRO_EXPECT_EQ (state.unweights [i], expected[i]);
156161 }
@@ -204,8 +209,9 @@ TF_LITE_MICRO_TEST(FilterbankTest_CheckSqrt) {
204209 uint32_t * scaled_filterbank = FilterbankSqrt (&state, kScaleShift );
205210
206211 const uint32_t expected[] = {247311 , 508620 };
207- TF_LITE_MICRO_EXPECT_EQ (state.num_channels ,
208- static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
212+ TF_LITE_MICRO_EXPECT_EQ (
213+ state.num_channels ,
214+ static_cast <int >(sizeof (expected) / sizeof (expected[0 ])));
209215 int i;
210216 for (i = 0 ; i < state.num_channels ; ++i) {
211217 TF_LITE_MICRO_EXPECT_EQ (scaled_filterbank[i], expected[i]);
0 commit comments