Everything is a buffer
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#include <delay/buffer_multi.hpp>
|
||||
#include <delay/buffer.hpp>
|
||||
#include <cstdio>
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#ifndef TEST_COMMON_H
|
||||
#define TEST_COMMON_H
|
||||
|
||||
template<typename T>
|
||||
void print(const dsp::Buffer<T> &v, size_t size, std::string name=std::string(""))
|
||||
{
|
||||
std::cout << "----------------------------------------------" << std::endl;
|
||||
std::cout << "-" << name << std::endl;
|
||||
std::cout << "----------------------------------------------" << std::endl;
|
||||
for(int i=0; i < size; i++)
|
||||
{
|
||||
std::cout << v[i] << std::endl;
|
||||
}
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
bool check(const dsp::Buffer<T> &target, const dsp::Buffer<T> &actual)
|
||||
{
|
||||
assert(target == actual);
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user