You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I think I've found a bug when attempting to use the type assertion. I would expect the second assertion in the test case given below to pass based on the following documentation:
Type can be a string that matches the typeof value of the object, or the string name of any constructor in the object’s prototype chain, or a constructor function in the object’s prototype chain.
And here is a simple test case:
> t.type(new Function, 'function')
# ok 1 - type is function# true > t.type(new Function, Function)
# not ok 2 - type is Function# false
Details:
Using Tap 10.2.2
This error can be worked around by providing a string value (for typeof use case)
If this is confirmed as a bug I'd be happy to help fix it.
The text was updated successfully, but these errors were encountered:
Hello, I think I've found a bug when attempting to use the type assertion. I would expect the second assertion in the test case given below to pass based on the following documentation:
And here is a simple test case:
Details:
typeof
use case)If this is confirmed as a bug I'd be happy to help fix it.
The text was updated successfully, but these errors were encountered: