aboutsummaryrefslogtreecommitdiff
path: root/test/addsubo.adb
diff options
context:
space:
mode:
authorJedidiah Barber <contact@jedbarber.id.au>2026-01-07 11:50:31 +1300
committerJedidiah Barber <contact@jedbarber.id.au>2026-01-07 11:50:31 +1300
commit2209ab74ab651d958e250d1f991fe9f076f76503 (patch)
treedb13590fdea0c26bc9346ecad186ee065288b4b0 /test/addsubo.adb
parent8a8435b1f51401ebe4881ab8da1eb4f3913270fd (diff)
Test programs now interleave calculation and text output better
Diffstat (limited to 'test/addsubo.adb')
-rw-r--r--test/addsubo.adb6
1 files changed, 4 insertions, 2 deletions
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