This assert works fine. However, the test will pass even if the exception thrown is not `std::invalid_argument`. You can assert an exception of a specific type using this macro:

```c++
ASSERT_THROW(divide("5", "0"), std::invalid_argument);
```