Skip to content

Commit

Permalink
lhef: more Decoder tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dolmen authored and sbinet committed May 10, 2022
1 parent cbb4935 commit 9c5c566
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions lhef/reader_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ func TestLhefReading(t *testing.T) {
t.Error(err)
}

n := int(dec.Run.NPRUP)
if len(dec.Run.XSECUP) != n || cap(dec.Run.XSECUP) != n {
t.Errorf("invalid XSECUP len")
}
if len(dec.Run.XERRUP) != n || cap(dec.Run.XERRUP) != n {
t.Errorf("invalid XRERUP len")
}
if len(dec.Run.XMAXUP) != n || cap(dec.Run.XMAXUP) != n {
t.Errorf("invalid XMAXUP len")
}
if len(dec.Run.LPRUP) != n || cap(dec.Run.LPRUP) != n {
t.Errorf("invalid LPRUP len")
}

for i := 0; ; i++ {
if r_debug {
fmt.Printf("===[%d]===\n", i)
Expand Down

0 comments on commit 9c5c566

Please sign in to comment.