munit is a cross-platform unit testing framework for Haxe. Utilises metadata markup for test cases and includes tools for generating, compiling and running test cases from the command line.
Other
180
stars
56
forks
source link
2.3.5. `Assert.isEmpty(anObject:StringOrIterable, ?message)`, `Assert.isNotEmpty(anObject:StringOrIterable, ?message)` and update for `Assert.areEqual` #184
Added Assert.isEmpty(anObject:StringOrIterable, ?message). Assert that a String or Iterable is empty.
Added Assert.isNotEmpty(anObject:StringOrIterable, ?message). Assert that a String or Iterable is not empty.
Starting with version 2.3.5, special provision has been made for comparing collections(Array, IMap or Bytes). Two collections will be treated as equal by Assert.areEqual if they are the same length and each of the corresponding elements is equal.
Starting with version 2.3.5, special provision has been made for comparing dates. Two dates will be treated as equal by Assert.areEqual if their getTime() values are equal.
Starting with version 2.3.5, special provision has been made for comparing types. Two types will be treated as equal by Assert.areEqual if their classname are equal.
Starting with version 2.3.5, special provision has been made for comparing custom structures. Two structures will be treated as equal by Assert.areEqual if each of the corresponding fields is equal.
Assert.isEmpty(anObject:StringOrIterable, ?message)
. Assert that aString
orIterable
is empty.Assert.isNotEmpty(anObject:StringOrIterable, ?message)
. Assert that aString
orIterable
is not empty.Array
,IMap
orBytes
). Two collections will be treated as equal byAssert.areEqual
if they are the samelength
and each of the corresponding elements is equal.Assert.areEqual
if theirgetTime()
values are equal.Assert.areEqual
if their classname are equal.Assert.areEqual
if each of the corresponding fields is equal.@elsassph hi ;)