Tests parameters with strict equality.
Tests a function, by wrapping the function and checking its parameters through isEquals function. If some parameter does not match the expected type, it returns null. Otherwise there's no type error, it returns the result of the function.
null
By the way, if you want is not just testing type checking, but also finding detailed type error reason(s), then use assertEqualsParameters or validateEqualsParameters instead.
Target function type
Target function to test
The wrapper function with type tests
Jeongho Nam - https://github.com/samchon
Tests parameters with strict equality.
Tests a function, by wrapping the function and checking its parameters through isEquals function. If some parameter does not match the expected type, it returns
null
. Otherwise there's no type error, it returns the result of the function.By the way, if you want is not just testing type checking, but also finding detailed type error reason(s), then use assertEqualsParameters or validateEqualsParameters instead.