@@ -576,54 +576,6 @@ Private Sub VALIDATEcircleTangents(testName As String)
576576 SF_Exception.debugprint(" + Success test " & testName)
577577 End If
578578
579- TestExit:
580- Exit Sub
581- TestFail:
582- SF_Exception.debugprint(" Test " & testName & " raised an error: #" & err.Number & " - " & err.Description)
583- Resume TestExit
584- End Sub
585-
586- Private Sub LargestSquareInRATriangle(testName As String)
587- On Error GoTo TestFail
588- Dim expect As String
589- Dim contFunct As String
590-
591- tTotal=tTotal+1
592- Set Evaluator = New VBAexpressions
593- contFunct = " FZERO(' GET(_side_;DISTANCE(LINESINTERSECT(" _
594- & " PERPENDICULAR(hyp;{{x;0}});hyp)" _
595- & " ;{{x;0}}))" _
596- & " -" _
597- & " DISTANCE(LINESINTERSECT(" _
598- & " PERPENDICULAR(PERPENDICULAR(" _
599- & " hyp;{{x;0}})" _
600- & " ;{{x;0}})" _
601- & " ;leg.a)" _
602- & " ;{{x;0}})'" _
603- & " ;0;12)"
604- With Evaluator
605- ' Triangle hypotenuse
606- .Create " GET(' hyp' ;{{12;0};{0;5}})" : .Eval
607- ' Leg a definition
608- .Create " GET(_leg.a_;{{0;0};{0;5}})" , False: .Eval
609- .Create contFunct, False: .Eval
610- actual = .result
611- If .ErrorType = 0 Then
612- .Create " ROUND(side^2;4)" , False: .Eval
613- If .ErrorType = 0 Then
614- actual .result
615- End If
616- End If
617- End With
618- expect = " 11.6016"
619-
620- If expect <> actual Then
621- SF_Exception.debugprint(" x Failed test " & testName, expect,"<>" ,actual)
622- Else
623- sAcum=sAcum+1
624- SF_Exception.debugprint(" + Success test " & testName)
625- End If
626-
627579TestExit:
628580 Exit Sub
629581TestFail:
0 commit comments