# Path: wordseg/folding.py
# def _permute(l):
# def _flatten(l):
# def _cumsum(l):
# def boundaries(text, nfolds):
# def fold(text, nfolds, fold_boundaries=None):
# def unfold(folds, index):


import pytest
from wordseg import folding
"""Test of the folding module"""



def test_permute():
    l = list(range(5))
    l = folding._permute(l)
    assert l == [4, 0, 1, 2, 3]


# Path: wordseg/folding.py
# def _permute(l):
# def _flatten(l):
# def _cumsum(l):
# def boundaries(text, nfolds):
# def fold(text, nfolds, fold_boundaries=None):
# def unfold(folds, index):


# Path: test/test_folding.py
import pytest
from wordseg import folding

"""Test of the folding module"""



def test_permute():
    l = list(range(5))
    l = folding._permute(l)
    assert l == [4, 0, 1, 2, 3]


    l = folding._permute(l)