Sha256: 6993e156328238366a624e6fad900056ea4300cfeb4641ada082fc29f9f85fa9
Contents?: true
Size: 1.07 KB
Versions: 183
Compression:
Stored size: 1.07 KB
Contents
module bob; unittest { const int allTestsEnabled = 0; assert(hey("Tom-ay-to, tom-aaaah-to.") == "Whatever."); static if (allTestsEnabled) { assert(hey("WATCH OUT!") == "Whoa, chill out!"); assert(hey("Does this cryogenic chamber make me look fat?") == "Sure."); assert(hey("Let's go make out behind the gym!") == "Whatever."); assert(hey("It's OK if you don't want to go to the DMV.") == "Whatever."); assert(hey("WHAT THE HELL WERE YOU THINKING?") == "Whoa, chill out!"); assert(hey("1, 2, 3 GO!") == "Whoa, chill out!"); assert(hey("1, 2, 3") == "Whatever."); assert(hey("4?") == "Sure."); assert(hey("ZOMG THE %^*@#$(*^ ZOMBIES ARE COMING!!11!!1!") == "Whoa, chill out!"); assert(hey("I HATE YOU") == "Whoa, chill out!"); assert(hey("Ending with a ? means a question.") == "Whatever."); assert(hey("Wait! Hang on. Are you going to be OK?") == "Sure."); assert(hey("Are you ok? ") == "Sure."); assert(hey("") == "Fine. Be that way!"); assert(hey(" ") == "Fine. Be that way!"); assert(hey(" A bit of silence can be nice. ") == "Whatever."); } } void main () { }
Version data entries
183 entries across 183 versions & 1 rubygems
Version | Path |
---|---|
trackler-1.0.1.0 | tracks/dlang/exercises/bob/bob.d |
trackler-1.0.0.1 | tracks/dlang/exercises/bob/bob.d |
trackler-1.0.0 | tracks/dlang/exercises/bob/bob.d |