[geary/wip/795328-null-secret-colection: 1/2] Increase len of non-truncated strs that TestCase.assert_string reports.
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/795328-null-secret-colection: 1/2] Increase len of non-truncated strs that TestCase.assert_string reports.
- Date: Fri, 27 Apr 2018 03:47:11 +0000 (UTC)
commit 598f1a5e897e8e0943d341dd36178ea323e7b100
Author: Michael James Gratton <mike vee net>
Date: Fri Apr 27 12:37:13 2018 +1000
Increase len of non-truncated strs that TestCase.assert_string reports.
test/test-case.vala | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/test/test-case.vala b/test/test-case.vala
index 78502d2..759962d 100644
--- a/test/test-case.vala
+++ b/test/test-case.vala
@@ -50,12 +50,12 @@ public void assert_string(string expected, string? actual, string? context = nul
throws Error {
if (expected != actual) {
string a = expected;
- if (a.length > 20) {
- a = a[0:15] + "…";
+ if (a.length > 32) {
+ a = a[0:32] + "…";
}
string b = actual;
- if (b.length > 20) {
- b = b[0:15] + "…";
+ if (b.length > 32) {
+ b = b[0:32] + "…";
}
print_assert("Expected: \"%s\", was: \"%s\"".printf(a, b), context);
assert_not_reached();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]