port over tests from previous iteration

This commit is contained in:
temportalflux
2026-07-11 09:31:07 -04:00
parent 246bc3e6e4
commit 0ae4c8f146
3 changed files with 1644 additions and 4 deletions
@@ -16,7 +16,6 @@ pub use storage::*;
- color styling configs
- text sanitation
- test IME (char palette only available on macos)
- unit tests
*/
/* Open questions:
File diff suppressed because it is too large Load Diff
@@ -240,10 +240,13 @@ pub struct StringStorage {
value: String,
version: u16,
}
impl From<String> for StringStorage {
fn from(value: String) -> Self {
impl<S> From<S> for StringStorage
where
S: Into<String>,
{
fn from(value: S) -> Self {
Self {
value,
value: value.into(),
version: u16::default(),
}
}