co-author 0.1.3

Co-Author your git commits from the command line
use crate::authors::{author::Author, csv::mapper};

#[test]
fn map_from_valid_csv_line() {
	let alias = "a";
	let name = "alice";
	let email = "alice@wonderland.not";
	let csv_line = format!("{alias},{name},{email}");

	let author_from_csv = mapper::to_author(csv_line.as_str());

	assert_eq!(author_from_csv, Some(Author::from(alias, name, email)));
}

#[test]
fn not_map_from_invalid_csv_line() {
	let name = "alice";
	let email = "alice@wonderland.not";

	let no_author = mapper::to_author(format!("{name},{email}").as_str());

	assert_eq!(no_author, None);
}