mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
Check for nil in NSData Test
This commit is contained in:
parent
096f6e7fec
commit
52b8752776
1 changed files with 1 additions and 0 deletions
|
@ -15,6 +15,7 @@ int main()
|
||||||
NSUInteger length;
|
NSUInteger length;
|
||||||
|
|
||||||
ref = [NSData dataWithContentsOfFile: @"Lorum"];
|
ref = [NSData dataWithContentsOfFile: @"Lorum"];
|
||||||
|
PASS(ref != nil, "dataWithContentsOfFile: is not nil");
|
||||||
PASS(NO == [ref isGzipped], "Reference data is not gzipped");
|
PASS(NO == [ref isGzipped], "Reference data is not gzipped");
|
||||||
|
|
||||||
data = [ref gzipped: 0];
|
data = [ref gzipped: 0];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue