Skip to content

Structural equality fail #78

Closed
Closed
@CraigStuntz

Description

@CraigStuntz

This trivial test won't pass:

    [<Test>]
    member this.``structural equality``() =
        let actualList: char list = []
        [(actualList, "")] |> should equal [([], "")]

It fails with the interesting error:

Expected: [([], "")],
but was [([], "")]

However, it works correctly in FSI:

> let actualList: char list = [];;
   val actualList : char list = []
> [(actualList, "")] = [([], "")];;
   val it : bool = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions