Jpp  18.2.1-ARCA-DF-PATCH
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Functions
test_head Namespace Reference

Functions

def test_multi_tag
 

Function Documentation

def test_head.test_multi_tag ( )

Definition at line 7 of file test_head.py.

7 
8 def test_multi_tag():
9  h = ROOT.Head()
10 
11  h.set_line("seed", "42")
12  h.set_line("detector", "aaa bbb")
13  h.set_line("detector", "ccc ddd")
14  h.set_line("detector", "ccc ddd eee")
15 
16  ROOT.write(h, ROOT.std.cout)
17 
18  keys = h.matching_keys("detector")
19  print("keys = ", keys)
20 
21  v = h.get_lines("detector")
22  lines = list( v ) # okay, but keep v alive
23  print(lines)
24 
25  if lines == ['aaa bbb', 'ccc ddd', 'ccc ddd eee']:
26  return 0
27 
28  print("failure")
29  return 1
30 
31 
print
Definition: JConvertDusj.sh:44
def test_multi_tag
Definition: test_head.py:7