()
| 196 | assert identifier in C11_STDLIB_IDENTIFIERS[headerfile], f"{identifier} of C99 not found in C11_STDLIB_IDENTIFIERS" |
| 197 | |
| 198 | def test_isStdLibId(): |
| 199 | # Check that Identifiers from C90 are correctly classified |
| 200 | assert isStdLibId("assert", 'c89') is True |
| 201 | assert isStdLibId("assert", 'c99') is True |
| 202 | assert isStdLibId("assert", 'c11') is True |
| 203 | assert isStdLibId("assert", 'c23') is True |
| 204 | |
| 205 | # Check that Identifiers from C99 are correctly classified |
| 206 | assert isStdLibId("UINT32_C", 'c89') is False |
| 207 | assert isStdLibId("UINT32_C", 'c99') is True |
| 208 | assert isStdLibId("UINT32_C", 'c11') is True |
| 209 | assert isStdLibId("UINT32_C", 'c23') is True |
| 210 | |
| 211 | # Check that Identifiers from C11 are correctly classified |
| 212 | assert isStdLibId("sprintf_s", 'c89') is False |
| 213 | assert isStdLibId("sprintf_s", 'c99') is False |
| 214 | assert isStdLibId("sprintf_s", 'c11') is True |
| 215 | assert isStdLibId("sprintf_s", 'c23') is True |
| 216 | |
| 217 | # Function Defaulting to C99 |
| 218 | assert isStdLibId("assert") is True |
| 219 | assert isStdLibId("UINT32_C") is True |
| 220 | assert isStdLibId("sprintf_s") is False |
| 221 | |
| 222 | def test_isKeyword(): |
| 223 | # Check that Keywords from C90 are correctly classified |
nothing calls this directly
no test coverage detected