Socket
Book a DemoInstallSign in
Socket

set_assertions

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

set_assertions

0.0.3
bundlerRubygems
Version published
Maintainers
1
Created
Source

SetAssertions

At the moment, the only test this gem provides is: assert_equal_set

This checks that, despite order, two arrays contain the same scalars and object references.

Why this assertion?

Because invariable I want to check that a set of values was added to a collection, but not need to know the order of them.

If you've ever had a fault like:

Expected [:a,:b] but got [:b,:a]

... then you know what I mean.

Further Assertions

Want more? fork, add, make pull request OR add a ticket for it and I'll add it :D

FAQs

Package last updated on 28 Jun 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.