Skip to content

R.equals on sets do not appear to work #599

@trajano

Description

@trajano
import R from 'rambda';
describe("validate set equality", () => {
    it("equals on rambda", () => {
        expect(R.equals(new Set(['3', '2', '1']), new Set(['2', '3', '3', '2', '1']))).toBeTruthy();
        expect(R.equals(new Set(['3', '2', '0']), new Set(['2', '3', '3', '2', '1']))).toBeFalsy();
    })
})

fails on expect(R.equals(new Set(['3', '2', '1']), new Set(['2', '3', '3', '2', '1']))).toBeTruthy(); this works correctly in ramda

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions