
Security News
ECMAScript 2025 Finalized with Iterator Helpers, Set Methods, RegExp.escape, and More
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
test-unit-power_assert
Advanced tools
= test-unit-power_assert == About Power Assert for test-unit.
As of test-unit 3.0.0, it has built-in support for Power Assert so test-unit-power_assert is no longer needed.
== Installation $ gem install test-unit-power_assert
or
$ gem install bundler (if you need) $ echo "source 'http://rubygems.org'" > Gemfile $ echo "gem 'power_assert', :git => 'git://github.com/k-tsj/power_assert.git'" >> Gemfile $ echo "gem 'test-unit-power_assert', :git => 'git://github.com/k-tsj/test-unit-power_assert.git'" >> Gemfile $ bundle install --path vendor/bundle
== Basic Usage === Test Code
require 'test/unit' require 'test/unit/power_assert' class MyTest < Test::Unit::TestCase def test_failed assert do "0".class == "3".to_i.times.map {|i| i + 1 }.class end end end
Note: It is recommended to require test/unit/power_assert before loading test code.
=== Result Failure: "0".class == "3".to_i.times.map {|i| i + 1 }.class | | | | | | | | | | | Array | | | | [1, 2, 3] | | | #<Enumerator: 3:times> | | 3 | false String test_failed(MyTest)
== Travis Build Status {}[http://travis-ci.org/k-tsj/test-unit-power_assert]
FAQs
Unknown package
We found that test-unit-power_assert demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.