Re: [PATCH 2/3] list: test: Add a test for hlist_cut_number()

2024-09-06 Thread David Gow
On Wed, 4 Sept 2024 at 21:43, 'Zhen Lei' via KUnit Development wrote: > > Test cases cover all possible situations: > 1. The cut number is invalid: zero or negative > 2. Partially cut. > 3. Cut all. > 4. The cut number is greater than the number of nodes in the old list. > 5. The old list is empty

[PATCH 2/3] list: test: Add a test for hlist_cut_number()

2024-09-04 Thread Zhen Lei
Test cases cover all possible situations: 1. The cut number is invalid: zero or negative 2. Partially cut. 3. Cut all. 4. The cut number is greater than the number of nodes in the old list. 5. The old list is empty. Signed-off-by: Zhen Lei --- lib/list-test.c | 51 +++