Fixed wrong code for postcondition on HTTP_HEADER.string
Patch provided by Paul-G.Crismer
This commit is contained in:
@@ -116,8 +116,8 @@ feature -- Access
|
||||
create Result.make_empty
|
||||
end
|
||||
ensure
|
||||
result_has_ending_cr_lf: Result.count >= 2 implies Result.substring (Result.count - 2, Result.count).same_string ("%R%N")
|
||||
result_has_single_ending_cr_lf: Result.count >= 4 implies not Result.substring (Result.count - 4, Result.count).same_string ("%R%N%R%N")
|
||||
result_has_ending_cr_lf: Result.count >= 2 implies Result.substring (Result.count - 1, Result.count).same_string ("%R%N")
|
||||
result_has_single_ending_cr_lf: Result.count >= 4 implies not Result.substring (Result.count - 3, Result.count).same_string ("%R%N%R%N")
|
||||
end
|
||||
|
||||
feature -- Header change: general
|
||||
|
||||
Reference in New Issue
Block a user