Jordan Rupprecht
1eeeab82c6
[lldb][test] Modernize assertEqual(value, bool) ( #82526 )
...
Any time we see the pattern `assertEqual(value, bool)`, we can replace
that with `assert<bool>(value)`. Likewise for `assertNotEqual`.
Technically this relaxes the test a bit, as we may want to make sure
`value` is either `True` or `False`, and not something that implicitly
converts to a bool. For example, `assertEqual("foo", True)` will fail,
but `assertTrue("foo")` will not. In most cases, this distinction is not
important.
There are two such places that this patch does **not** transform, since
it seems intentional that we want the result to be a bool:
*
5daf2001a1/lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py (L90)
*
5daf2001a1/lldb/test/API/commands/settings/TestSettings.py (L940)
Followup to 9c2468821ec51defd09c246fea4a47886fff8c01. I patched `teyit`
with a `visit_assertEqual` node handler to generate this.
2024-02-21 20:39:02 -06:00
..
2023-05-25 12:54:09 -07:00
2023-03-21 10:42:24 -07:00
2024-02-21 13:02:30 -06:00
2024-02-21 13:02:30 -06:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-21 20:39:02 -06:00
2023-05-25 12:54:09 -07:00
2024-02-20 16:28:48 -08:00
2023-05-25 12:54:09 -07:00
2024-02-21 13:02:30 -06:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-16 20:58:50 -08:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-09-11 16:44:12 +00:00
2024-02-16 20:58:50 -08:00
2023-05-25 12:54:09 -07:00
2024-02-15 22:54:00 -08:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-21 20:39:02 -06:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-15 22:54:00 -08:00
2023-06-16 14:51:14 -07:00
2023-09-11 16:44:12 +00:00
2024-02-13 16:19:41 -06:00
2023-05-25 12:54:09 -07:00
2024-02-14 15:53:19 -06:00
2023-05-25 12:54:09 -07:00
2024-02-16 20:58:50 -08:00
2023-05-25 12:54:09 -07:00
2024-02-16 20:58:50 -08:00
2023-09-11 17:12:09 +01:00
2023-05-25 12:54:09 -07:00
2023-12-13 16:30:39 -08:00
2023-05-25 12:54:09 -07:00
2024-02-16 20:58:50 -08:00
2024-02-16 21:45:08 -08:00
2024-02-21 20:39:02 -06:00
2023-05-25 12:54:09 -07:00
2024-02-21 13:02:30 -06:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2022-11-13 14:21:55 -08:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-16 20:58:50 -08:00
2023-05-25 12:54:09 -07:00
2024-02-05 17:40:28 -08:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-16 20:58:50 -08:00
2023-05-25 12:54:09 -07:00
2024-02-21 13:02:30 -06:00
2024-01-16 14:35:39 -08:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-21 13:02:30 -06:00
2023-05-25 12:54:09 -07:00
2024-02-21 13:02:30 -06:00
2023-05-25 12:54:09 -07:00
2023-09-08 13:04:48 +00:00
2024-02-21 13:02:30 -06:00
2024-02-16 20:58:50 -08:00
2024-02-21 20:39:02 -06:00
2024-01-29 11:01:08 -08:00
2024-02-21 13:02:30 -06:00
2024-02-21 13:02:30 -06:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-16 20:58:50 -08:00
2023-05-25 12:54:09 -07:00
2024-02-21 13:02:30 -06:00
2023-05-25 12:54:09 -07:00
2024-02-21 20:39:02 -06:00
2024-02-21 13:02:30 -06:00
2024-02-21 13:02:30 -06:00
2024-02-13 16:19:41 -06:00
2024-02-15 22:54:00 -08:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-16 20:58:50 -08:00
2023-05-25 12:54:09 -07:00
2024-02-21 13:02:30 -06:00
2024-02-16 20:58:50 -08:00
2024-02-16 20:58:50 -08:00
2024-02-16 20:58:50 -08:00
2024-02-05 18:45:01 -08:00
2024-02-16 21:45:08 -08:00