diff options
author | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-12-20 22:31:20 +0100 |
---|---|---|
committer | Daniil Cherednik <dan.cherednik@gmail.com> | 2024-12-21 16:30:07 +0100 |
commit | 74d6e04c21bddd435bd74c34dbe027b883772a76 (patch) | |
tree | 4221df9da5a17897296e5f7f841f01b1f6428c74 /src/transient_detector_ut.cpp | |
parent | 78649b2f5941e0649db960cafb2997b5ca432be1 (diff) | |
download | atracdenc-74d6e04c21bddd435bd74c34dbe027b883772a76.tar.gz |
[refactoring] Get rid of TFloat parameter. Use float.
Diffstat (limited to 'src/transient_detector_ut.cpp')
-rw-r--r-- | src/transient_detector_ut.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transient_detector_ut.cpp b/src/transient_detector_ut.cpp index e41d4ac..95495ae 100644 --- a/src/transient_detector_ut.cpp +++ b/src/transient_detector_ut.cpp @@ -26,7 +26,7 @@ using std::vector; using namespace NAtracDEnc; TEST(AnalyzeGain, AnalyzeGainSimple) { - TFloat in[256]; + float in[256]; for (int i = 0; i < 256; ++i) { if (i <= 24) { in[i] = 1.0; @@ -38,10 +38,10 @@ TEST(AnalyzeGain, AnalyzeGainSimple) { in[i] = 0.5; } } - vector<TFloat> res = AnalyzeGain(in, 256, 32, false); + vector<float> res = AnalyzeGain(in, 256, 32, false); EXPECT_EQ(res.size(), 32); -// for (TFloat v : res) +// for (float v : res) // std::cout << v << std::endl; for (int i = 0; i < 3; ++i) EXPECT_EQ(res[i], 1.0); |