Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

Commit

Permalink
major codec update
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseCoretta committed May 12, 2024
1 parent c51dd2a commit 6c99de4
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions nanf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,23 @@ func TestBogusNameAndNumberForm(t *testing.T) {
t.Errorf("%s failed: parsed bogus string value without error", t.Name())
}
}

func TestParseNaNFStr(t *testing.T) {
for idx, slice := range []string {
`cn(3)`,
`identifier(-3)`,
} {
nanf, err := parseNaNFstr(slice)

Check failure on line 122 in nanf_test.go

View workflow job for this annotation

GitHub Actions / build

nanf declared but not used
if err != nil {
if idx%2 == 0 {
t.Errorf("%s failed: unexpected error: %v", t.Name(), err)
}
continue
} else {
if idx%2 != 0 {
t.Errorf("%s failed: expected error, got nothing", t.Name())
continue
}
}
}
}

0 comments on commit 6c99de4

Please # to comment.