Functions
seq_of_seq_t.cc File Reference
#include "fhiclcpp/ParameterSet.h"
#include <cassert>
#include <string>
#include <vector>

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

int main ( void  )

Definition at line 12 of file seq_of_seq_t.cc.

13 {
14  string const doc = "v1: [[ ],[ 1],[-1, 2,3]]";
15  auto const p = ParameterSet::make(doc);
16  assert(p.get_names() == vector<string>({"v1"}));
17  auto vvi = p.get<vector<vector<int>>>("v1");
18  assert(vvi.size() == 3);
19  assert(vvi[0] == vector<int>());
20  assert(vvi[1] == vector<int>({1}));
21  assert(vvi[2] == vector<int>({-1, 2, 3}));
22 }
p
Definition: test.py:223
unique_ptr< InputSource > make(ParameterSet const &conf, InputSourceDescription &desc)
QCString doc