Page MenuHomeHEPForge

test_CircularMapper1d.cc
No OneTemporary

Size
440 B
Referenced Files
None
Subscribers
None

test_CircularMapper1d.cc

#include <sstream>
#include "UnitTest++.h"
#include "test_utils.hh"
#include "npstat/nm/CircularMapper1d.hh"
using namespace npstat;
using namespace std;
namespace {
TEST(CircularMapper1d)
{
const double per = M_PI;
CircularMapper1d mapper(0.1, 0.01, per);
for (int i=-1000; i<1000; ++i)
{
double result = mapper(i);
CHECK(std::abs(result) <= per/2.0);
}
}
}

File Metadata

Mime Type
text/x-c
Expires
Tue, Sep 30, 5:46 AM (1 d, 8 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
6552946
Default Alt Text
test_CircularMapper1d.cc (440 B)

Event Timeline