| 42 | } |
| 43 | |
| 44 | static void test_zero_histogram() { |
| 45 | liq_attr *attr = liq_attr_create(); |
| 46 | liq_histogram *hist = liq_histogram_create(attr); |
| 47 | assert(hist); |
| 48 | |
| 49 | liq_result *res; |
| 50 | liq_error err = liq_histogram_quantize(hist, attr, &res); |
| 51 | assert(!res); |
| 52 | assert(err); |
| 53 | |
| 54 | liq_attr_destroy(attr); |
| 55 | liq_histogram_destroy(hist); |
| 56 | } |
| 57 | |
| 58 | static void test_histogram() { |
| 59 | liq_attr *attr = liq_attr_create(); |
no test coverage detected