[−][src]Macro lab_grader::data
A macro to easily create a TestData
struct, which is
really just an alias to HashMap<String, String>
Example
use lab_grader::TestData; // The long way let mut map = TestData::new(); map.insert(String::from("key"), String::from("value")); // the macro way let data = data! { "key" => "value" }; assert_eq!(map, data);