sharkdp / shell-functools

Functional programming tools for the shell
MIT License
1.19k stars 49 forks source link

Test breaks: test_add_dynamic_type in ft/ft/test_command.py #15

Closed franklingu closed 6 years ago

franklingu commented 6 years ago
__________________________________________________________________________________________ test_add_dynamic_type ___________________________________________________________________________________________

    def test_add_dynamic_type():
        assert add_dynamic_type("True").fttype == T_BOOL
>       assert add_dynamic_type("-1223").fttype == T_INT
E       AssertionError: assert String == Int
E        +  where String = TypedValue('-1223', String).fttype
E        +    where TypedValue('-1223', String) = add_dynamic_type('-1223')

ft/test_command.py:7: AssertionError

I got this error because I am using py.test auto discovery now and it executes test based on certain patterns. This is a failure.

sharkdp commented 6 years ago

Fixed.