Skip to content

Instantly share code, notes, and snippets.

@askl56
Created December 13, 2015 15:35
Show Gist options
  • Save askl56/1e56dc7d73312b70a96b to your computer and use it in GitHub Desktop.
Save askl56/1e56dc7d73312b70a96b to your computer and use it in GitHub Desktop.
Example test casess
Fixed tests
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (2 levels) in
'
x ** 0
Testing 8875777341477285000000000000000000829 and 0
Test Passed: Value == 1
Testing 78059867720515350000000000000000000239 and 0
Test Passed: Value == 1
Testing 843510791692698 and 0
Test Passed: Value == 1
Testing 1263062804638551000000868 and 0
Test Passed: Value == 1
Random long numbers
Testing 889335340009916400000000000000000000000000000000326 and 952673926167475700995
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 2258966127428300000000000000000199 and 4369551755862377000000000000000000000000833
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 921221436840615200000000000000000077 and 43113524496272250782
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 2800501244266324000000000000000000212 and 6313532744053666000000000000000000000000000000000263
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 57782649578753540000000000000000000000000000000000000733 and 24784832540186490000000000000000000000627
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 5814537795426900000000000000000000000000000000040 and 5203008028924390000586
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 765079150758462000000000000000000000000000091 and 181479606511270000000000000000000000043
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 6839955598399249000000000000000000000000000000000009 and 450865250774441400000000371
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 5888025662823147 and 700290877988710300000000000000000000000000000000000000278
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 3483900575293535000000000000000000000000000000000103 and 984526644701907100000000000000000976
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 40101013834391800000000409 and 323722862721139400000000000000000000000000000000000968
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 698469936946591100000000000845 and 4039224521836834127
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 77379109204456390000000397 and 435002382269849596
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 15972719212953680000000686 and 11474392812053200000000000000000000000836
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 111513463520427800000000000000000000000000626 and 6618423946162140000000000000000000000000000392
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 88944662303701100000000000000000000000000000274 and 292266333098828900000000000000000000000000000559
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 75741157614797030000000000000063 and 792917016254810145
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 1075121197128985000000000552 and 460395238469208600000000000000000000000000000000000202
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 60060292828850700000000000000000000000000000000000000118 and 780141556511901800000000788
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 31030863421857220000000000000000000000000000000710 and 14235032411647890000980
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 280888424846013900000000000338 and 123320540456388400000000000000000000000000000000000587
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 700682230970647900000000000000000000000220 and 4479188440349222000000000000000000000000939
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 908248745589002000000000000000000000000000000000000000128 and 3918203251843000000000225
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 72494650644020150000000000000000000000000000000000893 and 1134322744542526000000000000000000207
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 377532154048034800000000000828 and 98011431595766990880
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 27839433913288740000000000000196 and 49999169559440300000000000000000000000310
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 8524479242853498000000000981 and 1700208903874676000000000000197
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 20758962076545040000000000000000000000000000000000051 and 624034034705551600000000000000000000000000000000000611
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 34174481590612890000000000000000000000000000357 and 6795717773815753000000498
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 8895379348543890000000000000000000000000000000173 and 6465567099559621000000000000495
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 518460345854897300000000000000000000000000000068 and 32569252827790030000000000000000000000000935
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 660032018240854800000000000000000000000000882 and 4901401457428958000000000000000622
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 7999984189960072000000000000000000000000000577 and 6256981409645868000000000000381
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 202258592503081400000000000000000000000428 and 2538519808314926000000000000421
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 7779754231622700000000000000000000000852 and 240309478205764500000000000000000760
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 20318026941561410000000000000000000000000794 and 93833022163151870000000000000000448
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 48297342151385460000000000000000000000000000000000000159 and 7638166361859667000000000722
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 77267821673141870000000000881 and 177596046387473600000000000000000000000000239
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 4749056763735900000000000000000000000000000198 and 97475269991625970859
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
Testing 740682885057985700000000000000000000133 and 56393802859356290000842
#<NoMethodError: undefined method `bool' for main:Object>
`last_digit' `block (3 levels) in
' `block (2 levels) in
' `times'
4 Passed
0 Failed
41 Errors
Process took 207ms to complete
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment