logoalt Hacker News

cwbriscoeyesterday at 6:57 AM2 repliesview on HN

I just write my own code and then ask AI to find any issues and correct them if I feel it is good advice. What AI is amazing at is writing most of my test cases. Saves me a lot of time.


Replies

LtWorfyesterday at 8:59 AM

I've seen tests doing:

a = 1

assert a == 1

// many lines here where a is never used

assert a == 1

Yes AI test cases are awesome until you read what it's doing.

show 3 replies
porridgeraisinyesterday at 7:14 AM

Yep. Especially for tests with mock data covering all sorts of extreme edge cases.

show 1 reply