Skip to content

Commit 1114fcb

Browse files
committed
Remove FFT output to console in tests
1 parent 77f4651 commit 1114fcb

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

tests/yup_dsp/yup_FFTProcessor.cpp

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -206,53 +206,6 @@ class FFTProcessorValidation : public ::testing::Test
206206
};
207207

208208
//==============================================================================
209-
TEST_F (FFTProcessorValidation, FormatDiagnostic)
210-
{
211-
// Debug test to understand the actual FFT output format
212-
const int size = 64;
213-
FFTProcessor processor (size);
214-
215-
// Test with impulse signal
216-
std::vector<float> impulse (size, 0.0f);
217-
impulse[0] = 1.0f;
218-
219-
std::vector<float> output (size * 2);
220-
processor.performRealFFTForward (impulse.data(), output.data());
221-
222-
// Print key bins to understand format
223-
auto printKeyBins = [&] (const std::string& title)
224-
{
225-
std::cout << "\n"
226-
<< title << ":\n";
227-
std::cout << "DC (bin 0): [" << output[0] << ", " << output[1] << "]\n";
228-
std::cout << "Bin 1: [" << output[2] << ", " << output[3] << "]\n";
229-
std::cout << "Bin 2: [" << output[4] << ", " << output[5] << "]\n";
230-
std::cout << "...\n";
231-
int nyquist = size / 2;
232-
std::cout << "Nyquist (bin " << nyquist << "): [" << output[nyquist * 2] << ", " << output[nyquist * 2 + 1] << "]\n";
233-
std::cout << "Bin " << (nyquist + 1) << ": [" << output[(nyquist + 1) * 2] << ", " << output[(nyquist + 1) * 2 + 1] << "]\n";
234-
std::cout << "Last bin (" << (size - 1) << "): [" << output[(size - 1) * 2] << ", " << output[(size - 1) * 2 + 1] << "]\n";
235-
};
236-
237-
printKeyBins ("Impulse FFT output (size=" + std::to_string (size) + ")");
238-
239-
// Test with DC signal
240-
std::vector<float> dcSignal (size, 1.0f);
241-
processor.performRealFFTForward (dcSignal.data(), output.data());
242-
printKeyBins ("DC signal FFT output");
243-
244-
// Test with alternating signal (Nyquist frequency)
245-
std::vector<float> nyquistSignal (size);
246-
for (int i = 0; i < size; ++i)
247-
nyquistSignal[i] = (i % 2 == 0) ? 1.0f : -1.0f;
248-
249-
processor.performRealFFTForward (nyquistSignal.data(), output.data());
250-
printKeyBins ("Alternating signal FFT output");
251-
252-
// Always pass this test since it's just for debugging
253-
EXPECT_TRUE (true);
254-
}
255-
256209
TEST_F (FFTProcessorValidation, StandardFormatValidation)
257210
{
258211
const int size = 64;

0 commit comments

Comments
 (0)