mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Add test for 0 precision amount
This commit is contained in:
parent
d23d830346
commit
f61d4d36c3
|
@ -231,6 +231,10 @@ def test_validate_order_time_in_force(default_conf, mocker, caplog):
|
||||||
(2.34559, 2, 3, 1, 2.345, 'spot'),
|
(2.34559, 2, 3, 1, 2.345, 'spot'),
|
||||||
(2.9999, 2, 3, 1, 2.999, 'spot'),
|
(2.9999, 2, 3, 1, 2.999, 'spot'),
|
||||||
(2.9909, 2, 3, 1, 2.990, 'spot'),
|
(2.9909, 2, 3, 1, 2.990, 'spot'),
|
||||||
|
(2.9909, 2, 0, 1, 2, 'spot'),
|
||||||
|
(29991.5555, 2, 0, 1, 29991, 'spot'),
|
||||||
|
(29991.5555, 2, -1, 1, 29990, 'spot'),
|
||||||
|
(29991.5555, 2, -2, 1, 29900, 'spot'),
|
||||||
# Tests for Tick-size
|
# Tests for Tick-size
|
||||||
(2.34559, 4, 0.0001, 1, 2.3455, 'spot'),
|
(2.34559, 4, 0.0001, 1, 2.3455, 'spot'),
|
||||||
(2.34559, 4, 0.00001, 1, 2.34559, 'spot'),
|
(2.34559, 4, 0.00001, 1, 2.34559, 'spot'),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user