Overview
Comment: | Add test for -[OFValue isEqual:] |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
7edbe989ad1705416a73f6406ceecd31 |
User & Date: | js on 2018-01-21 15:14:52 |
Other Links: | manifest | tags |
Context
2018-01-21
| ||
16:03 | Fix compiling as ObjC++ check-in: 98caf8e26c user: js tags: trunk | |
15:14 | Add test for -[OFValue isEqual:] check-in: 7edbe989ad user: js tags: trunk | |
12:18 | OFValue: Support for {point,dimension,rectangle}s check-in: 2ca34d3de1 user: js tags: trunk | |
Changes
Modified tests/OFValueTests.m from [2c898fcc53] to [2f42006d62].
︙ | ︙ | |||
157 158 159 160 161 162 163 164 165 166 | of_rectangle_equal(rectangle2, rectangle)) EXPECT_EXCEPTION(@"-[rectangleValue] with wrong size throws", OFOutOfRangeException, [[OFValue valueWithBytes: "a" objCType: @encode(char)] rectangleValue]) [pool drain]; } @end | > > > > > > > > > > > > > | 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | of_rectangle_equal(rectangle2, rectangle)) EXPECT_EXCEPTION(@"-[rectangleValue] with wrong size throws", OFOutOfRangeException, [[OFValue valueWithBytes: "a" objCType: @encode(char)] rectangleValue]) TEST(@"-[isEqual:]", [[OFValue valueWithRectangle: rectangle] isEqual: [OFValue valueWithBytes: &rectangle objCType: @encode(of_rectangle_t)]] && ![[OFValue valueWithBytes: "a" objCType: @encode(char)] isEqual: [OFValue valueWithBytes: "a" objCType: @encode(unsigned char)]] && ![[OFValue valueWithBytes: "a" objCType: @encode(char)] isEqual: [OFValue valueWithBytes: "b" objCType: @encode(char)]]) [pool drain]; } @end |