marick/Midje — Issue #57: Bug in | delimited table row feature
Author: AlexBaranosky
Created: 2011-10-30 20:23:18+00:00
State: open

I found this bug:

```clojure
(tabular
(fact "has no problem with pipe-like values in table"
(str ?a ?b ?c ?d) => ?result)

?a | ?b | ?c | ?d | ?result
"a" | "b" | "c" | \| | "abc|"
"a" | "b" | | | "d" | "ab|d"
"a" | '| | "c" | "d" | "a|cd"
"|" | "b" | "c" | "d" | "|bcd")
```

Row two and three fail. The code written deletes the pipes even if they are a value.

There are two possible fixes.
1) make the `remove-pipes+where` function a lot more intelligent (and complex) to try to only remove '| or | on every other value of the table
2) remove the feature. I proposed it originally... and even I never use it. Does anyone like this feature? I'd vote against keeping it if no one's even uses it.

Alex