Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated Assert.is method in the documentation #110

Closed
khalyomede opened this issue Mar 5, 2021 · 2 comments
Closed

Deprecated Assert.is method in the documentation #110

khalyomede opened this issue Mar 5, 2021 · 2 comments

Comments

@khalyomede
Copy link

Description

The documentation mentions Assert.is(), but the compilation suggest to use isOfType

Warning : utest.Assert.is is deprecated. Use utest.Assert.isOfType() instead

Expected behavior

The documentation mentions Assert.isOfType() instead of Assert.is()

@player-03
Copy link
Contributor

player-03 commented May 7, 2023

Where in the documentation? A quick search turned up no documentation mentioning the string Assert.is(. Or, for that matter, the string Assert.isOfType(.

@RealyUniqueName
Copy link
Member

This is handled in #124

utest/src/utest/Assert.hx

Lines 101 to 102 in 9a5ea19

@:deprecated("utest.Assert.is is deprecated. Use utest.Assert.isOfType instead.")
public static function is(value : Null<Any>, type : Any, ?msg : String , ?pos : PosInfos) : Bool {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants