MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_unary_operations

Method test_unary_operations

Lib/test/test_statistics.py:3224–3234  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3222 y / X
3223
3224 def test_unary_operations(self):
3225 NormalDist = self.module.NormalDist
3226 X = NormalDist(100, 12)
3227 Y = +X
3228 self.assertIsNot(X, Y)
3229 self.assertEqual(X.mean, Y.mean)
3230 self.assertEqual(X.stdev, Y.stdev)
3231 Y = -X
3232 self.assertIsNot(X, Y)
3233 self.assertEqual(X.mean, -Y.mean)
3234 self.assertEqual(X.stdev, Y.stdev)
3235
3236 def test_equality(self):
3237 NormalDist = self.module.NormalDist

Callers

nothing calls this directly

Calls 3

NormalDistClass · 0.85
assertIsNotMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected