diff options
| author | Jedidiah Barber <contact@jedbarber.id.au> | 2026-01-07 11:50:31 +1300 |
|---|---|---|
| committer | Jedidiah Barber <contact@jedbarber.id.au> | 2026-01-07 11:50:31 +1300 |
| commit | 2209ab74ab651d958e250d1f991fe9f076f76503 (patch) | |
| tree | db13590fdea0c26bc9346ecad186ee065288b4b0 /test/expo.adb | |
| parent | 8a8435b1f51401ebe4881ab8da1eb4f3913270fd (diff) | |
Test programs now interleave calculation and text output better
Diffstat (limited to 'test/expo.adb')
| -rw-r--r-- | test/expo.adb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/expo.adb b/test/expo.adb index ea2e950..dbfa903 100644 --- a/test/expo.adb +++ b/test/expo.adb @@ -55,8 +55,9 @@ procedure Expo is Result : State; begin Math.Exponential (Relation, B (Base) & B (Exponent) & Power); + TIO.Put (P (Base) & "^" & P (Exponent) & " = "); Result := Relation.Run; - TIO.Put_Line (P (Base) & "^" & P (Exponent) & " = " & PV (Power.Resolve (Result))); + TIO.Put_Line (PV (Power.Resolve (Result))); end Exp_Test; procedure Repeated_Mult_Test @@ -67,8 +68,9 @@ procedure Expo is Result : State; begin Math.Repeated_Multiply (Relation, B (Base) & B (Exponent) & Power); + TIO.Put (P (Base) & "^" & P (Exponent) & " = "); Result := Relation.Run; - TIO.Put_Line (P (Base) & "^" & P (Exponent) & " = " & PV (Power.Resolve (Result))); + TIO.Put_Line (PV (Power.Resolve (Result))); end Repeated_Mult_Test; begin |
