Socket
Book a DemoInstallSign in
Socket

test_suite

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

test_suite

0.1.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

TestSuite

This Test suite represents a several methods, that allows you to do next things with your objects - check the type, make a conversions and work with hashes.

Installation

Add this line to your application's Gemfile:

gem 'test_suite'

And then execute:

$ bundle

Or install it yourself as:

$ gem install test_suite

Usage

For using test_suite gem in your application you have to require it and call it (where you want) with next command - TestSuite.name _of _method(parameter). You can use this methods:

  • hash?

  • array?

  • number?

  • string?

  • symbol?

  • hash_empty?

  • hash_value_greater_nil?

  • hash_has_two_keys?

  • to_s

  • to_i

  • to_sym

  • str_ to_arr

In parameter you can use whatever you want.

Example

module Tasks
  def self.math2(x, y)
    s = ((x.abs - y.abs) / (1 + (x * y).abs)).round(4)
    { result: s }
  end
end 

TestSuite.hash_has_two_keys?(Tasks.math2(-6.0, -2))

Сonsole output:

Hash has one key
Hash key(s): [:result]

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/test_suite.

FAQs

Package last updated on 05 Nov 2018

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.