darcs patch: XPrompt: fixes a nasty bug in getLastWord

Hi,
well, the description says it all.
sorry,
andrea
Wed Aug 15 18:34:57 CEST 2007 Andrea Rossato

mailing_list:
New patches:
[XPrompt: fixes a nasty bug in getLastWord Andrea Rossato
**20070815163457 This patch fixes a nasty bug in getLastWord, a bug that causes XMonad to crash as soon as the command line consists of only 2 empty spaces. *PLEASE UPDATE* if you are running XPrompt.
Applied. The instability in this module is a little concerning: any way you can write some tests for it? (Perhaps use QC to generate strings or something?). Proper QuickCheck tests for the pure code would be welcome, and reassure users. I can give some examples, if you're unsure with QuickCheck. -- Don

On Thu, Aug 16, 2007 at 01:55:38PM +1000, Donald Bruce Stewart wrote:
The instability in this module is a little concerning: any way you can write some tests for it? (Perhaps use QC to generate strings or something?).
Proper QuickCheck tests for the pure code would be welcome, and reassure users. I can give some examples, if you're unsure with QuickCheck.
I'm a bit concerned too, indeed. And yes, I'm going to test it with QC. I'm going to study QC, but your examples would be much appreciated. Thanks Andrea

mailing_list:
On Thu, Aug 16, 2007 at 01:55:38PM +1000, Donald Bruce Stewart wrote:
The instability in this module is a little concerning: any way you can write some tests for it? (Perhaps use QC to generate strings or something?).
Proper QuickCheck tests for the pure code would be welcome, and reassure users. I can give some examples, if you're unsure with QuickCheck.
I'm a bit concerned too, indeed. And yes, I'm going to test it with QC.
I'm going to study QC, but your examples would be much appreciated.
There's a quick intro I wrote here, http://haskell.org/haskellwiki/Introduction_to_QuickCheck And you can use the examples in xmonad/tests/
participants (2)
-
Andrea Rossato
-
dons@cse.unsw.edu.au