Download data/tests/test_libfunc.py from introvoyz042/haddock3: direct link, hf CLI and curl.
- Browser
- Download file 333 Bytes
-
https://huggingface.co/datasets/introvoyz042/haddock3/resolve/main/data/tests/test_libfunc.py
- Command line
-
hf download hf://datasets/introvoyz042/haddock3/data/tests/test_libfunc.py
-
curl -L -o test_libfunc.py https://huggingface.co/datasets/introvoyz042/haddock3/resolve/main/data/tests/test_libfunc.py
333 Bytes
| """Test libfunc.""" | |
| from haddock.libs.libfunc import chainf, chainfs | |
| def test_chainf(): | |
| result = chainf(2, *[str, int, float]) | |
| assert isinstance(result, float) | |
| assert result == 2.0 | |
| def test_chainfs(): | |
| do = chainfs(str, int, float) | |
| result = do(2) | |
| assert isinstance(result, float) | |
| assert result == 2.0 | |