aboutsummaryrefslogtreecommitdiff
path: root/opts_test.go
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-11-29 21:46:26 +0100
committerThomas Voss <mail@thomasvoss.com> 2023-11-29 21:46:26 +0100
commita6c83a3f1b14512a4138fb1744bafdf3f59caaa0 (patch)
tree06d389fd0a7186948d869d1991bd63e5d50fba31 /opts_test.go
parent21201921e2ff118ffa6119e155f79383a2d3dc64 (diff)
Add documentation comments
Diffstat (limited to 'opts_test.go')
-rw-r--r--opts_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/opts_test.go b/opts_test.go
index a972867..2ea9334 100644
--- a/opts_test.go
+++ b/opts_test.go
@@ -35,7 +35,7 @@ func TestNoFlag(t *testing.T) {
func TestCNoArg(t *testing.T) {
args := []string{"foo", "-c"}
- assertGet(t, args, 0, 0, ErrNoArgument('c'))
+ assertGet(t, args, 0, 0, NoArgumentError('c'))
}
func TestCWithArg(t *testing.T) {
@@ -200,12 +200,12 @@ func TestĪ›AsArgToC(t *testing.T) {
func TestInvalidFlag(t *testing.T) {
args := []string{"foo", "-X"}
- assertGet(t, args, 0, 0, ErrBadOption('X'))
+ assertGet(t, args, 0, 0, BadOptionError('X'))
}
func TestInvalidFlagWithArg(t *testing.T) {
args := []string{"foo", "-X", "bar"}
- assertGet(t, args, 0, 0, ErrBadOption('X'))
+ assertGet(t, args, 0, 0, BadOptionError('X'))
}
func TestAAfterArg(t *testing.T) {