Skip to content

Commit

Permalink
Expose #63
Browse files Browse the repository at this point in the history
  • Loading branch information
richelbilderbeek committed Jan 31, 2024
1 parent e6609fc commit 71f2388
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ball.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,10 @@ void test_ball()
b.set_y(y);
assert(b.get_y() == y);
}
// 63: Can compare two balls
{
const ball a;
const ball b;
assert(a == b);

Check failure on line 42 in ball.cpp

View workflow job for this annotation

GitHub Actions / lint

ball.cpp:42:14 [clang-diagnostic-error]

invalid operands to binary expression ('const ball' and 'const ball')
}
}

0 comments on commit 71f2388

Please sign in to comment.