added postcondition to ensure the body string set to the response, is the same reference

this is important, since sometime we just do
  rep.set_body (s)
  s.append_string ("..")
This commit is contained in:
Jocelyn Fiat
2012-02-14 18:02:14 +01:00
parent 4bb8a71c1b
commit f59d5cac32

View File

@@ -60,6 +60,8 @@ feature -- Element change
set_body (a_body: like body)
do
body := a_body
ensure
body_set: a_body /= Void implies body = a_body
end
put_string (a_string: READABLE_STRING_8)