From 68de927be04607e6573a5439e19449941defb5f8 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Tue, 26 Dec 2023 12:13:49 -0600 Subject: Fix bug with naming --- test/test_parser.ml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'test/test_parser.ml') diff --git a/test/test_parser.ml b/test/test_parser.ml index 80e9d12..003086a 100644 --- a/test/test_parser.ml +++ b/test/test_parser.ml @@ -13,32 +13,32 @@ let test_parse s () = let rows_suite = - [ "Can parse uuidv4", `Quick, test_parse "user (1): id _uuidv4" + [ "Can parse uuidv4", `Quick, test_parse "user (1): id uuidv4" ; ( "Can parse multiple tables" , `Quick - , test_parse "user (1): id _uuidv4\npurchases (1): id _uuidv4" ) - ; "Supports names", `Quick, test_parse "purchases (1): name _name" + , test_parse "user (1): id uuidv4\npurchases (1): id uuidv4" ) + ; "Supports names", `Quick, test_parse "purchases (1): name name" ; "Supports const", `Quick, test_parse "purchases (1): name \"hello\"" - ; "Supports ints with min/max", `Quick, test_parse "purchases (1): name _int(1,20)" + ; "Supports ints with min/max", `Quick, test_parse "purchases (1): name int(1,20)" ; ( "Supports a list of potential values" , `Quick , test_parse "purchases (1): name (\"a\",\"b\",\"c\")" ) ; ( "Supports setting amount of fixture to generate" , `Quick - , test_parse "purchases (5): name _int(1,20)" ) + , test_parse "purchases (5): name int(1,20)" ) ] let relations_suite = [ ( "Can reference other tables" , `Quick - , test_parse "user (2): id _uuidv4\npurchases (3): id _uuidv4, userid user.id" ) + , test_parse "user (2): id uuidv4\npurchases (3): id uuidv4, userid user.id" ) ; ( "Can use ; as a separator" , `Quick - , test_parse "user (2): id _uuidv4; purchases (5): id _uuidv4" ) + , test_parse "user (2): id uuidv4; purchases (5): id uuidv4" ) ; ( "Supports multiple newlines" , `Quick - , test_parse "user (2): id _uuidv4\n\n\n\n\npurchases (5): id _uuidv4" ) + , test_parse "user (2): id uuidv4\n\n\n\n\npurchases (5): id uuidv4" ) ] -- cgit v1.2.3