X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=isl_test.c;h=9c73ab44e0385b89aa4cb4e2a8c54ae70382b6ac;hb=8a3a75e90b68df76b137d2ee264e0f3cfcb0df3b;hp=c2f0285bdc4a01fc53359ec19e01a6b33ddb3368;hpb=f8f79e56dc29dbc9aea0861e0f211338a669b002;p=platform%2Fupstream%2Fisl.git diff --git a/isl_test.c b/isl_test.c index c2f0285..9c73ab4 100644 --- a/isl_test.c +++ b/isl_test.c @@ -28,6 +28,15 @@ void test_parse_map(isl_ctx *ctx, const char *str) isl_map_free(map); } +void test_parse_pwqp(isl_ctx *ctx, const char *str) +{ + isl_pw_qpolynomial *pwqp; + + pwqp = isl_pw_qpolynomial_read_from_str(ctx, str); + assert(pwqp); + isl_pw_qpolynomial_free(pwqp); +} + void test_parse(struct isl_ctx *ctx) { isl_map *map, *map2; @@ -55,6 +64,8 @@ void test_parse(struct isl_ctx *ctx) assert(isl_map_is_equal(map, map2)); isl_map_free(map); isl_map_free(map2); + + test_parse_pwqp(ctx, "{ [i] -> i + [ (i + [i/3])/2 ] }"); } void test_read(struct isl_ctx *ctx)