use crate::*;
fn get_list<'a>() -> &'a [(i16, i16); 8] {
&[
(0, 0), (100, 100), (50, -50), (-9999, 9999), (0, 1), (-1, -1), (0, 0), (-9990, -9999), ]
}
#[test]
fn coordinate() {
let result = Coordinate::from_list(get_list());
assert_eq!(result.len(), 8);
}
#[test]
fn node() {
let result = Node::from_list(get_list());
assert_eq!(result.len(), 8);
}
#[test]
fn group() {
let result = Group::from_list(get_list());
assert_eq!(result.len(), 8);
}