Add tests for get_data_by_key (#2658)

* Add test for get_data_by_key

* Apply same order for ValuExt impl

* Nothing helper for tests

* Use get_data_by_key from ValueExt
This commit is contained in:
Chris Gillespie
2020-10-12 20:46:58 -07:00
committed by GitHub
parent 95e61773a5
commit 38bdb053d2
6 changed files with 63 additions and 19 deletions

View File

@ -22,6 +22,10 @@ pub fn row(entries: IndexMap<String, Value>) -> Value {
UntaggedValue::row(entries).into_untagged_value()
}
pub fn nothing() -> Value {
UntaggedValue::nothing().into_untagged_value()
}
pub fn table(list: &[Value]) -> Value {
UntaggedValue::table(list).into_untagged_value()
}