c6891f63f523b0af5109b79111f4d442fe78672f,tests/testLibrosaCore.py,,test_hz_to_octs,#,45
Before Change
pass
def test_hz_to_octs():
test_files = glob.glob("data/hz_to_octs*.mat")
test_files.sort()
def __check_hz_to_octs(infile):
DATA = scipy.io.loadmat(infile)
z = librosa.hz_to_octs(DATA["f"])
After Change
assert numpy.allclose(z, DATA["result"])
for infile in fileGenerator("data/*hz_to_octs-*.mat"):
yield (__check_hz_to_octs, infile)
pass
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: librosa/librosa
Commit Name: c6891f63f523b0af5109b79111f4d442fe78672f
Time: 2013-03-08
Author: brm2132@columbia.edu
File Name: tests/testLibrosaCore.py
Class Name:
Method Name: test_hz_to_octs
Project Name: librosa/librosa
Commit Name: c6891f63f523b0af5109b79111f4d442fe78672f
Time: 2013-03-08
Author: brm2132@columbia.edu
File Name: tests/testLibrosaCore.py
Class Name:
Method Name: test_load
Project Name: librosa/librosa
Commit Name: c6891f63f523b0af5109b79111f4d442fe78672f
Time: 2013-03-08
Author: brm2132@columbia.edu
File Name: tests/testLibrosaCore.py
Class Name:
Method Name: test_hz_to_mel
Project Name: librosa/librosa
Commit Name: c6891f63f523b0af5109b79111f4d442fe78672f
Time: 2013-03-08
Author: brm2132@columbia.edu
File Name: tests/testLibrosaCore.py
Class Name:
Method Name: test_mel_to_hz