Skip to content

Commit

Permalink
More tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
samwho committed Mar 21, 2024
1 parent a0d1c5c commit 2610922
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
Binary file added screenshots/tall-wide-tube-segment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/wide-tube-segment.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -373,3 +373,23 @@ componentTest("tall-tube-segment", () =>
.leaves((leaf) => leaf.fit())
.debug(),
);

componentTest("tall-wide-tube-segment", () =>
HStack(
tube({ center: true, orientation: "horizontal" }),
tube({ center: true, orientation: "horizontal" }),
)
.proportions(10, 1)
.leaves((leaf) => leaf.fit())
.debug(),
);

componentTest("wide-tube-segment", () =>
VStack(
tube({ center: true, orientation: "horizontal" }),
tube({ center: true, orientation: "horizontal" }),
)
.proportions(10, 1)
.leaves((leaf) => leaf.fit())
.debug(),
);

0 comments on commit 2610922

Please sign in to comment.