lnav/test/test_hist_source.cc
Timothy Stack b68a1bba9b [test] some cleanup for tests and other things
Just a cleanup pass
2012-06-05 13:18:59 -07:00

24 lines
389 B
C++

#include "config.h"
#include <stdio.h>
#include <assert.h>
#include "hist_source.hh"
int main(int argc, char *argv[])
{
int retval = EXIT_SUCCESS;
hist_source hs;
assert(hs.text_line_count() == 0);
hs.analyze();
hs.add_value(1, bucket_type_t(1));
assert(hs.text_line_count() == 101);
hs.add_value(2, bucket_type_t(1));
assert(hs.text_line_count() == 101);
return retval;
}