@@ -8,7 +8,7 @@ Private tTotal As Long
88
99' #
1010' ////////////////////////////////////////////////////////////////////////////////////////////
11- ' Copyright © 2024 W. García
11+ ' Copyright © 2024-2025 W. García
1212' GPL-3.0 license | https://www.gnu.org/licenses/gpl-3.0.html/
1313' https://github.com/ws-garcia
1414' ////////////////////////////////////////////////////////////////////////////////////////////
@@ -364,6 +364,27 @@ Sub RunAllTests
364364 " INSTR(' Gear' ;' e' )" , _
365365 " 2" _
366366 )
367+ ' Analytical Geometry
368+ Run( _
369+ " Distance between two points" , _
370+ " ROUND(DISTANCE({{3.1441;0}};{{4.45415;3.1441}});4)" , _
371+ " 3.4061" _
372+ )
373+ Run( _
374+ " Lines intersection" , _
375+ " MROUND(LINESINTERSECT({{12;0};{0;5}};{{0;1.31004};{0.79693;3.22267}});2)" , _
376+ " {{1.31;4.45}}" _
377+ )
378+ Run( _
379+ " Parallel line" , _
380+ " MROUND(PARALLEL({{12;0};{0;5}};{{3.1441;0}});2)" , _
381+ " {{3.14;0};{0;1.31}}" _
382+ )
383+ Run( _
384+ " Perpendicular line" , _
385+ " MROUND(PERPENDICULAR({{12;0};{0;5}};{{3.1441;0}});2)" , _
386+ " {{3.14;0};{4.45;3.14}}" _
387+ )
367388 SF_Exception.debugprint(" Passed tests:" ,sAcum)
368389 SF_Exception.debugprint(" Failed tests:" ,tTotal - sAcum)
369390 SF_Exception.debugprint(" Passed tests Ratio:" ,Round(100*sAcum/tTotal,2) &" %" )
0 commit comments