Skip to content

Commit b8b6d79

Browse files
authored
Merge pull request #21 from mike919192/fill
Replace std fill with member function fill
2 parents 7a8246b + 430b1cb commit b8b6d79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/testIIR.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ TEST_CASE("Filter test")
8585

8686
{
8787
std::array<double, 1024> steadyLP;
88-
std::fill(steadyLP.begin(), steadyLP.end(), steadyValue);
88+
steadyLP.fill(steadyValue);
8989
sdsp::casc2orderIIR<4> lpFilter;
9090
lpFilter.SetLPCoeff(f0, fs);
9191
lpFilter.PreloadFilter(steadyValue);
@@ -98,7 +98,7 @@ TEST_CASE("Filter test")
9898

9999
{
100100
std::array<double, 1024> steadyHP;
101-
std::fill(steadyHP.begin(), steadyHP.end(), steadyValue);
101+
steadyHP.fill(steadyValue);
102102
sdsp::casc2orderIIR<4> hpFilter;
103103
hpFilter.SetHPCoeff(f0, fs);
104104
hpFilter.PreloadFilter(steadyValue);
@@ -111,7 +111,7 @@ TEST_CASE("Filter test")
111111

112112
{
113113
std::array<double, 1024> steadyBP;
114-
std::fill(steadyBP.begin(), steadyBP.end(), steadyValue);
114+
steadyBP.fill(steadyValue);
115115
sdsp::casc2orderIIR<4> bpFilter;
116116
bpFilter.SetBPCoeff(f0, fs, Q);
117117
bpFilter.PreloadFilter(steadyValue);

0 commit comments

Comments
 (0)