Add tests for pretty printing of parametrized list types
@@ -443,5 +443,12 @@ mod test {
assert_format_eq("<a, b, c, d>");
assert_format_eq("<tag1, tag2, tag3 | r>");
+
+ assert_format_eq("List");
+ assert_format_eq("List Num");
+ assert_format_eq("List (List Num)");
+ assert_format_eq("Num -> List (List Str) -> Num");
+ assert_format_eq("List (Num -> Num)");
+ assert_format_eq("List (List List -> Num)");
}
}
