by DefineOutside on 3/30/23, 10:21 PM with 23 comments
by gregmac on 3/30/23, 11:01 PM
When I add a regex to something, I pretty much always also add a bunch of unit test cases for it, and I request the same if I see one in a PR. It's much easier to just see a bunch of test cases that help validate than it, and frankly, half the time when I write my own cases I think of situations that could be better handled.
Human- or GPT-generated doesn't really matter IMHO; it still needs tests.
Interestingly, chatGPT is pretty good at generating test cases for regex. It would be really cool to see that functionality integrated to this tool.
by BMc2020 on 3/30/23, 11:49 PM
Ironically, it showed us the real future of AI
by williamstein on 3/30/23, 11:02 PM
by thomasahle on 3/30/23, 11:49 PM
I'm pretty sure quite a lot of people's names wouldn't be accepted by that. It helps if you add "even weird and foreign names", but who knows if that's actually enough to capture everything.
by totoglazer on 3/30/23, 10:55 PM
by themineraria on 3/31/23, 1:17 AM
lol
id: chatcmpl-6zxdwNH3hW7DuZqnCkx4Ukx9rXiuA token usage: 367 date: 1680225296
by mike_hock on 3/30/23, 11:38 PM
What would you say was the query for this?
by TradingPlaces on 3/31/23, 12:08 AM
by sw1sh on 3/30/23, 11:57 PM
by sv123 on 3/30/23, 11:46 PM
by Shindi on 3/30/23, 11:04 PM