update dependencies

This commit is contained in:
Simon Gardling
2023-04-18 10:14:31 -04:00
parent cb6a773659
commit 7e1fe54d59
18 changed files with 484 additions and 572 deletions

View File

@@ -62,7 +62,7 @@ fn option_vec_printer() {
#[test]
fn hashed_storage() {
use ytbn_graphing_software::{hashed_storage_read, HashBytesHelper};
use ytbn_graphing_software::{hashed_storage_create, hashed_storage_read};
let commit = "abcdefeg".chars().map(|c| c as u8).collect::<Vec<u8>>();
let data = "really cool data"
@@ -73,7 +73,7 @@ fn hashed_storage() {
.as_slice()
.try_into()
.expect("cannot turn into [u8; 8]");
let storage = storage_tmp.hashed_storage_create(data.as_slice());
let storage = hashed_storage_create(&storage_tmp, data.as_slice());
let read = hashed_storage_read(&storage);
assert_eq!(
@@ -208,6 +208,6 @@ fn to_chars_array() {
use ytbn_graphing_software::to_chars_array;
assert_eq!(
to_chars_array(vec!['\u{1f31e}', '\u{2d12c}']),
r#"['\u{1f31e}', '\u{2d12c}']"#
r"['\u{1f31e}', '\u{2d12c}']"
);
}

View File

@@ -3,7 +3,7 @@ use std::collections::HashMap;
#[test]
fn hashmap_gen_test() {
let data = vec!["time", "text", "test"];
let data = ["time", "text", "test"];
let expect = vec![
("t", "Hint::Many(&[\"ime(\", \"ext(\", \"est(\"])"),
("te", "Hint::Many(&[\"xt(\", \"st(\"])"),