From 3ad6e71f53a87215fb5286bcf87de15524699561 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 12 Nov 2017 17:26:09 -0800 Subject: Move tests into their own crate --- tests/invalid-encoder-misc.rs | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 tests/invalid-encoder-misc.rs (limited to 'tests/invalid-encoder-misc.rs') diff --git a/tests/invalid-encoder-misc.rs b/tests/invalid-encoder-misc.rs deleted file mode 100644 index 272f58f..0000000 --- a/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)); -} -- cgit v1.2.3