Skip to content

Commit

Permalink
ParentPackage.ChildPackage is not a dependency of the spec file - so …
Browse files Browse the repository at this point in the history
…only 4 dependencies minimally
  • Loading branch information
pjljvandelaar committed Sep 23, 2022
1 parent bf8685d commit b4bd6b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions workshop/tests/src/test_examples.adb
Original file line number Diff line number Diff line change
Expand Up @@ -323,10 +323,12 @@ package body Test_Examples is
for UD of SCompilationUnit.P_Unit_Dependencies loop
Put_Line (" " & Image (UD.P_Decl.P_Defining_Name.Text));
end loop;
-- Dependencies include at least:
-- Ada, Ada.Assertions, Ada.Text_IO, and ParentPackage
Assert
(Condition => SCompilationUnit.P_Unit_Dependencies'Length >= 5,
(Condition => SCompilationUnit.P_Unit_Dependencies'Length >= 4,
Message =>
"Length of Unit Dependencies is unexpectedly not at least 5 but "
"Length of Unit Dependencies is unexpectedly not at least 4 but "
& SCompilationUnit.P_Unit_Dependencies'Length'Image);
declare
BUnit : constant Analysis_Unit :=
Expand Down

0 comments on commit b4bd6b6

Please sign in to comment.