1
0
mirror of https://github.com/microsoft/qlib.git synced 2026-06-06 05:51:17 +08:00

fix test bug

This commit is contained in:
Young
2020-09-27 07:39:49 +00:00
parent 5b80ebaf40
commit 9eb3d3a416
2 changed files with 2 additions and 2 deletions

View File

@@ -1,2 +1,2 @@
# About dataset tests
This tests is for testing the prepared dataset from Yahoo
Tests in this folder are for testing the prepared dataset from Yahoo

View File

@@ -34,7 +34,7 @@ class TestDataset(unittest.TestCase):
print(close_desc)
self.assertLessEqual(abs(close_desc.loc["80%"][0]), 0.1, "Close value is abnormal")
self.assertLessEqual(abs(close_desc.loc["max"][0]), 0.2, "Close value is abnormal")
self.assertGreaterEqual(abs(close_desc.loc["min"][0]), -0.2, "Close value is abnormal")
self.assertGreaterEqual(close_desc.loc["min"][0], -0.2, "Close value is abnormal")
if __name__ == '__main__':