mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-03-31 19:12:44 +00:00
unittest: add rtf test
This commit is contained in:
1
Tests/Unit/Fixtures/zentyal_crash_2089.rtf
Normal file
1
Tests/Unit/Fixtures/zentyal_crash_2089.rtf
Normal file
File diff suppressed because one or more lines are too long
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user