-
Updated
Aug 15, 2020 - JavaScript
assertions
Here are 341 public repositories matching this topic...
-
Updated
Jul 28, 2020 - JavaScript
-
Updated
Jul 17, 2020 - JavaScript
-
Updated
Aug 20, 2020 - Java
Add Gen.forNone
We currently have Gen.forAll { it == true }. If we want to invert it, it's ok to write Gen.forAll { !(it == true) } .
It would be syntactically pleasant to write Gen.forNone instead, like:
test("Random string shouldn't be a valid email") {
Arb.string().forNone { it.isEmail() }`
}
vs
test("Random string shouldn't be a valid email") {
Arb.string().forAll
Code lens in vscode cannot run tests when TestCases are provided because we are using the opening brace position as the line filter, but test cases will move it further down, not matching the filter. To avoid difficult parsing let's change that to using $MyInvocation.ScriptLineNumber instead of $ScriptBlock.StartPosition.StartLine, which will give us the position of the It (and other) co
-
Updated
Aug 23, 2020 - C#
-
Updated
Oct 29, 2019 - JavaScript
Summary
ShouldContainOnly is used in a few places where we know what kind of elements we are dealing with, in this case instead of using the term element we could use a more descriptive name.
Example
Spliterator<?> actual = createSpliterator(SORTED | ORDERED);
spliterators.assertHasOnlyCharacteristics(INFO, actual, DISTINCT, SORTED);fails with this error
Date API Proposal
Feature Request
Description:
API for Date matchers. Some matchers are inspired by Jasmine Matchers.
Possible solution:
Jasmine-like matchers:
expect(date).toBeDate(); // Matcher added
expect(date).toBeValidDate(); // Matcher added
expect(date).toBeAfter(otherDate); // Matcher added
expect(date).toBeBefore(otherDa-
Updated
May 19, 2020 - Go
-
Updated
Aug 21, 2020 - TypeScript
As a SDET
I want a documentation or Wiki page where the expected vs actual field matching is explained
So that I can use these in my test automation to test the server response payloads and headers
e.g. id=123 , id="123", isValid=true, isValid="true" etc
AC1:
Cover the following currently supported mechanisms with examples
- $EQ
- (int)
- (float) or (decimal)
- (boolean)
Normally, the "to be truthy" assertion does not take any value as it simply asserts that a subject can be coerced to a boolean true (in the case of "to be falsy" it is coercion to boolean false).
It seems that early on these assertions inherited an optional form where a custom message can be supplied as their argument - this was likely inspired by earlier assertions frameworks (assert on node
-
Updated
Feb 5, 2020 - R
-
Updated
Aug 1, 2020 - JavaScript
-
Updated
Aug 8, 2020 - Lua
-
Updated
Aug 18, 2020 - Kotlin
Platform (jvm, js, android): jvm
Extension (none, kotlin 1.3, jdk8): jdk8
Code related feature
expect(ZonedDateTime.now()).isAfter("2020-04-28T12:00Z")
//instead of
expect(ZonedDateTime.now()).isAfter(ZonedDateTime.of(2020,4,28,12,0,0,0, ZoneId.of("Z")))
Following the things you need to do:
atrium-logic:
- duplicate each method in chronoZonedDateTimeAsserti
Is your feature request related to a problem? Please describe.
Currently the built-in Check methods relating to the comparison operators <, >, ==, etc. are sort of long and unwieldy (the rationale here was to make it human-readable). However, it seems like pandas and indeed python uses shorthand of ge (>=), le (<=), etc. for these binary operators.
**Describe the soluti
-
Updated
Mar 22, 2019 - Clojure
-
Updated
Aug 16, 2020 - PHP
-
Updated
Jan 8, 2018 - JavaScript
-
Updated
Aug 18, 2020 - Kotlin
-
Updated
Jul 21, 2020 - JavaScript
-
Updated
Aug 6, 2020 - C#
-
Updated
Jan 18, 2017 - JavaScript
Improve this page
Add a description, image, and links to the assertions topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the assertions topic, visit your repo's landing page and select "manage topics."
Hi,
It seems like the HTTP Assert package does not allow me to specify a body to pass in a POST request for example. Looking at the
HTTPBody()function, the body argument is set tonil:req, err := http.NewRequest(method, url+"?"+values.Encode(), nil)Is this by design, or am I looking at a missing feature?
Cheers,