| 3194 | } |
| 3195 | |
| 3196 | void validate_newPauliStrNumChars(int numPaulis, int numIndices, const char* caller) { |
| 3197 | |
| 3198 | // this is a C++-only validation, because only std::string gaurantees we can know |
| 3199 | // the passed string length (C char arrays might not contain termination char) |
| 3200 | tokenSubs vars = {{"${NUM_PAULIS}", numPaulis}, {"${NUM_INDS}", numIndices}}; |
| 3201 | assertThat(numPaulis == numIndices, report::NEW_PAULI_STR_DIFFERENT_NUM_CHARS_AND_INDICES, vars, caller); |
| 3202 | } |
| 3203 | |
| 3204 | |
| 3205 |
no test coverage detected