#Codeium
1 messages · Page 1 of 1 (latest)
That’s great to hear, could you send the case where we don’t handle prompts as well
Next time I notice, I will @topaz crane
Goal is to be better than copilot!
So, a quick one @topaz crane while I was doing some dev earlier, all relative to Go.
I was writing some tests and wrote a function like this:
func testAccountSeeds() []respository.Account {
return []respository.Account{
{ID: "TST-01A", Username: "PeterParker", Password: "Pass", CreatedOn: "2022-01-01T00:00:00Z"},
{ID: "TST-02A", Username: "TonyStark", Password: "Word", CreatedOn: "2022-01-01T00:00:00Z"},
{ID: "TST-03A", Username: "TheVision", Password: "Insecure", CreatedOn: "2022-01-01T00:00:00Z"},
{ID: "TST-04A", Username: "StevenStrange", Password: "Oops", CreatedOn: "2022-01-01T00:00:00Z"},
}
}
I then asked Codeium to generate some additional entries using randomized values.
It provides the exact same as above, which is not the intended result.
// generate additional accouts for testing using different values for
// the Username and Password fields
{ID: "TST-05A", Username: "PeterParker", Password: "Pass", CreatedOn: "2022-01-01T00:00:00Z"},
{ID: "TST-06A", Username: "TonyStark", Password: "Word", CreatedOn: "2022-01-01T00:00:00Z"},
{ID: "TST-07A", Username: "TheVision", Password: "Insecure", CreatedOn: "2022-01-01T00:00:00Z"},
{ID: "TST-08A", Username: "StevenStrange", Password: "Oops", CreatedOn: "2022-01-01T00:00:00Z"},
Seems like it picked a different id
Maybe tell it the other fields need to be different
I did, see the comment I provided
I'm dumb, you'r right. That's disappointing