<gh_stars>0
import pytest
from hamcrest import assert_that, equal_to
from albert_emb.utils import logger, paragraphs_join


def test_paragraphs_join():
    input_paragraphs = ["first paragraph", "Second paragraph. ", "3rd paragraph...", '4th and final.']
    expected = "first paragraph. Second paragraph. 3rd paragraph... . 4th and final."

    result = paragraphs_join(input_paragraphs)
    assert_that(result, equal_to(expected), f"Result:\n{result}\nDiffer from:\n{expected}")


if __name__ == "__main__":
    test_paragraphs_join()

import pytest
from hamcrest import assert_that, equal_to
from albert_emb.utils import logger, paragraphs_join


def test_paragraphs_join():
    input_paragraphs = ["first paragraph", "Second paragraph. ", "3rd paragraph...", '4th and final.']
    expected = "first paragraph. Second paragraph. 3rd paragraph... . 4th and final."

    result = paragraphs_join(input_paragraphs)
    assert_that(result, equal_to(expected), f"Result:\n{result}\nDiffer from:\n{expected}")


if __name__ == "__main__":
    test_paragraphs_join()