Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Added unit test to verify how the dataset object handles comparisons
  • Loading branch information
ArlindKadra committed Oct 29, 2020
commit 10a2bc348d05698a53aa2845c6deb3fa28fa3faa
6 changes: 6 additions & 0 deletions tests/test_datasets/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,12 @@ def test_get_data_corrupt_pickle(self):
self.assertIsInstance(xy, pd.DataFrame)
self.assertEqual(xy.shape, (150, 5))

def test_equality_comparison(self):
# verify the implemented comparison of the dataset object
Comment thread
PGijsbers marked this conversation as resolved.
Outdated
self.assertTrue(self.iris == self.iris)
Comment thread
ArlindKadra marked this conversation as resolved.
Outdated
self.assertFalse(self.iris == self.titanic)
self.assertFalse(self.titanic == 'Wrong_object')


class OpenMLDatasetTestOnTestServer(TestBase):
def setUp(self):
Expand Down