tests don't need test_ prefix

This commit is contained in:
2020-07-26 12:37:41 +01:00
parent f2ae43e85f
commit b5050720d8
13 changed files with 37 additions and 37 deletions

View File

@@ -189,7 +189,7 @@ mod test {
use crate::{ToBase36, optional_data_line, mock, segments_from_string, Quote, Unquote, new_unique_id, try_id};
#[test]
fn test_to_base36() {
fn to_base36() {
assert_eq!((37 as u64).to_base36(), "11");
}
@@ -200,7 +200,7 @@ mod test {
}
#[test]
fn test_string_to_segments() {
fn string_to_segments() {
let output = segments_from_string(
include_str!("./test-resources/segments").to_string()
);
@@ -216,14 +216,14 @@ mod test {
}
#[test]
fn test_quote() {
fn quote() {
let output = "this is a string.\nIt has 2 lines".to_string().quote();
let expected = "\"\"\"\nthis is a string.\nIt has 2 lines\n\"\"\"".to_string();
assert_eq!(output, expected);
}
#[test]
fn test_unquote() {
fn unquote() {
let output = "\"\"\"\nwho the fuck is scraeming \"LOG OFF\" at my house.\nshow yourself, coward.\ni will never log off\n\"\"\"".to_string().unquote();
let expected = "who the fuck is scraeming \"LOG OFF\" at my house.\nshow yourself, coward.\ni will never log off".to_string();
assert_eq!(output, expected);