chore (backend-rs): use pretty_assertions in unit tests

This commit is contained in:
naskya 2024-04-12 17:18:39 +09:00
parent 148c3736ce
commit 35ca75bfe5
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
2 changed files with 2 additions and 0 deletions

View File

@ -36,6 +36,7 @@ pub fn acct_to_string(acct: &Acct) -> String {
#[cfg(test)]
mod unit_test {
use super::{acct_to_string, string_to_acct, Acct};
use pretty_assertions::assert_eq;
#[test]
fn test_acct_to_string() {

View File

@ -82,6 +82,7 @@ pub fn nyaify(text: &str, lang: Option<&str>) -> String {
#[cfg(test)]
mod unit_test {
use super::nyaify;
use pretty_assertions::assert_eq;
#[test]
fn can_nyaify() {