alelievr / libft-unit-test

455 stars 88 forks source link

KO strsplit #101

Open wwwwelton opened 3 years ago

wwwwelton commented 3 years ago

A friend get killed in this test in the strsplit and passed in all of ur tests.

char str = "1-2-3-4-5-6-7-8--8-8--8-4------4--4" char sep = '-'

char str = "--1-2-3-4-5-6-7-8--8-8--8-4------4--4" char sep = '-'

Expected result: 1-2-3-4-5-6-7-8-8-8-8-4-4-4

RES[0]: $1$ -> 0x602000000210 RES[1]: $2$ -> 0x602000000230 RES[2]: $3$ -> 0x602000000250 RES[3]: $4$ -> 0x602000000270 RES[4]: $5$ -> 0x602000000290 RES[5]: $6$ -> 0x6020000002b0 RES[6]: $7$ -> 0x6020000002d0 RES[7]: $8$ -> 0x6020000002f0 RES[8]: $8$ -> 0x602000000310 RES[9]: $8$ -> 0x602000000330 RES[10]: $8$ -> 0x602000000350 RES[11]: $4$ -> 0x602000000370 RES[12]: $4$ -> 0x602000000390 RES[13]: $4$ -> 0x6020000003b0 RES[14]: $(null)$ -> (nil)

github-actions[bot] commented 2 years ago

Hello! Thanks for contributing to the libft unit test.

Note that this repository is not maintained by the owner anymore, instead there is a bot that will automatically merge any reviewed pull requests. If you feel like it, here are some links that can help you submiting a change in the code base::