Added test2 to p22, TODO: implement p22
This commit is contained in:
parent
62e8eaf52f
commit
5c73aefbc4
1 changed files with 6 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
pub struct Solution;
|
||||
impl Solution {
|
||||
// TODO: implement
|
||||
pub fn generate_parenthesis(n: i32) -> Vec<String> {
|
||||
|
||||
return vec![];
|
||||
|
@ -12,3 +13,8 @@ fn test1() {
|
|||
actual.sort();
|
||||
assert_eq!(actual, vec!["((()))","(()())","(())()","()(())","()()()"]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test2() {
|
||||
assert_eq!(Solution::generate_parenthesis(1), vec!["()"]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue