Index: tests/natools-s_expressions-atom_buffers-tests.adb ================================================================== --- tests/natools-s_expressions-atom_buffers-tests.adb +++ tests/natools-s_expressions-atom_buffers-tests.adb @@ -302,10 +302,18 @@ Report.Info ("Available length inconsistency, recorded" & Count'Image (Buffer.Available) & ", actual" & Count'Image (Buffer.Raw_Query.Data.all'Length)); return; end if; + + if Buffer.Data'Length /= Buffer.Used then + Report.Item (Name, NT.Fail); + Report.Info ("Used length inconsistency, recorded" + & Count'Image (Buffer.Used) & ", actual" + & Count'Image (Buffer.Data'Length)); + return; + end if; end; for O in Octet'(10) .. Octet'(50) loop Buffer.Append (O); end loop;