mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 16:21:11 +00:00
Gen Eq test for tuple
This commit is contained in:
parent
143f39d273
commit
72c9b76f23
1 changed files with 16 additions and 0 deletions
|
@ -1790,6 +1790,22 @@ mod eq {
|
||||||
use indoc::indoc;
|
use indoc::indoc;
|
||||||
use roc_std::RocStr;
|
use roc_std::RocStr;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn eq_tuple() {
|
||||||
|
assert_evals_to!(
|
||||||
|
indoc!(
|
||||||
|
r#"
|
||||||
|
app "test" provides [main] to "./platform"
|
||||||
|
|
||||||
|
main =
|
||||||
|
("a", "b") == ("a", "b")
|
||||||
|
"#
|
||||||
|
),
|
||||||
|
true,
|
||||||
|
bool
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn custom_eq_impl() {
|
fn custom_eq_impl() {
|
||||||
assert_evals_to!(
|
assert_evals_to!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue