From 2209ab74ab651d958e250d1f991fe9f076f76503 Mon Sep 17 00:00:00 2001 From: Jedidiah Barber Date: Wed, 7 Jan 2026 11:50:31 +1300 Subject: Test programs now interleave calculation and text output better --- test/addsubo.adb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test/addsubo.adb') diff --git a/test/addsubo.adb b/test/addsubo.adb index 1033ea1..3ddf06c 100644 --- a/test/addsubo.adb +++ b/test/addsubo.adb @@ -55,8 +55,9 @@ procedure Addsubo is Result : State; begin Math.Add (Relation, B (Addend1) & B (Addend2) & Sum); + TIO.Put (P (Addend1) & " + " & P (Addend2) & " = "); Result := Relation.Run; - TIO.Put_Line (P (Addend1) & " + " & P (Addend2) & " = " & PV (Sum.Resolve (Result))); + TIO.Put_Line (PV (Sum.Resolve (Result))); end Add_Test; procedure Sub_Test @@ -67,8 +68,9 @@ procedure Addsubo is Result : State; begin Math.Subtract (Relation, B (Minuend) & B (Subtrahend) & Diff); + TIO.Put (P (Minuend) & " - " & P (Subtrahend) & " = "); Result := Relation.Run; - TIO.Put_Line (P (Minuend) & " - " & P (Subtrahend) & " = " & PV (Diff.Resolve (Result))); + TIO.Put_Line (PV (Diff.Resolve (Result))); end Sub_Test; begin -- cgit