We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a so-called "Power assertions" that makes assertions quite more powerful. The best way to demonstrate power assertion is an example:
assert(types[index].name === bob.name) | || | | | | | || | | | "bob" | || | | Person{name:"bob",age:5} | || | false | |11 "alice" | Person{name:"alice",age:3} ["string",98.6,true,false,null,undefined,#Array#,#Object#,NaN,Infinity,/^not/,#Person#] --- [string] bob.name +++ [string] types[index].name @@ -1,3 +1,5 @@ -bob +alice
Power assertions in other languages: Kotlin 1, Rust 2, .NET 3, Ruby 4, Javasctipt 5, Grooyv 6.
https://kotlinlang.org/docs/power-assert.html ↩
https://github.com/gifnksm/power-assert-rs ↩
https://github.com/PowerAssert/PowerAssert.Net ↩
https://github.com/ruby/power_assert ↩
https://github.com/power-assert-js/power-assert#description ↩
https://dontmindthelanguage.wordpress.com/2009/12/11/groovy-1-7-power-assert/ ↩
The text was updated successfully, but these errors were encountered:
No branches or pull requests
There is a so-called "Power assertions" that makes assertions quite more powerful. The best way to demonstrate power assertion is an example:
Power assertions in other languages: Kotlin 1, Rust 2, .NET 3, Ruby 4, Javasctipt 5, Grooyv 6.
Footnotes
https://kotlinlang.org/docs/power-assert.html ↩
https://github.com/gifnksm/power-assert-rs ↩
https://github.com/PowerAssert/PowerAssert.Net ↩
https://github.com/ruby/power_assert ↩
https://github.com/power-assert-js/power-assert#description ↩
https://dontmindthelanguage.wordpress.com/2009/12/11/groovy-1-7-power-assert/ ↩
The text was updated successfully, but these errors were encountered: