diff --git a/src/lib/parser/shell_expand/words/methods/strings.rs b/src/lib/parser/shell_expand/words/methods/strings.rs index e1ad69ad735eda9c3e89bd10f505328e6ee51ad9..a8b1347f0549ddfe0cf8c8521ecef155cd6b1632 100644 --- a/src/lib/parser/shell_expand/words/methods/strings.rs +++ b/src/lib/parser/shell_expand/words/methods/strings.rs @@ -932,16 +932,16 @@ mod test { assert_eq!(&*output, "baz"); } - // #[test] //This one fails, but it ain't my fault, so I'm comenting out the test for now - // fn test_or_no_pattern() { - // let mut output = small::String::new(); - // let method = StringMethod { - // method: "or", - // variable: "$FOO", - // pattern: "\"\"", - // selection: Select::All, - // }; - // method.handle(&mut output, &VariableExpander); - // assert_eq!(&*output, "FOOBAR"); - // } + #[test] + fn test_or_no_pattern() { + let mut output = small::String::new(); + let method = StringMethod { + method: "or", + variable: "$FOO", + pattern: "\"\"", + selection: Select::All, + }; + method.handle(&mut output, &VariableExpander); + assert_eq!(&*output, "FOOBAR"); + } }