Functions
printing_helpers_t.cc File Reference
#include "fhiclcpp/detail/printing_helpers.h"
#include "fhiclcpp/exception.h"
#include <cassert>
#include <string>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( void  )

Definition at line 27 of file printing_helpers_t.cc.

28 {
29  assert(index_for_sequence_element("a[0]") == 0);
30  assert(index_for_sequence_element("a[5][7]") == 7);
31  assert(index_for_sequence_element("a.b.c[15]") == 15);
32  assert(not_sequence_element("a"));
33  assert(not_sequence_element("a]19["));
34 }
std::size_t index_for_sequence_element(std::string const &name)