Skip to content

Commit 68a7898

Browse files
committed
Updates
1 parent cab4285 commit 68a7898

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

src/json/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ mod test {
127127
assert_eq!(display_as_json(&Edn::UInt(34u64)), String::from("34"));
128128
assert_eq!(display_as_json(&Edn::Int(-25i64)), String::from("-25"));
129129
assert_eq!(
130-
display_as_json(&Edn::Double(3.14f64.into())),
131-
String::from("3.14")
130+
display_as_json(&Edn::Double(3.15f64.into())),
131+
String::from("3.15")
132132
);
133133
assert_eq!(
134134
display_as_json(&Edn::Double(32f64.into())),

tests/deserialize.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,6 @@ mod test {
2727
assert_eq!(Edn::from_str(edn).unwrap(), Edn::Empty);
2828
}
2929

30-
#[test]
31-
#[cfg(not(feature = "sets"))]
32-
// Special case of running into a set without the feature enabled
33-
fn parse_set_without_set_feature() {
34-
assert_eq!(
35-
Edn::from_str("#{true, \\c, 3,four, }"),
36-
Err(Error::ParseEdn(
37-
"Could not parse set due to feature not being enabled".to_string()
38-
))
39-
)
40-
}
41-
4230
#[test]
4331
fn parse_commas_are_whitespace() {
4432
assert_eq!(Edn::from_str(",,,,, \r\n,,,").unwrap(), Edn::Empty);

tests/deserialize_sets.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#[cfg(feature = "sets")]
21
#[cfg(test)]
32
mod test {
43
extern crate alloc;

tests/parse_sets.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#[cfg(feature = "sets")]
21
#[cfg(test)]
32
mod tests {
43
extern crate alloc;

0 commit comments

Comments
 (0)