Skip to content

Commit

Permalink
feat(test): passed all cases of flex
Browse files Browse the repository at this point in the history
  • Loading branch information
meloalright committed Nov 16, 2024
1 parent f9ae28f commit d6c767f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/flex_wrap_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ mod tests {
let mut root = node_create();
set_justify_content(&mut root, FlexAlign::FlexAlignCenter);
set_align_content(&mut root, FlexAlign::FlexAlignCenter);
set_align_items(&mut root, FlexAlign::FlexAlignStretch);
set_align_items(&mut root, FlexAlign::FlexAlignCenter);
set_flex_wrap(&mut root, FlexWrapNode::FlexWrap);
set_width(&mut root, 700.0);
set_height(&mut root, 500.0);
Expand Down Expand Up @@ -1346,7 +1346,7 @@ mod tests {
assert_eq!(get_width(&mut root), 700.0);
assert_eq!(get_height(&mut root), 500.0);

// assert_eq!(get_left(&mut root_child0), 250.0);
assert_eq!(get_left(&mut root_child0), 250.0);
assert_eq!(get_top(&mut root_child0), 30.0);
assert_eq!(get_width(&mut root_child0), 100.0);
assert_eq!(get_height(&mut root_child0), 200.0);
Expand All @@ -1368,7 +1368,7 @@ mod tests {
assert_eq!(get_width(&mut root), 700.0);
assert_eq!(get_height(&mut root), 500.0);

// assert_eq!(get_left(&mut root_child0), 350.0);
assert_eq!(get_left(&mut root_child0), 350.0);
assert_eq!(get_top(&mut root_child0), 30.0);
assert_eq!(get_width(&mut root_child0), 100.0);
assert_eq!(get_height(&mut root_child0), 200.0);
Expand Down

0 comments on commit d6c767f

Please sign in to comment.