Skip to content

Commit ac72b0d

Browse files
updating tests
1 parent 47545a3 commit ac72b0d

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

cmd/natures_test.go

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,23 @@ func TestNaturesCommand(t *testing.T) {
6262
{
6363
name: "Full Natures output with table",
6464
args: []string{"natures"},
65-
expectedOutput: `Natures affect the growth of a Pokémon.
66-
Each nature increases one of its stats by 10% and decreases one by 10%.
67-
Five natures increase and decrease the same stat and therefore have no effect.
68-
69-
Nature Chart:
70-
┌──────────┬─────────┬──────────┬──────────┬──────────┬─────────┐
71-
│ │ -Attack │ -Defense │ -Sp. Atk │ -Sp. Def │ Speed │
72-
├──────────┼─────────┼──────────┼──────────┼──────────┼─────────┤
73-
│ +Attack │ Hardy │ Lonely │ Adamant │ Naughty │ Brave │
74-
├──────────┼─────────┼──────────┼──────────┼──────────┼─────────┤
75-
│ +Defense │ Bold │ Docile │ Impish │ Lax │ Relaxed │
76-
├──────────┼─────────┼──────────┼──────────┼──────────┼─────────┤
77-
│ +Sp. Atk │ Modest │ Mild │ Bashful │ Rash │ Quiet │
78-
├──────────┼─────────┼──────────┼──────────┼──────────┼─────────┤
79-
│ +Sp. Def │ Calm │ Gentle │ Careful │ Quirky │ Sassy │
80-
├──────────┼─────────┼──────────┼──────────┼──────────┼─────────┤
81-
│ Speed │ Timid │ Hasty │ Jolly │ Naive │ Serious │
82-
└──────────┴─────────┴──────────┴──────────┴──────────┴─────────┘
83-
`,
65+
expectedOutput: "Natures affect the growth of a Pokémon.\n" +
66+
"Each nature increases one of its stats by 10% and decreases one by 10%.\n" +
67+
"Five natures increase and decrease the same stat and therefore have no effect.\n\n" +
68+
"Nature Chart:\n" +
69+
"┌──────────┬─────────┬──────────┬──────────┬──────────┬─────────┐\n" +
70+
"│ │ -Attack │ -Defense │ -Sp. Atk │ -Sp. Def │ Speed │\n" +
71+
"├──────────┼─────────┼──────────┼──────────┼──────────┼─────────┤\n" +
72+
"│ +Attack │ Hardy │ Lonely │ Adamant │ Naughty │ Brave │\n" +
73+
"├──────────┼─────────┼──────────┼──────────┼──────────┼─────────┤\n" +
74+
"│ +Defense │ Bold │ Docile │ Impish │ Lax │ Relaxed │\n" +
75+
"├──────────┼─────────┼──────────┼──────────┼──────────┼─────────┤\n" +
76+
"│ +Sp. Atk │ Modest │ Mild │ Bashful │ Rash │ Quiet │\n" +
77+
"├──────────┼─────────┼──────────┼──────────┼──────────┼─────────┤\n" +
78+
"│ +Sp. Def │ Calm │ Gentle │ Careful │ Quirky │ Sassy │\n" +
79+
"├──────────┼─────────┼──────────┼──────────┼──────────┼─────────┤\n" +
80+
"│ Speed │ Timid │ Hasty │ Jolly │ Naive │ Serious │\n" +
81+
"└──────────┴─────────┴──────────┴──────────┴──────────┴─────────┘\n",
8482
expectedError: false,
8583
},
8684
}

0 commit comments

Comments
 (0)