aboutsummaryrefslogtreecommitdiff
path: root/opts_test.go
diff options
context:
space:
mode:
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) {