import pytest
from splines import CatmullRom


def test_repeated_vertices_with_alpha():
    CatmullRom([[1, 1], [1, 1]], alpha=0)
    with pytest.raises(ValueError, match='(?i)repeated vertices.*alpha'):
        CatmullRom([[1, 1], [1, 1]], alpha=1)

c60d12209820225827e4f3b3c73f388a9059f8cb
<mask token>

<mask token>


def test_repeated_vertices_with_alpha():
    CatmullRom([[1, 1], [1, 1]], alpha=0)
    with pytest.raises(ValueError, match='(?i)repeated vertices.*alpha'):
        CatmullRom([[1, 1], [1, 1]], alpha=1)

import pytest
from splines import CatmullRom


def test_repeated_vertices_with_alpha():
    CatmullRom([[1, 1], [1, 1]], alpha=0)
    with pytest.raises(ValueError, match='(?i)repeated vertices.*alpha'):
        CatmullRom([[1, 1], [1, 1]], alpha=1)
