Skip to content

Commit

Permalink
uniformize tests name
Browse files Browse the repository at this point in the history
  • Loading branch information
ethicnology committed Feb 16, 2022
1 parent 6d1d4bc commit 26fb7d9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,15 +171,15 @@ impl Graph {
mod tests {
use super::*;
#[test]
fn insert_node() {
fn test_insert_node() {
let mut graph = Graph::new();
let node_id = "u".to_string();
graph.insert_node(Node::_new(node_id.clone()));
let is_contained = graph.nodes.contains_key(&node_id);
assert_eq!(is_contained, true);
}
#[test]
fn get_node() {
fn test_get_node() {
let mut graph = Graph::new();
let u = "u".to_string();
let v = "v".to_string();
Expand All @@ -191,7 +191,7 @@ mod tests {
}

#[test]
fn contains_link() {
fn test_contains_link() {
let mut graph = Graph::new();
let u = "u".to_string();
let v = "v".to_string();
Expand All @@ -203,7 +203,7 @@ mod tests {
}

#[test]
fn insert_link() {
fn test_insert_link() {
let mut graph = Graph::new();
let u = "u".to_string();
let v = "v".to_string();
Expand All @@ -225,7 +225,7 @@ mod tests {
}

#[test]
fn remove_node_without_neighbours() {
fn test_remove_node_without_neighbours() {
let mut graph = Graph::new();
let node_id = "u".to_string();
graph.insert_node(Node::_new(node_id.clone()));
Expand All @@ -234,7 +234,7 @@ mod tests {
assert_eq!(is_contained, false);
}
#[test]
fn remove_node_with_neighbours() {
fn test_remove_node_with_neighbours() {
let mut graph = Graph::new();
let u = "u".to_string();
let v = "v".to_string();
Expand Down

0 comments on commit 26fb7d9

Please sign in to comment.