summaryrefslogtreecommitdiff
path: root/test/libapt/strutil_test.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-07-26 11:10:47 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-07-26 11:10:47 +0200
commitb9dc47069ab90a79ca3b9eae3cc85d38062d57ee (patch)
treee475dac924a3770c568e5a4149f4bc91c9275e47 /test/libapt/strutil_test.cc
parente0146bb1813743e9042c2aad4d1131ca382861c1 (diff)
add another escape test case, fixup octal one (its \0XX instead of \0XXX)
Diffstat (limited to 'test/libapt/strutil_test.cc')
-rw-r--r--test/libapt/strutil_test.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/libapt/strutil_test.cc b/test/libapt/strutil_test.cc
index 8d81a0c6c..af6eb2cc6 100644
--- a/test/libapt/strutil_test.cc
+++ b/test/libapt/strutil_test.cc
@@ -36,5 +36,11 @@ int main(int argc,char *argv[])
output = DeEscapeString(input);
equals(output, expected);
+ // the string that we actually need it for
+ input = "/media/Ubuntu\\04011.04\\040amd64";
+ expected = "/media/Ubuntu 11.04 amd64";
+ output = DeEscapeString(input);
+ equals(output, expected);
+
return 0;
}