Update arg_def_case_fuzz.cc
This commit is contained in:
parent
a2866288eb
commit
7b232a3ee4
@ -28,12 +28,11 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
|
||||
|
||||
tensorflow::StringPiece sp(char_data, size);
|
||||
|
||||
tensorflow::str_util::ArgDefCase(sp);
|
||||
for (const auto &c : sp) {
|
||||
std::string ns = tensorflow::str_util::ArgDefCase(sp);
|
||||
for (const auto &c : ns) {
|
||||
const bool is_letter = 'a' <= c && c <= 'z';
|
||||
const bool is_digit = '0' <= c && c <= '9';
|
||||
if (!is_letter && !is_digit) {
|
||||
printf("Got '%c'\n", c);
|
||||
assert(c == '_');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user