unittest: add rtf test

This commit is contained in:
Jesús García Sáez
2014-08-07 19:07:41 +02:00
parent 2a2d141629
commit 0b69727a49
2 changed files with 12 additions and 0 deletions

File diff suppressed because one or more lines are too long

View File

@@ -69,5 +69,16 @@
// Output is not correct... but the original issue was segfault
}
- (void) test_zentyal_crash_2089
{
NSString *out = nil, *error = nil, *in = nil, *expected = nil;
in = [self get_zentyal_crash_contents_of: 2089];
expected = @"<html><meta charset='utf-8'><body><font color=\"#000000\">Lorem Ipsum</font></body></html>";
out = [self rtf2html: in];
error = [NSString stringWithFormat:
@"Html from rtf result `%@` is not what we expected", out];
testWithMessage([out isEqualToString: expected], error);
}
@end