mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 05:58:01 +00:00
Follow rust std: int, uint were renamed to isize, usize
This commit is contained in:
+8
-8
@@ -93,22 +93,22 @@ mod tests {
|
||||
assert_eq!(value, Value::Array(Vec::new()));
|
||||
|
||||
let value = ArrayBuilder::new()
|
||||
.push(1i)
|
||||
.push(2i)
|
||||
.push(3i)
|
||||
.push(1is)
|
||||
.push(2is)
|
||||
.push(3is)
|
||||
.unwrap();
|
||||
assert_eq!(value, Value::Array(vec!(Value::Integer(1), Value::Integer(2), Value::Integer(3))));
|
||||
|
||||
let value = ArrayBuilder::new()
|
||||
.push_array(|bld| bld.push(1i).push(2i).push(3i))
|
||||
.push_array(|bld| bld.push(1is).push(2is).push(3is))
|
||||
.unwrap();
|
||||
assert_eq!(value, Value::Array(vec!(Value::Array(vec!(Value::Integer(1), Value::Integer(2), Value::Integer(3))))));
|
||||
|
||||
let value = ArrayBuilder::new()
|
||||
.push_object(|bld|
|
||||
bld
|
||||
.insert("a".to_string(), 1i)
|
||||
.insert("b".to_string(), 2i))
|
||||
.insert("a".to_string(), 1is)
|
||||
.insert("b".to_string(), 2is))
|
||||
.unwrap();
|
||||
|
||||
let mut map = BTreeMap::new();
|
||||
@@ -123,8 +123,8 @@ mod tests {
|
||||
assert_eq!(value, Value::Object(BTreeMap::new()));
|
||||
|
||||
let value = ObjectBuilder::new()
|
||||
.insert("a".to_string(), 1i)
|
||||
.insert("b".to_string(), 2i)
|
||||
.insert("a".to_string(), 1is)
|
||||
.insert("b".to_string(), 2is)
|
||||
.unwrap();
|
||||
|
||||
let mut map = BTreeMap::new();
|
||||
|
||||
Reference in New Issue
Block a user