@@ -46,20 +46,21 @@ function TestDelete_testTwoFKOnePK(testCase)
4646 dj .createSchema(package ,[testCase .test_root ' /test_schemas' ], ...
4747 [testCase .PREFIX ' _testlab' ]);
4848
49- users = [{' user0' ; ' user1' ; ' user2' }];
49+ users = [{' user0' ; ' user1' ; ' user2' ; ' user3 ' }];
5050
5151 insert(TestLab .User , users );
5252
53- duty = [{' 2020-01-01' ,' user0' ,' user1' },
54- {' 2020-01-02' ,' user1' ,' user2' },
55- {' 2020-12-31' ,' user0' ,' user2' }];
53+ duty = [{' 2020-01-01' ,' user0' ,' user2' , ' user1' },
54+ {' 2020-01-02' ,' user0' ,' user1' , ' user2' },
55+ {' 2020-12-30' ,' user1' ,' user2' , ' user0' },
56+ {' 2020-12-31' ,' user0' ,' user2' , ' user3' }];
5657
5758 insert(TestLab .Duty , duty );
5859
5960 key.user_id = ' user1' ;
6061 del(TestLab .User & key );
6162
62- testCase .verifyEqual(length(fetch(TestLab .User )), 2 );
63+ testCase .verifyEqual(length(fetch(TestLab .User )), 3 );
6364 testCase .verifyEqual(length(fetch(TestLab .Duty )), 1 );
6465 testCase .verifyEqual(length(fetch(TestLab .User & ' user_id = "user1"' )), 0 );
6566 testCase .verifyEqual(length(fetch(TestLab .Duty & ' duty_first = "user1" OR duty_second = "user1"' )), 0 );
0 commit comments