mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-01 15:51:12 +00:00
remove test that now passes
This commit is contained in:
parent
b167098275
commit
14a45ce012
1 changed files with 0 additions and 39 deletions
|
@ -1356,45 +1356,6 @@ mod gen_primitives {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
|
||||||
fn rbtree_balance_inc_dec() {
|
|
||||||
assert_non_opt_evals_to!(
|
|
||||||
indoc!(
|
|
||||||
r#"
|
|
||||||
app "test" provides [ main ] to "./platform"
|
|
||||||
|
|
||||||
NodeColor : [ Red, Black ]
|
|
||||||
|
|
||||||
RedBlackTree k : [ Node NodeColor k (RedBlackTree k) (RedBlackTree k), Empty ]
|
|
||||||
|
|
||||||
# balance : NodeColor, k, RedBlackTree k, RedBlackTree k -> RedBlackTree k
|
|
||||||
balance = \color, key, left, right ->
|
|
||||||
when right is
|
|
||||||
Node Red rK rLeft rRight ->
|
|
||||||
when left is
|
|
||||||
Node Red _ _ _ ->
|
|
||||||
Node
|
|
||||||
Red
|
|
||||||
key
|
|
||||||
Empty
|
|
||||||
Empty
|
|
||||||
|
|
||||||
_ ->
|
|
||||||
Node color rK (Node Red key left rLeft) rRight
|
|
||||||
|
|
||||||
_ ->
|
|
||||||
Empty
|
|
||||||
|
|
||||||
main : RedBlackTree (Int *)
|
|
||||||
main =
|
|
||||||
balance Red 0 Empty Empty
|
|
||||||
"#
|
|
||||||
),
|
|
||||||
0,
|
|
||||||
i64
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn rbtree_balance_3() {
|
fn rbtree_balance_3() {
|
||||||
assert_non_opt_evals_to!(
|
assert_non_opt_evals_to!(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue