aboutsummaryrefslogtreecommitdiff
path: root/test-suite/tests/invalid-encoder-misc.rs
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2018-07-10 16:27:58 -0700
committerEric Huss <eric@huss.org>2018-07-11 00:50:04 -0700
commit69b4571c6bafcd7d9f675d3eb49d4c088d372eea (patch)
tree3a1715fa18ba7640c12fea20ffaa762206c95c62 /test-suite/tests/invalid-encoder-misc.rs
parent2be7ce9079fa02d9dd42958410ba1c40cef9811c (diff)
downloadmilf-rs-69b4571c6bafcd7d9f675d3eb49d4c088d372eea.tar.gz
milf-rs-69b4571c6bafcd7d9f675d3eb49d4c088d372eea.zip
0.5: Support floats nan, inf, and +/-0.0.
cc #224
Diffstat (limited to 'test-suite/tests/invalid-encoder-misc.rs')
-rw-r--r--test-suite/tests/invalid-encoder-misc.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/test-suite/tests/invalid-encoder-misc.rs b/test-suite/tests/invalid-encoder-misc.rs
deleted file mode 100644
index 272f58f..0000000
--- a/test-suite/tests/invalid-encoder-misc.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-extern crate toml;
-
-use std::f64;
-
-#[test]
-fn test_invalid_float_encode() {
- fn bad(value: toml::Value) {
- assert!(toml::to_string(&value).is_err());
- }
-
- bad(toml::Value::Float(f64::INFINITY));
- bad(toml::Value::Float(f64::NEG_INFINITY));
- bad(toml::Value::Float(f64::NAN));
-}