diff --git a/exercises/practice/queen-attack/.meta/example.py b/exercises/practice/queen-attack/.meta/example.py index e9ae242ff2..867b5b194f 100644 --- a/exercises/practice/queen-attack/.meta/example.py +++ b/exercises/practice/queen-attack/.meta/example.py @@ -1,11 +1,11 @@ class Queen: def __init__(self, row, column): if row < 0: - raise ValueError('row not positive') + raise ValueError('row is negative') if not 0 <= row <= 7: raise ValueError('row not on board') if column < 0: - raise ValueError('column not positive') + raise ValueError('column is negative') if not 0 <= column <= 7: raise ValueError('column not on board') self.row = row diff --git a/exercises/practice/queen-attack/queen_attack_test.py b/exercises/practice/queen-attack/queen_attack_test.py index e1289aebce..5e68986ebf 100644 --- a/exercises/practice/queen-attack/queen_attack_test.py +++ b/exercises/practice/queen-attack/queen_attack_test.py @@ -18,7 +18,7 @@ def test_queen_must_have_positive_row(self): with self.assertRaises(ValueError) as err: Queen(-2, 2) self.assertEqual(type(err.exception), ValueError) - self.assertEqual(err.exception.args[0], "row not positive") + self.assertEqual(err.exception.args[0], "row is negative") def test_queen_must_have_row_on_board(self): with self.assertRaises(ValueError) as err: @@ -30,7 +30,7 @@ def test_queen_must_have_positive_column(self): with self.assertRaises(ValueError) as err: Queen(2, -2) self.assertEqual(type(err.exception), ValueError) - self.assertEqual(err.exception.args[0], "column not positive") + self.assertEqual(err.exception.args[0], "column is negative") def test_queen_must_have_column_on_board(self): with self.assertRaises(ValueError) as err: