pretty assert

This commit is contained in:
veeso
2021-05-06 21:57:04 +02:00
parent c0eb98c3f9
commit 892be42988
33 changed files with 101 additions and 1 deletions

View File

@@ -52,6 +52,8 @@ mod tests {
use super::*;
use pretty_assertions::assert_eq;
#[test]
fn test_utils_crypto_aes128() {
let key: &str = "MYSUPERSECRETKEY";

View File

@@ -157,6 +157,8 @@ mod tests {
use super::*;
use pretty_assertions::assert_eq;
#[test]
fn test_utils_fmt_pex() {
assert_eq!(fmt_pex(7, 7, 7), String::from("rwxrwxrwx"));

View File

@@ -233,6 +233,8 @@ mod tests {
use super::*;
use crate::utils::fmt::fmt_time;
use pretty_assertions::assert_eq;
#[test]
fn test_utils_parse_remote_opt() {
// Base case

View File

@@ -47,6 +47,8 @@ mod tests {
use super::*;
use pretty_assertions::assert_eq;
#[test]
fn test_utils_random_alphanumeric_with_len() {
assert_eq!(random_alphanumeric_with_len(256).len(), 256);

View File

@@ -60,6 +60,8 @@ mod tests {
use super::*;
use pretty_assertions::assert_eq;
#[test]
fn test_utils_ui_draw_area_in() {
let area: Rect = Rect::new(0, 0, 1024, 512);