You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: range begin must be a NumberLiteral, not CharLiteral
Workaround
One could define the range of Chars as a range of bytes. However, most people would not recognize (0x41..0x5a) or (0x61..7a) as A-Z and a-z, so the readability of the code would be decreased.
The text was updated successfully, but these errors were encountered:
That's a use case, but sorry I don't think it's a very convincing one.
There is so much logic involved in building the test cases that it can't really serve the testing purpose very reliably. You have to be sure that the macro expressions work correctly as you intend them to do. But they're not validated. They could be completely wrong and run invalid test cases that wouldn't catch bugs in the tested method.
Discussion
Currently it is not possible to define a range of Chars in macros.
Example
Workaround
One could define the range of Chars as a range of bytes. However, most people would not recognize
(0x41..0x5a)
or(0x61..7a)
asA-Z
anda-z
, so the readability of the code would be decreased.The text was updated successfully, but these errors were encountered: