Coder Social home page Coder Social logo

mindsbackyard / galvanic-assert Goto Github PK

View Code? Open in Web Editor NEW
40.0 3.0 2.0 90 KB

A comprehensive set of matcher-based assertions for easier testing of Rust code

License: Apache License 2.0

Rust 100.00%
testing rust-library assertion-library assertions fluent matchers assertion-macros rust

galvanic-assert's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

voku skeet70

galvanic-assert's Issues

Is this project still active?

I was just curious if the maintainer still viewed this project as active? If so, is there a roadmap for a 1.0 release?

Thanks for everything. The crate is very useful! :)

Add ability to check that some element matches a matcher

I'd like to be able to write something like this:

struct Person {
  name: &'static str,
  age: u32,
}

let people = vec![
  Person {name: "Hi", age: 32 },
  Person {name: "Bye", age: 33 },
];

assert_that!(&people, contains_in_any_order(&[
  has_structure!(Person { name: eq("Hi") }),
  has_structure!(Person { name: eq("Bye") }),
]));

This probably doesn't compile, but I think it explains the issue well.

Great library btw =)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.