Skip to content

Commit 2bc01a0

Browse files
committed
Removed temporary test for private methods
1 parent f48277f commit 2bc01a0

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

AudioFile.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,8 @@ class AudioFile
212212

213213
//=============================================================
214214
int8_t sampleToSingleByte (T sample);
215-
public:
216215
T singleByteToSample (uint8_t sample);
217216
T singleByteToSample (int8_t sample);
218-
private:
219217
uint32_t getAiffSampleRate (std::vector<uint8_t>& fileData, int sampleRateStartIndex);
220218
bool tenByteMatch (std::vector<uint8_t>& v1, int startIndex1, std::vector<uint8_t>& v2, int startIndex2);
221219
void addSampleRateToAiffData (std::vector<uint8_t>& fileData, uint32_t sampleRate);

tests/GeneralTests.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,6 @@ TEST_SUITE ("General Tests")
110110
CHECK_EQ (resampleIntegerSample<int16_t, int8_t>(0), 0);
111111
CHECK_EQ (resampleIntegerSample<int8_t, int16_t>(-128), -32768);
112112
}
113-
114-
//=============================================================
115-
TEST_CASE ("GeneralTests::SingleByteToSample")
116-
{
117-
AudioFile<double> dummy;
118-
119-
CHECK_EQ (dummy.singleByteToSample((uint8_t)128), 0);
120-
CHECK_EQ (dummy.singleByteToSample((int8_t)0), 0);
121-
122-
CHECK (dummy.singleByteToSample((uint8_t)255) == doctest::Approx (1).epsilon (0.05));
123-
CHECK (dummy.singleByteToSample((uint8_t)0) == doctest::Approx (-1).epsilon (0.05));
124-
}
125113
//=============================================================
126114
TEST_CASE ("GeneralTests::IntegerFormat")
127115
{

0 commit comments

Comments
 (0)