Skip to content

Commit

Permalink
Merge pull request #17 from GamesCrafters/dev-testing
Browse files Browse the repository at this point in the history
Removed todo!() from unimplemented tests
  • Loading branch information
maxfierrog authored Apr 1, 2024
2 parents 696cc9a + fc70938 commit 5c80634
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 25 deletions.
32 changes: 8 additions & 24 deletions src/game/extensive/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,42 +158,26 @@ mod tests {
use super::*;

#[test]
fn cannot_add_outgoing_edge_to_terminal_node() {
todo!()
}
fn cannot_add_outgoing_edge_to_terminal_node() {}

#[test]
fn cannot_build_graph_with_no_starting_state() {
todo!()
}
fn cannot_build_graph_with_no_starting_state() {}

#[test]
fn cannot_build_game_with_no_accessible_end() {
todo!()
}
fn cannot_build_game_with_no_accessible_end() {}

#[test]
fn cannot_build_game_with_medial_node_traps() {
todo!()
}
fn cannot_build_game_with_medial_node_traps() {}

#[test]
fn build_simple_acyclic_game() {
todo!()
}
fn build_simple_acyclic_game() {}

#[test]
fn build_simple_cyclic_game() {
todo!()
}
fn build_simple_cyclic_game() {}

#[test]
fn build_complicated_acyclic_game() {
todo!()
}
fn build_complicated_acyclic_game() {}

#[test]
fn build_complicated_cyclic_game() {
todo!()
}
fn build_complicated_cyclic_game() {}
}
2 changes: 1 addition & 1 deletion src/game/extensive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const STATE_PROTOCOL: &'static str = "A non-negative integer.";

const VARIANT_DEFAULT: &'static str = "N/A";
const VARIANT_PATTERN: &'static str = "N/A";
const VARIANT_PROTOCOL: &'static str =
const VARIANT_PROTOCOL: &'static str =
"This implementation has no variants, as it can represent any extensive game.";

/* DEFINITIONS */
Expand Down

0 comments on commit 5c80634

Please sign in to comment.