Skip to content
#

assert

Here are 661 public repositories matching this topic...

atrium
robstoll
robstoll commented Apr 24, 2022

Platform (all, jvm, js): all
Extension (none, kotlin 1.3): none

Code related feature

Following the things you need to do:

  • see TODOs in MapToContainInOrderOnlyKeyValueExpectationsSpec

Your first contribution?

  • Write a comment I'll work on this if you would like to take this issue over.
    This way we get the chance to revise the description in case things have c
mantinband
mantinband commented Mar 16, 2022

Add the following extensions methods for dictionaries:

var dictionary = new Dictionary<string, string>
{
    ["key1"] = "value1",
    ["key2"] = "value2",
};

dictionary.Throw().IfContainsKey("key1");
dictionary.Throw().IfNotContainsKey("key3");

And the corresponding dictionary properties extension methods:

var dictionary = new Dictionary<string, string
enhancement good first issue
Iltotore
Iltotore commented Jan 8, 2022

Describe the solution you'd like
Add compile-time String concactenation support in messages. Currently, constraits's message with concactenated strings can only be evaluated at runtime (gives the <Unknown> message at compile-time instead).

Describe alternatives you've considered
A potential solution would be to create our own instance of FromExpr[String] based on the stdlib's one

enhancement good first issue

Improve this page

Add a description, image, and links to the assert topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the assert topic, visit your repo's landing page and select "manage topics."

Learn more