Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

madx-mtest

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

madx-mtest

  • 1.0.3
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source
‘‘ MTest ’’

MTest (stands for MicroTest) is a tiny and fast TDD framework.

It provides the Kernel#MTest method that takes an array of test as a parameter.

Need an example? Right.

require 'mtest'

tests = [ "This is a simple test", ["Sum 40+2", proc { 40 + 2 }, 42] ]

MTest(tests)

MTests returns a hash that represents the results of a test. Example!

tests = [ "This is a simple test", ["Sum 40+2", proc { 40 + 2 }, 42],

"This one fails",
["FAIL", proc { true }, false]

]

res = MTest(tests)

res # => {:pass => 1, :err => 0, :fail => 1}

** Contributing **

Everyone is welcome to contribute to MTest. The only restriction is that mtest.rb must be less than 51 lines long.

But feel free to submit your own tools, examples, hacks, etc.

FAQs

Package last updated on 11 Aug 2014

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc