Skip to content

Repetition in tests #73

@mathprocessing

Description

@mathprocessing

chess/src/game.rs

Lines 461 to 469 in ad13857

// three fold, but with a move at the end that breaks the draw cycle
let game =
fake_pgn_parser("1. Nc3 Nf6 2. Nb1 Ng8 3. Nc3 Nf6 4. Nb1 Ng8 5. Nc3 Nf6 6. Nb1 Ng8 7. e4");
assert!(!game.can_declare_draw());
// three fold, but with a move at the end that breaks the draw cycle
let game =
fake_pgn_parser("1. Nc3 Nf6 2. Nb1 Ng8 3. Nc3 Nf6 4. Nb1 Ng8 5. Nc3 Nf6 6. Nb1 Ng8 7. e4");
assert!(!game.can_declare_draw());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions