Skip to content

Commit 68dc712

Browse files
committed
variance minimization unittest
1 parent 230b522 commit 68dc712

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

art/defences/variance_minimization_unittest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def test_one_channel(self):
2121
self.assertTrue((preprocessed_x.shape == x.shape))
2222
self.assertTrue((preprocessed_x <= 1.0).all())
2323
self.assertTrue((preprocessed_x >= 0.0).all())
24+
self.assertFalse((preprocessed_x == x).all())
2425

2526
def test_three_channels(self):
2627
(train_features, train_labels), (_, _) = cifar10.load_data()
@@ -30,6 +31,7 @@ def test_three_channels(self):
3031
self.assertTrue((preprocessed_x.shape == x.shape))
3132
self.assertTrue((preprocessed_x <= 1.0).all())
3233
self.assertTrue((preprocessed_x >= 0.0).all())
34+
self.assertFalse((preprocessed_x == x).all())
3335

3436

3537
if __name__ == '__main__':

0 commit comments

Comments
 (0)