Skip to content

Failing Test #615

@giuliohome

Description

@giuliohome

Fable, you have a template with a failing test—why?!

dotnet new install SAFE.Template
dotnet new SAFE
dotnet tool restore
dotnet run -- RunTests

immagine

let model, _ = update (SaveTodo(Finished newTodo)) model
)

Is one supposed to fix it this way?

let model, _ = update (LoadTodos (Finished [newTodo])) model

or if you prefer

let model, _ = update (LoadTodos (Finished [])) model
let model, _ = update (SaveTodo(Finished newTodo)) model

Is it a template or an examination/test?

Comment about using Copilot

Copilot and GPT cannot pass it.

immagine

I'm happy that Copilot cannot do that because it means human programmers' jobs are saved! 😄

immagine

But Copilot actually helps because after the above changes you will see that the root cause error is "Todos were not in the Loaded state".

immagine

But Copilot actually helps because, after making the above changes, you will see that the root cause of the error is 'Todos were not in the Loaded state,' even though it is not really capable of producing the correct fix for the problem.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions