aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-01-03 14:29:16 -0600
committerAlex Crichton <alex@alexcrichton.com>2015-01-03 14:29:16 -0600
commita5863e764d2d54199deb9d7c1c46fa67869eaf29 (patch)
treebf5b8a2804d730b37f4c30a137d3b640c42f8c82 /src/test
parent2557fc9ab98fd4ee4c894b05f1eda903773c4558 (diff)
parent887e5ff844efe5a6397ebfdf7333d3e3ec700ef4 (diff)
downloadmilf-rs-a5863e764d2d54199deb9d7c1c46fa67869eaf29.tar.gz
milf-rs-a5863e764d2d54199deb9d7c1c46fa67869eaf29.zip
Merge pull request #43 from vhbit/upd-deps
Updated serialize dependency
Diffstat (limited to 'src/test')
-rw-r--r--src/test/valid.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/valid.rs b/src/test/valid.rs
index 8f8b6bc..5d15739 100644
--- a/src/test/valid.rs
+++ b/src/test/valid.rs
@@ -2,7 +2,7 @@ extern crate serialize;
use std::num::strconv;
use std::collections::BTreeMap;
-use self::serialize::json::{mod, Json};
+use self::serialize::json::{self, Json};
use {Parser, Value};
use Value::{Table, Integer, Float, Boolean, Datetime, Array};
@@ -57,8 +57,8 @@ fn run(toml: &str, json: &str) {
let toml_json = to_json(Table(table));
assert!(json == toml_json,
"expected\n{}\ngot\n{}\n",
- json.to_pretty_str(),
- toml_json.to_pretty_str());
+ json.pretty(),
+ toml_json.pretty());
}
macro_rules! test( ($name:ident, $toml:expr, $json:expr) => (