Skip to content

issues Search Results · repo:cfrancia/spectral language:Rust

Filter by

14 results
 (70 ms)

14 results

incfrancia/spectral (press backspace or delete to remove)

To @cfrancia, While this repo has been inactive for quite a long time, spectral remains very useful so I decided to create a fork named speculoos. The idea is to be able to integrate feature that people ...
  • oknozor
  • 1
  • Opened 
    on Sep 18, 2021
  • #21

It would be very useful to have certain assertions return the input assertion type. For example, if HashMapAssertions was updated to be: fn has_length( mut self, expected: usize) - Self; fn contains_entry ...
  • sazzer
  • Opened 
    on Jan 9, 2020
  • #20

has_length is constrained by V: PartialEq + Debug but the fact that the value has PartialEq constraint is useless to count entries in the map. It is actually a problem in the following example. struct ...
  • woshilapin
  • Opened 
    on Dec 30, 2019
  • #18

Code: /// Calls `panic` with the provided message, prepending the assertion description /// if present. fn fail_with_message( mut self, message: String) { If you need greater control of the ...
  • misos1
  • Opened 
    on Jul 27, 2018
  • #17

As a developer, I sometimes want to have inverted asserts. Typically, I would like to have a assert_that!(...).not().starts_with(...) to make sure that my string does not starts with a prefix.
  • Riduidel
  • 1
  • Opened 
    on Jun 20, 2018
  • #16

tl;dr attempt to coerce everything into a Vec T so that we can execute has_length() and friends on anything that impl s IntoIter I am wondering if there is a way to be able to apply the intersection of ...
  • rrichardson
  • Opened 
    on Nov 1, 2017
  • #15

This should not be needed, as the function can be used inside the macro. Example: use spectral::assert_that; // could be removed assert_that!(3).is_equal_to(3);
  • milibopp
  • Opened 
    on Oct 16, 2017
  • #14

Would it be possible to make spectral depend only on the num-traits crate instead on the num create? Compilation of the num-traits is a magnitude faster than the num, and the only place spectral uses the ...
  • viktorchvatal
  • Opened 
    on Jul 17, 2017
  • #13

I m trying to build some assertions on serde_json::Value (parsing result from my JSON-RPC api). I m doing this: let json : Value = serde_json::from_str( query_result).unwrap(); assert_that( json[ result ...
  • kirushik
  • 3
  • Opened 
    on Apr 12, 2017
  • #11

Using Spectral 0.5.2 Below, the line assert_that!(line.get_delta_x()).is_equal_to(2); is commented out, because if uncommented, the code fails to compile. struct Line { x0: i32, y0: i32, x1: i32, ...
  • d9n
  • 1
  • Opened 
    on Dec 3, 2016
  • #8
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue origami icon

Learn how you can use GitHub Issues to plan and track your work.

Save views for sprints, backlogs, teams, or releases. Rank, sort, and filter issues to suit the occasion. The possibilities are endless.Learn more about GitHub Issues
ProTip! 
Press the
/
key to activate the search input again and adjust your query.
Issue search results · GitHub