import random
import string

"""Test RAPFD metric.

Example is taken from original paper:
title: A Revisit of Metrics for Test Case Prioritization Problems
authors: Wang, Ziyuan and Fang, Chunrong and Chen, Lin and Zhang, Zhiyi
section 4.1. Relative-APFD

RAPFD(σ₁, 1) = 0
RAPFD(σ₁, 2) = 3/16
RAPFD(σ₁, 3) = 1/3
RAPFD(σ₁, 4) = 13/32
RAPFD(σ₁, 5) = 1/2
RAPFD(σ₁, 6) = 7/12
RAPFD(σ₁, 7) = 9/14
"""

def generate_random_string(length=100):
    """
    Generate a random string of the specified length.
    :param length: Length of the random string (default is 10).
    :return: Random string.
    """
    characters = string.ascii_letters + string.digits  # Includes uppercase, lowercase, and digits
    return ''.join(random.choices(characters, k=length))

def test_a_t3():
    """First detector."""

def test_b_t5():
    """Second detector."""

def test_c_t2():
    """Third detector."""

def test_d_t4():
    """Fourth detector."""

def test_e_t1():
    """Fifth detector."""
