The Wayback Machine - https://web.archive.org/web/20200906145733/https://github.com/topics/assertions
Skip to content
#

assertions

Here are 343 public repositories matching this topic...

LeoColman
LeoColman commented Jul 17, 2020

And maybe dates formatted in different ways.

My usecase is that I might receive or parse "randomly" formatted dates, and they should all be parseable and saved to the db in a specific format.

Testing broadly for multiple possible formatted dates would be ideal.

This could be done to the JVM as it has it's own DateTimeFormatter, but other platforms might also use this.

Omzig
Omzig commented Aug 24, 2020

1. General summary of the issue

When running Pester, it now includes all the discovered tests even when you specify a -Tag, the tests that fall outside the tag filter, get deposited in the xml file.

2. Describe Your Environment

Pester version : 5.0.3 C:\Program Files\WindowsPowerShell\Modules\Pester\5.0.3\Pester.psd1
PowerShell version : 5.1.14409.1018
OS version : Micr

joel-costigliola
joel-costigliola commented Oct 19, 2019

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

authorjapps
authorjapps commented Aug 5, 2020

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)
alexjeffburke
alexjeffburke commented Dec 7, 2019

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

atrium
robstoll
robstoll commented Apr 28, 2020

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
cosmicBboy
cosmicBboy commented Jul 6, 2020

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

Improve this page

Add a description, image, and links to the assertions 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 assertions topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.