Functions
test_chirping.cxx File Reference
#include "WireCellSigProc/Diagnostics.h"
#include "WireCellUtil/Waveform.h"
#include "WireCellUtil/Testing.h"
#include <iostream>
#include <string>
#include <vector>
#include "example-chirping.h"

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 20 of file test_chirping.cxx.

21 {
22  int beg=-1, end=-1;
23  Diagnostics::Chirp chirp;
24  bool found = chirp(horig, beg, end);
25  Assert(found);
26 
27  // the function should find something starting at the beginning.
28  Assert(beg == 0);
29  Assert(end == 3720);
30  return 0;
31 }
std::vector< float > horig
Definition: example-chirp.h:1
#define Assert
Definition: Testing.h:7
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
Definition: StdUtils.h:72