mirror of
https://gitlab.com/MisterBiggs/astro-helper.git
synced 2025-08-02 19:31:23 +00:00
was allowing too much error in tests
This commit is contained in:
@@ -23,7 +23,7 @@ import AstroHelper: Quaternion, Section,bending_moment, shear_stress, shear_flow
|
||||
|
||||
|
||||
@testset "Section" begin
|
||||
tolerance = 1e-5
|
||||
tolerance = 1e-3
|
||||
complist(a, b) = abs(sum(a .- b)) < tolerance
|
||||
s = Section([2,1,0.5,0.5,0.75,0.75,2], [0,12,24,24,16,8,0], [0,0,0,6,7,8,9])
|
||||
@test all([s.Ixx == 126.075 s.Iyy == 571.2 s.Ixy ≈ -28.2])
|
||||
|
Reference in New Issue
Block a user