[][src]Macro leetcode_test::leetcode_test

leetcode_test!() { /* proc-macro */ }

Generate code from leetcode json

Example

This example is not tested
leetcode_test!(
    ["Trie", "insert", "search"]
    [[], ["apple"], ["apple"]]
    [null, null, true]
)

this will be expaned to

This example is not tested
let mut obj = Trie::new();
obj.insert("apple".to_owned());
assert_eq!(obj.search("apple".to_owned()), true);