New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

hamcrest

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hamcrest

A library of Matchers (also known as constraints or predicates) allowing 'match' rules to be defined declaratively, to be used in other frameworks. Typical scenarios include testing frameworks, mocking libraries and UI validation rules.

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

Hamcrest for Haxe

Port of hamcrest for Haxe.

Provides a library of matcher objects (also known as constraints or predicates) allowing 'match' rules to be defined declaratively, to be used in other frameworks. Typical scenarios include testing frameworks, mocking libraries and UI validation rules.

Note that hamcrest is not a testing library, it just happens that matchers are very useful for testing.

Tested against js, as3, as2, neko, cpp and php.

Installation

Install the latest release from haxelib:

haxelib install hamcrest

Or if you want to install the latest directly from github:

haxelib git hamcrest https://github.com/mikestead/hamcrest-haxe.git src

Usage

See org.hamcrest.Matchers for the complete list of Matchers available.

Examples:

import org.hamcrest.Matchers.*

assertThat([], isEmpty());
assertThat("foo", is("foo"));
assertThat("foo", startsWith("f"));
assertThat(["foo", "bar"], equalTo(["foo", "bar"]));
assertThat(["foo", "bar"], hasItems([endsWith("r")]))

Keywords

javascript

FAQs

Package last updated on 09 Feb 2016

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