Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /npsim/src/tools/tests/unit_settings.cxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 #include <iostream>
0002 #include <string>
0003 
0004 #include "settings.h"
0005 
0006 int main() {
0007   bool ok = true;
0008 
0009   ok = ok && (ensure_step_extension("detector") == "detector.stp");
0010   ok = ok && (ensure_step_extension("detector.stp") == "detector.stp");
0011   ok = ok && (ensure_step_extension("a.long.name.step") == "a.long.name.step.stp");
0012 
0013   if (!ok) {
0014     std::cerr << "settings unit checks failed\n";
0015     return 1;
0016   }
0017 
0018   return 0;
0019 }