All Projects → svartalf → rust-claim

svartalf / rust-claim

Licence: Apache-2.0, MIT licenses found Licenses found Apache-2.0 LICENSE-APACHE MIT LICENSE-MIT
Assertion macros toolkit for Rust

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to rust-claim

Atrium
A multiplatform assertion library for Kotlin
Stars: ✭ 359 (+577.36%)
Mutual labels:  assertions, assert
Assertion
The power of Respect\Validation into an assertion library.
Stars: ✭ 23 (-56.6%)
Mutual labels:  assertions, assert
Gotest.tools
A collection of packages to augment the go testing package and support common patterns.
Stars: ✭ 205 (+286.79%)
Mutual labels:  assertions, assert
Strikt
An assertion library for Kotlin
Stars: ✭ 310 (+484.91%)
Mutual labels:  assertions, assert
Assert
A collection of convenient assertions for Swift testing
Stars: ✭ 69 (+30.19%)
Mutual labels:  assertions, assert
Expect More
Curried Type Testing library, and Test Matchers for Jest
Stars: ✭ 124 (+133.96%)
Mutual labels:  assertions, assert
Check Types.js
MOVED TO GITLAB
Stars: ✭ 232 (+337.74%)
Mutual labels:  assertions, assert
assert-never
Helper function for exhaustive checks of discriminated unions in TypeScript
Stars: ✭ 32 (-39.62%)
Mutual labels:  assert
assert matches
Provides macro `assert_matches` for testing pattern matching
Stars: ✭ 51 (-3.77%)
Mutual labels:  assert
jasmine2-custom-message
custom failure message on any jasmine v2 assertion
Stars: ✭ 27 (-49.06%)
Mutual labels:  assertions
kiwi
Fluent assertions for Kotlin
Stars: ✭ 17 (-67.92%)
Mutual labels:  assertions
assert
Go 语言 assert 断言函数
Stars: ✭ 17 (-67.92%)
Mutual labels:  assert
type-guards
Simple utility for runtime type checking which also assigns the correct type if used with TypeScript.
Stars: ✭ 30 (-43.4%)
Mutual labels:  assert
tressa
Little test utility
Stars: ✭ 18 (-66.04%)
Mutual labels:  assert
phpstan-webmozart-assert
PHPStan extension for webmozart/assert
Stars: ✭ 132 (+149.06%)
Mutual labels:  assert
picolisp-unit
Unit Testing framework for PicoLisp
Stars: ✭ 22 (-58.49%)
Mutual labels:  assertions
concise
✅ Concise is test framework for using plain English and minimal code, built on PHPUnit.
Stars: ✭ 47 (-11.32%)
Mutual labels:  assertions
assert.sh
❗ Assertion lib for shell script users
Stars: ✭ 105 (+98.11%)
Mutual labels:  assertions
vim-UT
Unit Testing plugin for Vim
Stars: ✭ 18 (-66.04%)
Mutual labels:  assertions
Symfony-code-snippets
Over 100 Symfony Code Snippets for PhP code And Over 80 Twig Code Snippets. Just type the letters 'sf' to get a list of all available Symfony Code Snippets. For Twig Just Type the Tag name and you will get AutoCompletion.
Stars: ✭ 15 (-71.7%)
Mutual labels:  assert

claim

Missing assertion macros for Rust

Latest Version Latest Version Build Status Apache 2.0 OR MIT licensed no-std compatible Version compatibility

This crate provides assertion macros that are missing in the Rust libcore / libstd:

  • Comparison: assert_ge, assert_gt, assert_le, and assert_lt
  • Matching: assert_matches
  • Result: assert_ok, assert_err, and assert_ok_eq
  • Option: assert_some, assert_none, and assert_some_eq
  • Poll: assert_pending, assert_ready, assert_ready_ok, assert_ready_err, and assert_ready_eq

Installation

Add the following to your Cargo.toml manifest to use this crate for tests, examples and benchmarks:

[dev-dependencies]
claim = "0.5"

Usage

Check out the documentation for available macros and examples.

License

Licensed under either of Apache License 2.0 or MIT license at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this crate by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].