Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(222)

Unified Diff: dashboard/dashboard/pinpoint/mann_whitney_u_test.py

Issue 3019503002: [pinpoint] Move mann_whitney_u.py to models/ (Closed)
Patch Set: Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dashboard/dashboard/pinpoint/mann_whitney_u.py ('k') | dashboard/dashboard/pinpoint/models/job.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/pinpoint/mann_whitney_u_test.py
diff --git a/dashboard/dashboard/pinpoint/mann_whitney_u_test.py b/dashboard/dashboard/pinpoint/mann_whitney_u_test.py
deleted file mode 100644
index c997b7144883e6f73f8f16669f3e2ed5d5766c21..0000000000000000000000000000000000000000
--- a/dashboard/dashboard/pinpoint/mann_whitney_u_test.py
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 2016 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-import unittest
-
-from dashboard.pinpoint import mann_whitney_u
-
-
-class MannWhitneyUTest(unittest.TestCase):
- def testBasic(self):
- self.assertAlmostEqual(
- mann_whitney_u.MannWhitneyU(range(10), range(20, 30)),
- 0.00018267179110955002)
- self.assertAlmostEqual(
- mann_whitney_u.MannWhitneyU(range(5), range(10)),
- 0.13986357686781267)
-
- def testDuplicateValues(self):
- self.assertAlmostEqual(mann_whitney_u.MannWhitneyU([0] * 5, [1] * 5),
- 0.0039767517097886512)
-
- def testSmallSamples(self):
- self.assertEqual(mann_whitney_u.MannWhitneyU([0], [1]), 1.0)
-
- def testAllValuesIdentical(self):
- with self.assertRaises(ValueError):
- mann_whitney_u.MannWhitneyU([0] * 5, [0] * 5)
-
-
-if __name__ == '__main__':
- unittest.main()
« no previous file with comments | « dashboard/dashboard/pinpoint/mann_whitney_u.py ('k') | dashboard/dashboard/pinpoint/models/job.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698