Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cartesian-theatrics committed Apr 5, 2024
1 parent 989e7a6 commit b439e79
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
Empty file added test/data/.gitkeep
Empty file.
Binary file added test/data/Cinzel-VariableFont_wght.ttf
Binary file not shown.
Binary file added test/data/pipes.glb
Binary file not shown.
16 changes: 10 additions & 6 deletions test/main/plexus/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -103,18 +103,22 @@

(t/deftest test-orientation
(test-props
{:surface-area 182291.09375, :volume 138770.296875}
{:surface-area 191659.8125, :volume 143258.34375}
(p/extrude
(p/frame :name :body
:cross-section (-> (m/text "test/data/Cinzel-VariableFont_wght.ttf" "abc" 10 5 :non-zero)
(m/scale-to-height 20)
(m/center))
:curve-radius 100)
:curve-radius 50)
(for [i (range 4)]
(p/branch
:from :body
(case i
0 (p/left :angle pi|2)
1 (p/right :angle pi|2)
2 (p/up :angle pi|2)
3 (p/down :angle pi|2)))))))
0 [(p/left :angle pi|2)
(p/right :angle pi|2)]
1 [(p/right :angle pi|2)
(p/left :angle pi|2)]
2 [(p/up :angle pi|2)
(p/down :angle pi|2)]
3 [(p/down :angle pi|2)
(p/up :angle pi|2)]))))))

0 comments on commit b439e79

Please sign in to comment.