Skip to content

Commit 7cd12ab

Browse files
fixing assertion always equating to false (#57)
1 parent efe7ab0 commit 7cd12ab

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

flags/pokemonflagset_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ func TestSetupPokemonFlagSet(t *testing.T) {
1616

1717
// Check types flag
1818
assert.NotNil(t, typesFlag, "Types flag should not be nil")
19-
assert.Equal(t, bool(false), *typesFlag, "Types flag name should be 'types'")
19+
assert.Equal(t, false, *typesFlag, "Types flag name should be 'types'")
2020

2121
// Check short types flag
22-
assert.NotNil(t, shortTypesFlag, "Types flag should not be nil")
23-
assert.Equal(t, bool(false), *shortTypesFlag, "Types flag name should be 't'")
22+
assert.NotNil(t, shortTypesFlag, "Short types flag should not be nil")
23+
assert.Equal(t, false, *shortTypesFlag, "Short types flag name should be 't'")
2424

2525
// Check abilities flag
2626
assert.NotNil(t, abilitiesFlag, "Abilities flag should not be nil")
27-
assert.Equal(t, bool(false), *abilitiesFlag, "Abilities flag name should be 'abilities'")
27+
assert.Equal(t, false, *abilitiesFlag, "Abilities flag name should be 'abilities'")
2828

2929
// Check short abilities flag
30-
assert.NotNil(t, shortAbilitiesFlag, "Abilities flag should not be nil")
31-
assert.Equal(t, bool(false), *shortAbilitiesFlag, "Abilities flag name should be 'a'")
30+
assert.NotNil(t, shortAbilitiesFlag, "Short abilities flag should not be nil")
31+
assert.Equal(t, false, *shortAbilitiesFlag, "Short abilities flag name should be 'a'")
3232
}

0 commit comments

Comments
 (0)