Skip to content

Commit 58e83d8

Browse files
committed
update TestPNL
1 parent 2949cf9 commit 58e83d8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/TestPNL.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class TestPNL(unittest.TestCase):
1818
# np.savetxt(r"TestData/pnl_simulation_3.txt", np.hstack([x, y_3]), delimiter=',')
1919

2020
# Set the threshold for independence test
21-
p_value_threshold = 0.1 # useless now but left
21+
p_value_threshold = 0.5 # useless now but left
2222
pnl = PNL()
2323

2424
# Test PNL by some simulated data
@@ -75,5 +75,6 @@ def test_pnl_real(self):
7575
self.assertTrue(p_value_forward == real_dataset_p_value_forward)
7676
self.assertTrue(p_value_backward == real_dataset_p_value_backward)
7777
self.assertTrue(p_value_forward > self.p_value_threshold)
78+
self.assertTrue(p_value_backward < self.p_value_threshold)
7879
print('PNL passed the real data case!')
7980

0 commit comments

Comments
 (0)