def test_extracting_structural_features_gives_capitalised_ratio():
    review = review_tuple(content="Aul James said he likes Ireland")
    assert structural_features(review)[5] == 0.5
def test_extracting_structural_features_gives_capitalised_ratio_when_none():
    review = review_tuple(content="aul james said he likes ireland")
    assert structural_features(review)[5] == 0
def test_extracting_structural_features_gives_numerals_ratio():
    review = review_tuple(
        content="10 days later, im still waiting on my 2 kebabs")
    print(review[1])
    assert structural_features(review)[4] == 0.2
def test_extracting_structural_features_gives_numerals_ratio_when_none():
    review = review_tuple(content="days later, i'm still waiting on my kebabs")
    assert structural_features(review)[4] == 0
def test_extracting_structural_features_gives_avg_sentence_length():
    review = review_tuple(content="Sweet place. Smelled funny")
    assert structural_features(review)[3] == 12.5
def test_extracting_structural_features_gives_sentence_length():
    review = review_tuple(content="Cool place. Smelled funny")
    assert structural_features(review)[2] == 2
def test_extracting_structural_features_gives_avg_word_length_when_no_words():
    review = review_tuple(content="")
    assert structural_features(review)[1] == 0
def test_extracting_structural_features_gives_avg_word_length():
    review = review_tuple(content="silly spot")
    assert structural_features(review)[1] == 4.5
def test_extracting_structural_features_gives_review_length():
    review = review_tuple(content="lol")
    assert structural_features(review)[0] == 3