eq!
macro eq(Expr lhs, Expr rhs) -> Code Import
Source: use tests::{eq}; src/tests.hy Expands to lhs == rhs.
Invoke it as eq!(…); the arguments are passed as code (Expr), not values.
Parameters#
| Name | Type |
|---|---|
lhs | Expr |
rhs | Expr |
Returns#
Code
Examples#
use tests::{assert, eq};
assert!(eq!(2 + 2, 4));