Differences From Artifact [e9d766fa55]:
- File
tests/OFObjectTests.m
— part of check-in
[44f45c2e35]
at
2017-01-09 17:36:36
on branch trunk
— Update copyright
Forgot to add 2017, even though I already did quite some changes in
2017. (user: js, size: 8742) [annotate] [blame] [check-ins using]
To Artifact [2156cf6ce1]:
- File
tests/OFObjectTests.m
— part of check-in
[7c2a0dda3d]
at
2017-05-07 15:39:31
on branch trunk
— Do not include any addresses in -[description]
This makes it harder to accidentally leak addresses which could be used
to defeat ASLR. (user: js, size: 8660) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
143 144 145 146 147 148 149 | [[OFObject description] isEqual: @"OFObject"] && [[MyObj description] isEqual: @"MyObj"]) o = [[[OFObject alloc] init] autorelease]; m = [[[MyObj alloc] init] autorelease]; TEST(@"-[description]", | | < | < | 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 | [[OFObject description] isEqual: @"OFObject"] && [[MyObj description] isEqual: @"MyObj"]) o = [[[OFObject alloc] init] autorelease]; m = [[[MyObj alloc] init] autorelease]; TEST(@"-[description]", [[o description] isEqual: @"<OFObject>"] && [[m description] isEqual: @"<MyObj>"]) [m setObjectValue: @"Hello"]; [m setClassValue: [m class]]; TEST(@"-[valueForKey:]", [[m valueForKey: @"objectValue"] isEqual: @"Hello"] && [[m valueForKey: @"classValue"] isEqual: [m class]] && [[m valueForKey: @"class"] isEqual: [m class]]) |
︙ | ︙ |