Bug 333247 - Equality operators for Schema and SimpleField
Summary: Equality operators for Schema and SimpleField
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: 1.7 (KDE 4.12)
Platform: unspecified Linux
: NOR task
Target Milestone: ---
Assignee: Sanjiban Bairagya
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2014-04-09 21:03 UTC by Dennis Nienhüser
Modified: 2014-04-10 14:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dennis Nienhüser 2014-04-09 21:03:55 UTC
Add operator== and operator!= to the classes GeoDataSimpleField and GeoDataSchema. Make sure to also call the equals() method of GeoDataObject in GeoDataSchema. Extend TestEquality by a new unit test method for each class which verifies the implementation for several instances of each class.

Make sure to compile Marble with the BUILD_MARBLE_TESTS=TRUE option enabled and run the test case from the build folder (run tests/TestEquality). Note that operator!= should call operator==, see GeoDataAccuracy for an example. Submit a review request at https://git.reviewboard.kde.org.

Please leave a comment here (e.g. "I want to work on this task.") if you start working on this task to avoid multiple people working on it at the same time.
Comment 1 Dennis Nienhüser 2014-04-10 14:58:06 UTC
Git commit 2337dc2816111884823c4c920c482cb0e56df2c7 by Dennis Nienhüser, on behalf of Sanjiban Bairagya.
Committed on 10/04/2014 at 14:57.
Pushed by nienhueser into branch 'master'.

Equality operators for Schema and SimpleField
REVIEW: 117483

M  +13   -0    src/lib/marble/geodata/data/GeoDataSchema.cpp
M  +2    -0    src/lib/marble/geodata/data/GeoDataSchema.h
M  +12   -0    src/lib/marble/geodata/data/GeoDataSimpleField.cpp
M  +2    -0    src/lib/marble/geodata/data/GeoDataSimpleField.h
M  +63   -0    tests/TestEquality.cpp

http://commits.kde.org/marble/2337dc2816111884823c4c920c482cb0e56df2c7