From 7a603dcb989d11deaae29239a2e54fc1e5e92c0a Mon Sep 17 00:00:00 2001 From: John Wellbelove Date: Sun, 11 Apr 2021 14:38:57 +0100 Subject: [PATCH] Corrected spelling of quantize --- support/Release notes.txt | 2 +- test/{test_quantatize.cpp => test_quantize.cpp} | 8 ++++---- test/vs2019/etl.vcxproj | 5 ++++- test/vs2019/etl.vcxproj.filters | 7 ++++++- 4 files changed, 15 insertions(+), 7 deletions(-) rename test/{test_quantatize.cpp => test_quantize.cpp} (93%) diff --git a/support/Release notes.txt b/support/Release notes.txt index 655f592b..add159d2 100644 --- a/support/Release notes.txt +++ b/support/Release notes.txt @@ -14,7 +14,7 @@ Added maths algorithms and functors. etl::mean etl::invert etl::threshold - etl::quantatization + etl::quantize etl::limiter etl::rescale etl::rms diff --git a/test/test_quantatize.cpp b/test/test_quantize.cpp similarity index 93% rename from test/test_quantatize.cpp rename to test/test_quantize.cpp index cd075c3d..2d83bb00 100644 --- a/test/test_quantatize.cpp +++ b/test/test_quantize.cpp @@ -101,9 +101,9 @@ namespace //************************************************************************* TEST(test_int_quantatise) { - IntQuantatise quantatise(thresholds1.data(), quantatisations1.data(), quantatisations1.size()); + IntQuantatise quantize (thresholds1.data(), quantatisations1.data(), quantatisations1.size()); - std::transform(input1.begin(), input1.end(), output1.begin(), quantatise); + std::transform(input1.begin(), input1.end(), output1.begin(), quantize ); bool isEqual = std::equal(output1.begin(), output1.end(), result1a.begin()); CHECK(isEqual); @@ -112,9 +112,9 @@ namespace //************************************************************************* TEST(test_double_quantatise) { - DoubleQuantatise quantatise(thresholds2.data(), quantatisations2.data(), quantatisations2.size()); + DoubleQuantatise quantize (thresholds2.data(), quantatisations2.data(), quantatisations2.size()); - std::transform(input2.begin(), input2.end(), output2.begin(), quantatise); + std::transform(input2.begin(), input2.end(), output2.begin(), quantize ); bool isEqual = std::equal(output2.begin(), output2.end(), result2a.begin(), Compare()); CHECK(isEqual); diff --git a/test/vs2019/etl.vcxproj b/test/vs2019/etl.vcxproj index 86297d95..b425bbd5 100644 --- a/test/vs2019/etl.vcxproj +++ b/test/vs2019/etl.vcxproj @@ -4597,7 +4597,7 @@ - + @@ -4730,6 +4730,9 @@ + + + diff --git a/test/vs2019/etl.vcxproj.filters b/test/vs2019/etl.vcxproj.filters index b2fd55b1..7aae167f 100644 --- a/test/vs2019/etl.vcxproj.filters +++ b/test/vs2019/etl.vcxproj.filters @@ -2447,7 +2447,7 @@ Source Files - + Source Files @@ -2595,4 +2595,9 @@ Resource Files\Images + + + Resource Files + + \ No newline at end of file