Do the default func test last so we can see what the failure is on more explicitly

This commit is contained in:
Kovid Goyal
2024-02-11 13:16:38 +05:30
parent ede4d7fbca
commit b021e9b648
3 changed files with 11 additions and 7 deletions

View File

@@ -118,6 +118,10 @@ test_find_either_of_two_bytes(PyObject *self UNUSED, PyObject *args) {
func = find_either_of_two_bytes_128; break;
case 3:
func = find_either_of_two_bytes_256; break;
case 0: break;
default:
PyErr_SetString(PyExc_ValueError, "Unknown which_function");
return NULL;
}
uint8_t *abuf;
if (posix_memalign((void**)&abuf, 64, 256 + buf.len) != 0) {