Skip to content

Commit

Permalink
Add a test_throws for out-of-bounds coord, add T converts
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold committed Jan 20, 2025
1 parent aa4c14c commit 5b1a7c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/polytopes.jl
Original file line number Diff line number Diff line change
Expand Up @@ -978,7 +978,8 @@ end
@test crs(w) <: Cartesian{NoDatum}
@test Meshes.lentype(w) ==
@test volume(w) T(1 / 2) * u"m^3"
@test w(0, 0, 1) == vertices(w)[4]
@test w(T(0), T(0), T(1)) == vertices(w)[4]
@test_throws ArgumentError w(T(0), T(0), T(1.5))
m = boundary(w)
@test m isa Mesh
@test nelements(m) == 5
Expand Down

0 comments on commit 5b1a7c5

Please sign in to comment.