Re: Exercism task - Bob

new topic     » goto parent     » topic index » view thread      » older message » newer message
petelomax said...

Shouldn't it be return "Sure." rather than return "Sure"?
I'd have probably gone with s=trim(s) to start with, and all_caps = equal(s,upper(s)). (not tested)

I didn't do trim because I wanted to remove ALL spaces. I probably should have left it at that because, after keeping all alphas I realised that I had to keep numerics for one of the tests to work properly. So I might just filter(s, "out", " ") or something like that. The all_caps looks okay.

-Bruce

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu