Skip to content

Commit

Permalink
Update toolium/test/utils/test_dataset_replace_param.py
Browse files Browse the repository at this point in the history
Co-authored-by: Pablo Guijarro <[email protected]>
  • Loading branch information
promans718 and pabloge authored Oct 9, 2024
1 parent 39be4e7 commit 8b8be25
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion toolium/test/utils/test_dataset_replace_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,15 @@ def test_replace_param_title():
assert param == "HOlA"


def test_replace_param_round():
def test_replace_param_round_with_type_inference():
param = replace_param('[ROUND:7.5::2]')
assert param == 7.5
param = replace_param('[ROUND:3.33333333::3]')
assert param == 3.333


def test_replace_param_round_without_type_inference():
param = replace_param('[ROUND:7.500::2]', infer_param_type=False)
assert param == '7.50'
param = replace_param('[ROUND:3.33333333::3]', infer_param_type=False)
assert param == '3.333'

0 comments on commit 8b8be25

Please sign in to comment.