| 40 | } |
| 41 | |
| 42 | static void test_samplerate(uint64_t samplerate, const char *expected) |
| 43 | { |
| 44 | char *s; |
| 45 | |
| 46 | s = sr_samplerate_string(samplerate); |
| 47 | fail_unless(s != NULL); |
| 48 | fail_unless(!strcmp(s, expected), |
| 49 | "Invalid result for '%s': %s.", expected, s); |
| 50 | g_free(s); |
| 51 | } |
| 52 | |
| 53 | /* |
| 54 | * Check various inputs for sr_samplerate_string(): |
no test coverage detected