From 5c73aefbc48e30e570b18b84805d02753cf0a62f Mon Sep 17 00:00:00 2001 From: erius Date: Fri, 3 May 2024 02:22:22 +0300 Subject: [PATCH] Added test2 to p22, TODO: implement p22 --- src/p22_generate_parentheses.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/p22_generate_parentheses.rs b/src/p22_generate_parentheses.rs index 1f44d60..b3e6968 100644 --- a/src/p22_generate_parentheses.rs +++ b/src/p22_generate_parentheses.rs @@ -1,5 +1,6 @@ pub struct Solution; impl Solution { + // TODO: implement pub fn generate_parenthesis(n: i32) -> Vec { return vec![]; @@ -12,3 +13,8 @@ fn test1() { actual.sort(); assert_eq!(actual, vec!["((()))","(()())","(())()","()(())","()()()"]); } + +#[test] +fn test2() { + assert_eq!(Solution::generate_parenthesis(1), vec!["()"]); +}