From 05c3cef84ea4e69c5eeb0ee4a342b0cfc65e0f0c Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Tue, 26 Dec 2023 15:07:29 -0600 Subject: Update test cases --- test/test_parser.ml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_parser.ml b/test/test_parser.ml index 5fa9e6a..e18f055 100644 --- a/test/test_parser.ml +++ b/test/test_parser.ml @@ -38,6 +38,15 @@ let relations_suite = ; ( "Can use ; as a separator" , `Quick , test_parse "user (2): id uuidv4; purchases (5): id uuidv4" ) + ; ( "Supports nested relations" + , `Quick + , test_parse + "user (2): id uuidv4; purchases (5): id uuidv4; receipts (5): id purchases.id" ) + ; ( "Supports multiple relations" + , `Quick + , test_parse + "buyer (2): id uuidv4; seller (5): id uuidv4; purchases (5): buyer buyer.id, \ + seller seller.id" ) ; ( "Supports multiple newlines" , `Quick , test_parse "user (2): id uuidv4\n\n\n\n\npurchases (5): id uuidv4" ) -- cgit v1.2.3