mirror of
https://github.com/nushell/nushell.git
synced 2025-07-01 07:00:37 +02:00
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:
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user