Skip to content

Commit cb8faca

Browse files
committed
tests: TA-Lib dev declares output signs on STOCHRSI and DPO, and dashes STOCHRSI's %D
1 parent c42d29c commit cb8faca

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

‎tests/test_abstract.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,10 @@ def test_info():
138138
'input_names': OrderedDict([('price', 'open')]),
139139
'name': 'STOCHRSI',
140140
'output_flags': OrderedDict([
141-
('fastk', ['Line']),
142-
('fastd', ['Line']),
141+
('fastk', ['Line', 'Output can be positive',
142+
'Output can be zero']),
143+
('fastd', ['Dashed Line', 'Output can be positive',
144+
'Output can be negative', 'Output can be zero']),
143145
]),
144146
'output_names': ['fastk', 'fastd'],
145147
'parameters': OrderedDict([
@@ -200,7 +202,8 @@ def test_flags_newer_than_0_8_1():
200202
dpo = abstract.Function('DPO')
201203
assert 'An output is display-shifted' in dpo.function_flags
202204
assert dpo.output_flags == OrderedDict([
203-
('real', ['Line', 'Output is display-shifted']),
205+
('real', ['Line', 'Output can be positive', 'Output can be negative',
206+
'Output can be zero', 'Output is display-shifted']),
204207
])
205208

206209
ln_flags = abstract.Function('LN').function_flags

0 commit comments

Comments
 (0)