From fa078e8d3fa9c0916f5da950eee896d4fa67a4eb Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 5 Dec 2024 17:31:06 -0600 Subject: [PATCH] updates to cargo so builds work --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/types.rs | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d994b8d..a6e4a10 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -88,7 +88,7 @@ dependencies = [ [[package]] name = "crisp" -version = "0.1.0" +version = "0.1.1" dependencies = [ "lazy_static", "miette", diff --git a/Cargo.toml b/Cargo.toml index 735de93..96db636 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "crisp" -version = "0.1.0" +version = "0.1.1" edition = "2021" [lib] diff --git a/src/types.rs b/src/types.rs index eab1d5d..edde73c 100644 --- a/src/types.rs +++ b/src/types.rs @@ -197,3 +197,17 @@ impl std::fmt::Display for Keyword { std::fmt::Display::fmt(&self.0, f) } } + +#[cfg(test)] +mod test { + use super::*; + + #[test] + fn test_conversions() { + let value = Value::Symbol(Symbol("c1".to_owned())); + dbg!(&value); + let string = String::from("c1"); + let convert = String::from(value); + assert_eq!(string, convert); + } +}