updates to cargo so builds work
This commit is contained in:
parent
5340d5906f
commit
fa078e8d3f
3 changed files with 16 additions and 2 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -88,7 +88,7 @@ dependencies = [
|
|||
|
||||
[[package]]
|
||||
name = "crisp"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"miette",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
[package]
|
||||
name = "crisp"
|
||||
version = "0.1.0"
|
||||
version = "0.1.1"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
|
|
14
src/types.rs
14
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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue