diff --git a/lua/raindrops/luacov.report.out b/lua/raindrops/luacov.report.out index fe7720c5..67be0343 100644 --- a/lua/raindrops/luacov.report.out +++ b/lua/raindrops/luacov.report.out @@ -1,105 +1,89 @@ ============================================================================== raindrops_spec.lua ============================================================================== -* local raindrops = require('raindrops') +* local raindrops = require("raindrops") -* describe('raindrops', function() -* it('the sound for 1 is 1', function() -* assert.equal('1', raindrops(1)) - end) +* describe("raindrops", function() +* it("the sound for 1 is 1", function() +* assert.equal("1", raindrops(1)) + end) -* it('the sound for 3 is Pling', function() -* assert.equal('Pling', raindrops(3)) - end) +* it("the sound for 3 is Pling", function() +* assert.equal("Pling", raindrops(3)) + end) -* it('the sound for 5 is Plang', function() -* assert.equal('Plang', raindrops(5)) - end) +* it("the sound for 5 is Plang", function() +* assert.equal("Plang", raindrops(5)) + end) -* it('the sound for 7 is Plong', function() -* assert.equal('Plong', raindrops(7)) - end) +* it("the sound for 7 is Plong", function() +* assert.equal("Plong", raindrops(7)) + end) -* it('the sound for 6 is Pling as it has a factor 3', function() -* assert.equal('Pling', raindrops(6)) - end) +* it("the sound for 6 is Pling as it has a factor 3", function() +* assert.equal("Pling", raindrops(6)) + end) -* it('2 to the power 3 does not make a raindrop sound as 3 is the exponent not the base', function() -* assert.equal('8', raindrops(8)) - end) +* it("2 to the power 3 does not make a raindrop sound as 3 is the exponent not the base", function() +* assert.equal("8", raindrops(8)) + end) -* it('the sound for 9 is Pling as it has a factor 3', function() -* assert.equal('Pling', raindrops(9)) - end) +* it("the sound for 9 is Pling as it has a factor 3", function() +* assert.equal("Pling", raindrops(9)) + end) -* it('the sound for 10 is Plang as it has a factor 5', function() -* assert.equal('Plang', raindrops(10)) - end) +* it("the sound for 10 is Plang as it has a factor 5", function() +* assert.equal("Plang", raindrops(10)) + end) -* it('the sound for 14 is Plong as it has a factor 7', function() -* assert.equal('Plong', raindrops(14)) - end) +* it("the sound for 14 is Plong as it has a factor 7", function() +* assert.equal("Plong", raindrops(14)) + end) -* it('the sound for 15 is PlingPlang as it has a factor 3 and 5', function() -* assert.equal('PlingPlang', raindrops(15)) - end) +* it("the sound for 15 is PlingPlang as it has a factor 3 and 5", function() +* assert.equal("PlingPlang", raindrops(15)) + end) -* it('the sound for 21 is PlingPlong as it has factors 3 and 7', function() -* assert.equal('PlingPlong', raindrops(21)) - end) +* it("the sound for 21 is PlingPlong as it has factors 3 and 7", function() +* assert.equal("PlingPlong", raindrops(21)) + end) -* it('the sound for 25 is Plang as it has a factor 5', function() -* assert.equal('Plang', raindrops(25)) - end) +* it("the sound for 25 is Plang as it has a factor 5", function() +* assert.equal("Plang", raindrops(25)) + end) -* it('the sound for 27 is Pling as it has a factor 3', function() -* assert.equal('Pling', raindrops(27)) - end) +* it("the sound for 27 is Pling as it has a factor 3", function() +* assert.equal("Pling", raindrops(27)) + end) -* it('the sound for 35 is PlangPlong as it has factors 5 and 7', function() -* assert.equal('PlangPlong', raindrops(35)) - end) +* it("the sound for 35 is PlangPlong as it has factors 5 and 7", function() +* assert.equal("PlangPlong", raindrops(35)) + end) -* it('the sound for 49 is Plong as it has a factor 7', function() -* assert.equal('Plong', raindrops(49)) - end) +* it("the sound for 49 is Plong as it has a factor 7", function() +* assert.equal("Plong", raindrops(49)) + end) -* it('the sound for 52 is 52', function() -* assert.equal('52', raindrops(52)) - end) +* it("the sound for 52 is 52", function() +* assert.equal("52", raindrops(52)) + end) -* it('the sound for 105 is PlingPlangPlong as it has factors 3, 5 and 7', function() -* assert.equal('PlingPlangPlong', raindrops(105)) - end) +* it("the sound for 105 is PlingPlangPlong as it has factors 3, 5 and 7", function() +* assert.equal("PlingPlangPlong", raindrops(105)) + end) -* it('the sound for 3125 is Plang as it has a factor 5', function() -* assert.equal('Plang', raindrops(3125)) - end) +* it("the sound for 3125 is Plang as it has a factor 5", function() +* assert.equal("Plang", raindrops(3125)) + end) end) ============================================================================== raindrops.lua ============================================================================== return function(n) -* local sounds = "" +* local sounds = string.format("%s%s%s", n % 3 == 0 and "Pling" or "", n % 5 == 0 and "Plang" or "", n % 7 == 0 and "Plong" or "") -* if n % 3 == 0 then -* sounds = sounds .. "Pling" - end - -* if n % 5 == 0 then -* sounds = sounds .. "Plang" - end - -* if n % 7 == 0 then -* sounds = sounds .. "Plong" - end - -* if sounds == "" then -* sounds = tostring(n) - end - -* return sounds +* return sounds == "" and tostring(n) or sounds end ============================================================================== @@ -108,7 +92,7 @@ Summary File Hits Missed Coverage --------------------------------------- -raindrops.lua 10 0 100.00% +raindrops.lua 2 0 100.00% raindrops_spec.lua 38 0 100.00% --------------------------------------- -Total 48 0 100.00% +Total 40 0 100.00% diff --git a/lua/raindrops/luacov.report.out.index b/lua/raindrops/luacov.report.out.index index 90f7d5e1..055e4499 100644 --- a/lua/raindrops/luacov.report.out.index +++ b/lua/raindrops/luacov.report.out.index @@ -1,3 +1,3 @@ -raindrops_spec.lua:0 2418 -raindrops.lua:2418 2951 -Summary:2951 3355 +raindrops_spec.lua:0 2346 +raindrops.lua:2346 2728 +Summary:2728 3132 diff --git a/lua/raindrops/luacov.stats.out b/lua/raindrops/luacov.stats.out index ba7f9e5b..9fa48e34 100644 --- a/lua/raindrops/luacov.stats.out +++ b/lua/raindrops/luacov.stats.out @@ -1,64 +1,64 @@ 163:/usr/share/lua/5.1/busted/block.lua -0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 7 0 7 2142 0 2142 2149 0 7 126 126 2268 2142 2016 0 0 133 0 0 0 0 0 0 7 0 7 378 0 378 252 252 0 0 0 0 378 21 0 378 378 357 0 0 21 21 0 0 0 0 0 0 21 0 21 7 0 7 399 0 399 252 252 0 0 0 0 399 0 399 399 0 0 0 0 0 399 7 0 7 420 420 0 420 420 0 0 0 0 0 0 420 252 0 0 0 420 7 0 7 126 7 0 7 21 21 21 0 28 0 7 21 7 0 7 21 7 0 7 14 0 14 14 14 0 0 0 0 14 0 14 14 0 14 0 0 0 0 14 14 0 0 14 14 0 21 0 7 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 12 0 12 3366 0 3366 3378 0 12 198 198 3564 3366 3168 0 0 210 0 0 0 0 0 0 12 0 12 594 0 594 396 396 0 0 0 0 594 33 0 594 594 561 0 0 33 33 0 0 0 0 0 0 33 0 33 12 0 12 628 0 628 396 396 0 0 0 0 628 0 628 628 0 0 0 0 0 628 12 0 12 661 661 0 661 661 0 0 0 0 0 0 661 396 0 0 0 661 12 0 12 198 12 0 12 34 33 33 0 46 0 12 34 12 0 12 34 12 0 12 23 0 23 23 23 0 0 0 0 23 0 23 22 0 22 0 0 0 0 22 22 0 0 22 22 0 35 0 12 38:/usr/share/lua/5.1/busted/compatibility.lua -0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 4 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 5 124:/usr/share/lua/5.1/busted/context.lua -0 0 0 7 294 287 0 7 7 7 7 7 0 0 0 7 294 287 0 623 616 0 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 140 140 7 133 0 133 0 0 140 140 0 0 140 140 0 0 140 7 0 140 0 0 2709 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 140 140 140 140 0 0 28 0 0 0 9449 0 0 0 574 574 574 574 574 0 0 574 574 574 574 574 +0 0 0 12 504 492 0 12 12 12 12 12 0 0 0 12 504 492 0 1067 1055 0 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 221 221 12 209 0 209 0 0 221 221 0 0 221 221 0 0 221 12 0 221 0 0 4263 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 221 221 221 221 0 0 46 0 0 0 14707 0 0 0 908 908 908 908 908 0 0 908 908 908 908 908 315:/usr/share/lua/5.1/busted/core.lua -0 0 0 0 0 0 0 0 0 0 53 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 53 53 53 0 0 0 0 0 0 0 106 0 0 0 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 186 186 0 186 186 345 239 159 159 0 0 186 186 0 186 186 0 0 0 53 53 53 53 0 53 53 0 0 0 0 0 53 0 0 0 494 0 0 0 245 0 0 0 0 0 0 0 239 0 345 345 7 7 7 7 7 7 0 0 338 232 232 232 232 232 0 0 106 0 0 0 0 0 0 53 53 53 53 53 53 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0 7 0 7 0 0 574 574 574 0 1148 53 53 53 1201 0 574 53 0 0 0 53 0 0 0 0 0 0 0 0 0 0 0 53 0 574 0 574 574 0 0 0 294 294 294 147 147 147 147 147 147 0 588 294 588 294 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 140 0 0 0 0 140 0 140 140 133 0 0 0 140 280 0 140 140 0 0 0 0 0 0 140 140 140 140 140 140 140 140 140 140 140 140 0 0 140 0 140 21 0 119 0 140 0 0 0 21 161 140 140 280 140 0 21 +0 0 0 0 0 0 0 0 0 0 53 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 54 54 53 1 0 0 1 0 0 0 107 0 0 0 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 263 263 0 263 263 424 316 161 161 0 0 263 263 0 263 263 0 0 0 54 54 54 54 0 54 54 1 1 1 0 0 54 0 0 0 753 0 0 0 420 0 0 0 0 0 0 0 317 0 423 423 13 13 13 13 13 13 0 0 410 304 304 304 304 304 0 0 106 0 0 0 0 0 0 53 53 53 53 53 53 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 12 0 12 0 0 908 908 908 0 1816 54 54 54 1870 0 908 54 0 0 0 54 0 0 0 0 0 0 0 0 0 0 0 54 0 908 0 908 908 0 0 0 466 466 466 233 233 233 233 233 233 0 932 466 932 466 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 221 0 0 0 0 221 0 221 221 209 0 0 0 221 442 0 221 221 0 0 0 0 0 0 221 221 221 221 221 221 221 221 221 221 221 221 0 0 221 0 221 34 0 187 0 221 0 0 0 34 255 221 221 442 221 0 34 31:/usr/share/lua/5.1/busted/environment.lua -0 0 0 0 0 0 0 8981 0 8974 6699 8974 0 0 0 0 0 0 0 0 2282 0 0 0 0 0 0 0 0 0 7 +0 0 0 0 0 0 0 14116 0 14104 10529 14104 0 0 0 0 0 0 0 0 3587 0 0 0 0 0 0 0 0 0 12 72:/usr/share/lua/5.1/busted/execute.lua -7 7 7 0 0 0 0 0 0 0 0 0 7 0 0 7 0 0 7 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0 14 7 0 0 0 0 0 7 0 7 0 0 0 0 7 7 7 7 0 7 7 0 7 0 7 0 0 0 14 0 7 7 +12 12 12 0 0 0 0 0 0 0 0 0 12 0 0 12 0 0 12 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 24 12 0 0 0 0 0 12 0 12 0 0 0 0 12 12 12 12 0 12 12 0 12 0 12 0 0 0 24 0 12 12 127:/usr/share/lua/5.1/busted/init.lua -0 0 0 0 7 7 7 0 7 7 0 0 7 7 7 0 7 7 0 0 126 126 0 126 0 0 0 0 126 0 126 126 126 0 126 0 126 126 126 126 126 0 0 0 0 0 0 126 0 0 126 126 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 903 +0 0 0 0 12 12 12 0 12 12 0 0 11 11 11 0 11 11 0 0 198 198 0 198 0 0 0 0 198 0 198 198 198 0 198 0 198 198 198 198 198 0 0 0 0 0 0 198 0 0 198 198 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1442 50:/usr/share/lua/5.1/busted/languages/en.lua -7 0 7 0 0 7 7 7 7 0 7 7 7 7 0 7 7 7 7 0 7 7 7 7 0 7 0 7 7 0 0 7 7 7 7 7 7 7 7 7 0 7 7 7 7 7 7 0 7 7 +12 0 12 0 0 12 12 12 12 0 12 12 12 12 0 12 12 12 12 0 12 12 12 12 0 12 0 12 12 0 0 12 12 12 12 12 12 12 12 12 0 12 12 12 12 12 12 0 12 12 23:/usr/share/lua/5.1/busted/modules/files/lua.lua -7 0 7 0 0 186 186 186 7 0 0 7 7 0 0 7 7 0 0 7 7 0 7 +12 0 12 0 0 263 263 263 12 0 0 12 12 0 0 12 12 0 0 12 12 0 12 107:/usr/share/lua/5.1/busted/modules/files/moonscript.lua -7 0 14 7 7 0 7 0 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0 7 0 0 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 0 0 0 7 0 0 0 7 0 0 0 0 0 0 0 7 0 7 +12 0 24 12 12 0 12 0 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 12 0 0 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 0 0 0 0 0 12 0 0 0 12 0 0 0 0 0 0 0 12 0 12 129:/usr/share/lua/5.1/busted/modules/filter_loader.lua -0 0 0 126 126 0 252 252 126 126 0 0 126 7 0 0 0 0 7 0 0 133 0 0 0 0 133 7 0 0 126 126 0 0 0 0 126 7 0 0 133 0 0 0 0 133 7 0 0 126 0 0 0 0 126 7 0 0 0 0 0 0 0 0 0 0 0 7 0 0 0 7 0 7 0 0 0 0 0 0 7 0 0 0 7 0 0 56 98 70 0 0 63 0 0 0 0 0 0 0 0 7 0 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 7 7 7 0 0 7 7 7 7 7 +0 0 0 198 198 0 396 396 198 198 0 0 198 12 0 0 0 0 12 0 0 209 0 0 0 0 209 12 0 0 198 198 0 0 0 0 198 12 0 0 209 0 0 0 0 209 12 0 0 198 0 0 0 0 198 12 0 0 0 0 0 0 0 0 0 0 0 12 0 0 0 12 0 12 0 0 0 0 0 0 12 0 0 0 12 0 0 96 168 120 0 0 108 0 0 0 0 0 0 0 0 12 0 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 12 12 12 0 0 12 12 12 12 12 34:/usr/share/lua/5.1/busted/modules/output_handler_loader.lua -0 0 0 0 0 0 0 0 7 14 7 0 7 0 0 7 0 14 0 7 0 0 0 7 0 0 0 0 7 0 0 0 7 7 +0 0 0 0 0 0 0 0 12 24 12 0 12 0 0 12 0 24 0 12 0 0 0 12 0 0 0 0 12 0 0 0 12 12 101:/usr/share/lua/5.1/busted/modules/test_file_loader.lua -7 0 0 7 7 7 7 0 21 14 14 0 0 0 0 0 7 0 7 7 7 0 14 73 73 0 0 0 0 139 73 7 0 0 66 14 0 14 7 0 0 7 0 14 0 0 0 0 0 7 7 7 0 0 7 14 7 0 7 7 0 0 0 7 7 7 0 0 7 0 0 7 0 14 7 0 7 14 7 7 7 7 0 0 7 0 0 0 7 0 0 0 0 0 0 0 7 7 0 7 7 +12 0 0 12 12 12 12 0 36 24 24 0 0 0 0 0 12 0 12 12 12 0 24 128 128 0 0 0 0 244 128 12 0 0 116 24 0 24 12 0 0 12 0 24 0 0 0 0 0 12 12 12 0 0 12 24 12 0 12 12 0 0 0 12 12 12 0 0 12 0 0 12 0 24 12 0 12 24 12 12 12 12 0 0 12 0 0 0 12 0 0 0 0 0 0 0 12 12 0 12 12 179:/usr/share/lua/5.1/busted/outputHandlers/base.lua -0 7 7 7 7 7 7 7 7 7 7 7 0 0 0 504 7 0 0 7 7 0 7 0 0 0 7 7 7 7 7 7 7 7 7 7 14 0 0 378 378 0 756 756 0 378 378 0 0 378 7 0 0 0 126 1353 1227 975 0 0 126 126 0 126 126 126 126 126 126 126 0 126 0 126 7 0 0 0 0 0 0 0 7 0 0 7 7 7 7 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0 0 7 7 7 7 0 0 126 126 7 0 0 0 0 126 73 73 53 0 0 53 0 53 53 0 0 0 0 0 0 73 0 73 73 73 0 0 0 73 0 0 73 0 73 7 0 0 0 0 0 0 7 0 0 53 53 7 0 0 0 0 0 7 0 0 53 0 0 0 0 53 7 0 7 7 +0 12 12 12 12 12 12 12 12 12 12 12 0 0 0 792 12 0 0 12 12 0 12 0 0 0 12 12 12 12 12 12 12 12 12 12 24 0 0 595 595 0 1190 1189 0 595 595 0 0 595 12 0 0 0 199 2225 2026 1629 0 0 199 199 0 199 199 199 199 199 199 199 0 199 0 199 12 0 0 0 0 0 0 0 12 0 0 12 12 12 12 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 0 12 12 12 12 0 0 198 198 12 0 0 0 0 198 145 145 53 0 0 53 0 53 53 0 0 0 0 0 0 145 0 145 145 145 0 0 0 145 0 0 145 0 145 12 0 0 0 0 0 0 12 0 0 53 53 12 0 0 0 0 0 12 0 0 54 1 1 0 0 54 12 0 12 12 286:/usr/share/lua/5.1/busted/outputHandlers/gtest.lua -7 7 7 7 0 7 0 7 7 0 7 2103 0 0 0 0 0 7 7 0 7 7 7 7 7 7 7 7 7 7 7 7 7 7 0 7 7 7 7 7 7 0 7 7 7 7 7 0 7 7 7 7 7 0 0 7 7 7 7 7 7 7 0 0 0 0 0 0 0 0 0 0 0 0 7 0 0 53 53 53 0 0 0 0 0 0 53 0 53 0 0 0 53 7 0 0 305 305 305 305 0 305 7 0 0 21 21 21 4 4 4 0 4 4 57 53 53 53 0 0 0 0 0 21 7 0 0 21 21 21 4 4 4 0 21 7 0 0 7 7 0 7 7 7 0 7 7 7 7 0 7 7 0 0 252 7 0 0 0 0 0 0 0 0 0 0 0 7 0 0 7 0 0 7 0 0 7 7 7 0 7 7 0 0 7 7 7 7 7 7 7 0 7 7 0 0 7 7 7 7 7 0 0 7 7 7 7 7 7 7 0 0 126 126 0 126 7 0 0 126 126 0 126 126 126 73 73 53 0 0 53 53 53 0 0 0 0 0 126 126 0 126 7 0 0 53 53 53 0 53 7 0 0 0 0 0 0 0 7 0 0 53 0 0 0 0 0 0 0 53 7 0 7 7 7 7 7 7 7 7 7 7 7 0 7 7 +12 12 12 12 0 12 0 12 12 0 12 3168 0 0 0 0 0 12 12 0 12 12 12 12 12 12 12 12 12 12 12 12 12 12 0 12 12 12 12 12 12 0 12 12 12 12 12 0 12 12 12 12 12 0 0 12 12 12 12 12 12 12 0 0 0 0 0 0 0 0 0 0 0 0 12 0 0 54 54 54 0 0 0 0 0 0 54 0 54 0 0 0 54 12 0 0 450 450 450 450 0 450 12 0 0 36 36 36 5 5 5 0 5 5 59 54 54 54 0 0 0 0 0 36 12 0 0 36 36 36 5 5 5 0 36 12 0 0 12 12 0 12 12 12 0 12 12 12 12 0 12 12 0 0 396 12 0 0 0 0 0 0 0 0 0 0 0 12 0 0 12 0 0 12 0 0 12 12 12 0 12 12 0 0 12 12 12 12 12 12 12 0 12 12 0 0 12 12 12 12 12 0 0 12 12 12 12 12 12 12 0 0 198 198 0 198 12 0 0 198 198 0 198 198 198 145 145 53 0 0 53 53 53 0 0 0 0 0 198 198 0 198 12 0 0 53 53 53 0 53 12 0 0 0 0 0 0 0 12 0 0 54 1 1 1 0 1 0 0 54 12 0 12 12 12 12 12 12 12 12 12 12 12 0 12 12 208:/usr/share/lua/5.1/busted/runner.lua -0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 7 0 0 0 0 7 0 0 0 0 0 7 7 0 0 7 7 0 0 0 7 7 0 0 0 0 0 7 7 7 0 14 0 0 7 0 14 0 0 7 0 14 0 0 0 7 0 14 53 53 0 0 0 53 53 7 0 0 7 7 7 0 0 14 7 7 7 7 7 7 7 0 0 0 7 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 14 7 7 7 7 7 7 7 0 0 7 0 7 7 7 14 7 7 7 7 0 0 0 0 0 0 7 7 14 7 7 7 0 0 7 0 7 4 0 3 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 12 0 0 0 0 12 0 0 0 0 0 12 12 0 0 12 12 0 0 0 12 12 0 0 0 0 0 12 12 12 0 24 0 0 12 0 24 0 0 12 0 24 1 1 1 12 0 24 53 53 0 0 0 53 53 12 0 0 12 12 12 0 0 24 12 12 12 12 12 12 12 0 0 0 12 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 0 0 0 0 0 0 0 0 24 12 12 12 12 12 12 12 0 0 12 0 12 12 12 24 12 12 12 12 0 0 0 0 0 0 12 12 24 12 12 12 0 0 12 0 12 5 0 7 42:/usr/share/lua/5.1/busted/status.lua -0 826 826 826 826 826 826 826 826 0 826 0 0 0 700 700 1008 700 700 700 0 0 0 700 0 0 0 700 0 0 0 126 126 126 0 826 0 0 1400 700 952 700 +0 1304 1304 1304 1304 1304 1304 1304 1304 0 1304 0 0 0 1106 1106 1595 1106 1106 1106 0 0 0 1106 0 0 0 1106 0 0 0 198 198 198 0 1304 0 0 2212 1106 1502 1106 35:/usr/share/lua/5.1/busted/utils.lua -0 0 0 7 7 21 14 14 0 0 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 7 7 7 7 35 28 0 7 +0 0 0 12 12 36 24 24 0 0 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 12 12 12 12 60 48 0 12 177:/usr/share/lua/5.1/luassert/assert.lua -0 0 0 0 0 0 0 0 0 0 0 53 0 53 0 0 53 53 0 0 53 0 0 0 0 0 126 0 126 0 252 126 0 0 126 252 126 0 0 0 0 126 126 126 0 126 53 53 0 0 53 53 0 0 73 0 0 73 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 252 126 0 0 126 0 0 0 0 126 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 53 53 159 106 106 106 106 106 0 0 53 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 126 0 0 0 126 0 0 0 126 +0 0 0 0 0 0 0 0 0 0 0 53 0 53 0 0 53 53 0 0 53 0 0 0 0 0 198 0 198 0 396 198 0 0 198 396 198 0 0 0 0 198 198 198 0 198 53 53 0 0 53 53 0 0 145 0 0 145 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 396 198 0 0 198 0 0 0 0 198 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 53 53 159 106 106 106 106 106 0 0 53 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 198 0 0 0 198 0 0 0 198 120:/usr/share/lua/5.1/luassert/assertions.lua -0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 126 0 0 126 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 126 126 126 126 0 126 126 126 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 198 0 0 198 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 198 198 198 198 0 198 198 198 202:/usr/share/lua/5.1/luassert/formatters/init.lua 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 78 78 0 0 0 0 0 28 0 0 0 28 0 28 0 28 0 0 0 28 0 28 0 0 0 0 0 28 0 0 0 106 28 0 78 0 0 106 0 0 106 0 0 106 0 0 106 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 106 106 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 106 0 0 0 106 0 0 106 0 0 106 0 0 106 0 0 106 92:/usr/share/lua/5.1/luassert/state.lua 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 106 820 820 820 283:/usr/share/lua/5.1/luassert/util.lua -0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 126 126 126 126 126 126 0 0 0 0 126 126 0 126 0 0 0 0 0 252 126 0 0 126 126 0 0 0 0 0 0 0 0 0 126 126 0 126 0 0 0 0 0 126 0 252 126 0 0 126 126 126 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 53 0 0 0 0 0 0 0 0 179 179 179 179 358 179 179 179 0 179 179 0 0 0 0 0 0 0 0 126 0 0 126 126 126 252 126 126 0 0 126 126 0 0 0 0 0 0 126 126 126 0 126 0 0 0 126 0 0 0 126 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 198 198 198 198 198 198 0 0 0 0 198 198 0 198 0 0 0 0 0 396 198 0 0 198 198 0 0 0 0 0 0 0 0 0 198 198 0 198 0 0 0 0 0 198 0 396 198 0 0 198 198 198 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 53 0 0 0 0 0 0 0 0 251 251 251 251 502 251 251 251 0 251 251 0 0 0 0 0 0 0 0 198 0 0 198 198 198 396 198 198 0 0 198 198 0 0 0 0 0 0 198 198 198 0 198 0 0 0 198 0 0 0 198 154:/usr/share/lua/5.1/mediator.lua -0 245 0 0 0 245 245 245 245 0 0 0 0 0 245 0 245 245 0 0 0 0 0 147 147 147 147 147 147 0 0 245 245 0 245 0 245 140 140 0 133 0 0 245 0 245 147 0 0 0 0 0 0 0 0 0 0 0 0 147 0 0 0 0 0 0 0 0 147 0 0 147 147 147 0 0 0 147 0 0 1422 147 0 0 0 0 0 0 0 0 0 0 0 147 0 0 2524 1469 0 0 1469 0 1469 0 1469 1469 0 0 0 1055 701 0 354 0 147 147 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 739 0 2161 1422 0 0 739 0 0 0 245 0 0 0 0 0 0 0 0 0 0 0 494 +0 420 0 0 0 420 420 420 420 0 0 0 0 0 420 0 420 420 0 0 0 0 0 250 250 250 250 250 250 0 0 420 420 0 420 0 420 240 240 0 228 0 0 420 0 420 250 0 0 0 0 0 0 0 0 0 0 0 0 250 0 0 0 0 0 0 0 0 250 0 0 250 250 250 0 0 0 250 0 0 2250 250 0 0 0 0 0 0 0 0 0 0 0 250 0 0 3751 2167 0 0 2167 0 2167 0 2167 2167 0 0 0 1584 1052 0 532 0 250 250 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1173 0 3423 2250 0 0 1173 0 0 0 420 0 0 0 0 0 0 0 0 0 0 0 753 476:/usr/share/lua/5.1/pl/dir.lua -0 0 0 0 0 0 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 0 7 0 0 7 14 0 0 0 7 0 0 73 73 7 0 0 0 0 0 0 0 7 0 0 0 7 0 0 0 0 0 0 0 7 0 0 0 0 0 0 0 0 7 0 0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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 498 498 498 6736 6238 6238 0 498 0 0 498 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 7 7 7 28 21 0 0 21 21 0 7 0 0 7 0 0 0 0 0 0 425 425 425 0 0 0 0 0 73 73 73 0 0 0 0 0 7 7 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 73 73 0 0 73 +0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 164 164 0 0 164 0 0 0 0 0 12 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 140 140 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9750 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 707 707 707 9702 8995 8995 0 707 0 0 707 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 12 12 12 48 36 0 0 36 36 0 12 0 0 12 0 0 0 0 0 0 579 579 579 0 0 0 0 0 128 128 128 0 0 0 0 0 12 12 12 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 128 128 0 0 128 793:/usr/share/lua/5.1/pl/tablex.lua -0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 14 14 0 0 0 0 0 0 0 0 0 0 0 14 0 0 14 0 0 14 0 0 14 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0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 0 179 179 0 663 484 0 0 179 +0 0 0 0 0 0 0 0 0 0 0 0 0 12 12 0 0 12 0 0 0 0 0 0 0 0 0 228 228 0 0 0 0 251 0 251 0 251 0 0 251 251 0 951 700 0 0 251 21:raindrops.lua -0 126 0 126 49 0 0 126 49 0 0 126 44 0 0 126 37 0 0 126 7 +0 216 0 198 72 18 0 156 50 18 3 126 44 18 1 126 37 0 0 126 7 75:raindrops_spec.lua -7 0 14 14 7 10 0 14 7 12 0 14 7 11 0 14 7 11 0 14 7 12 0 14 7 10 0 14 7 12 0 14 7 11 0 14 7 11 0 14 7 11 0 14 7 11 0 14 7 11 0 14 7 12 0 14 7 11 0 14 7 11 0 14 7 10 0 14 7 11 0 14 7 11 21 +12 0 22 22 11 18 0 22 11 20 0 22 11 19 0 22 11 19 0 22 11 20 0 22 11 18 0 22 11 20 0 22 11 19 0 22 11 19 0 22 11 19 0 22 11 19 0 22 11 19 0 22 11 20 0 22 11 19 0 22 11 19 0 22 11 18 0 22 11 19 0 22 11 19 33 diff --git a/lua/raindrops/raindrops.lua b/lua/raindrops/raindrops.lua index 63031fdc..3b205c41 100644 --- a/lua/raindrops/raindrops.lua +++ b/lua/raindrops/raindrops.lua @@ -1,21 +1,5 @@ return function(n) - local sounds = "" + local sounds = string.format("%s%s%s", n % 3 == 0 and "Pling" or "", n % 5 == 0 and "Plang" or "", n % 7 == 0 and "Plong" or "") - if n % 3 == 0 then - sounds = sounds .. "Pling" - end - - if n % 5 == 0 then - sounds = sounds .. "Plang" - end - - if n % 7 == 0 then - sounds = sounds .. "Plong" - end - - if sounds == "" then - sounds = tostring(n) - end - - return sounds + return sounds == "" and tostring(n) or sounds end diff --git a/lua/raindrops/run-tests-lua.txt b/lua/raindrops/run-tests-lua.txt index 36c620b7..18c54a28 100644 --- a/lua/raindrops/run-tests-lua.txt +++ b/lua/raindrops/run-tests-lua.txt @@ -8,9 +8,9 @@ Checking raindrops.lua OK Total: 0 warnings / 0 errors in 1 file -real 0m0.026s -user 0m0.020s -sys 0m0.005s +real 0m0.028s +user 0m0.021s +sys 0m0.008s =============================================================================== @@ -19,66 +19,66 @@ Running: busted --coverage --lpath= --cpath= --output=gtest -Xoutput --plain [----------] Global test environment setup. [----------] Running tests from ./raindrops_spec.lua [ RUN ] ./raindrops_spec.lua @ 4: raindrops the sound for 1 is 1 -[ OK ] ./raindrops_spec.lua @ 4: raindrops the sound for 1 is 1 (0.58 ms) +[ OK ] ./raindrops_spec.lua @ 4: raindrops the sound for 1 is 1 (0.55 ms) [ RUN ] ./raindrops_spec.lua @ 8: raindrops the sound for 3 is Pling -[ OK ] ./raindrops_spec.lua @ 8: raindrops the sound for 3 is Pling (0.44 ms) +[ OK ] ./raindrops_spec.lua @ 8: raindrops the sound for 3 is Pling (0.56 ms) [ RUN ] ./raindrops_spec.lua @ 12: raindrops the sound for 5 is Plang -[ OK ] ./raindrops_spec.lua @ 12: raindrops the sound for 5 is Plang (0.50 ms) +[ OK ] ./raindrops_spec.lua @ 12: raindrops the sound for 5 is Plang (0.55 ms) [ RUN ] ./raindrops_spec.lua @ 16: raindrops the sound for 7 is Plong -[ OK ] ./raindrops_spec.lua @ 16: raindrops the sound for 7 is Plong (0.57 ms) +[ OK ] ./raindrops_spec.lua @ 16: raindrops the sound for 7 is Plong (0.55 ms) [ RUN ] ./raindrops_spec.lua @ 20: raindrops the sound for 6 is Pling as it has a factor 3 -[ OK ] ./raindrops_spec.lua @ 20: raindrops the sound for 6 is Pling as it has a factor 3 (0.42 ms) +[ OK ] ./raindrops_spec.lua @ 20: raindrops the sound for 6 is Pling as it has a factor 3 (0.49 ms) [ RUN ] ./raindrops_spec.lua @ 24: raindrops 2 to the power 3 does not make a raindrop sound as 3 is the exponent not the base -[ OK ] ./raindrops_spec.lua @ 24: raindrops 2 to the power 3 does not make a raindrop sound as 3 is the exponent not the base (0.53 ms) +[ OK ] ./raindrops_spec.lua @ 24: raindrops 2 to the power 3 does not make a raindrop sound as 3 is the exponent not the base (0.47 ms) [ RUN ] ./raindrops_spec.lua @ 28: raindrops the sound for 9 is Pling as it has a factor 3 -[ OK ] ./raindrops_spec.lua @ 28: raindrops the sound for 9 is Pling as it has a factor 3 (0.58 ms) +[ OK ] ./raindrops_spec.lua @ 28: raindrops the sound for 9 is Pling as it has a factor 3 (0.54 ms) [ RUN ] ./raindrops_spec.lua @ 32: raindrops the sound for 10 is Plang as it has a factor 5 -[ OK ] ./raindrops_spec.lua @ 32: raindrops the sound for 10 is Plang as it has a factor 5 (0.51 ms) +[ OK ] ./raindrops_spec.lua @ 32: raindrops the sound for 10 is Plang as it has a factor 5 (0.44 ms) [ RUN ] ./raindrops_spec.lua @ 36: raindrops the sound for 14 is Plong as it has a factor 7 -[ OK ] ./raindrops_spec.lua @ 36: raindrops the sound for 14 is Plong as it has a factor 7 (0.53 ms) +[ OK ] ./raindrops_spec.lua @ 36: raindrops the sound for 14 is Plong as it has a factor 7 (0.52 ms) [ RUN ] ./raindrops_spec.lua @ 40: raindrops the sound for 15 is PlingPlang as it has a factor 3 and 5 -[ OK ] ./raindrops_spec.lua @ 40: raindrops the sound for 15 is PlingPlang as it has a factor 3 and 5 (0.86 ms) +[ OK ] ./raindrops_spec.lua @ 40: raindrops the sound for 15 is PlingPlang as it has a factor 3 and 5 (0.74 ms) [ RUN ] ./raindrops_spec.lua @ 44: raindrops the sound for 21 is PlingPlong as it has factors 3 and 7 -[ OK ] ./raindrops_spec.lua @ 44: raindrops the sound for 21 is PlingPlong as it has factors 3 and 7 (0.48 ms) +[ OK ] ./raindrops_spec.lua @ 44: raindrops the sound for 21 is PlingPlong as it has factors 3 and 7 (0.55 ms) [ RUN ] ./raindrops_spec.lua @ 48: raindrops the sound for 25 is Plang as it has a factor 5 -[ OK ] ./raindrops_spec.lua @ 48: raindrops the sound for 25 is Plang as it has a factor 5 (0.47 ms) +[ OK ] ./raindrops_spec.lua @ 48: raindrops the sound for 25 is Plang as it has a factor 5 (0.54 ms) [ RUN ] ./raindrops_spec.lua @ 52: raindrops the sound for 27 is Pling as it has a factor 3 -[ OK ] ./raindrops_spec.lua @ 52: raindrops the sound for 27 is Pling as it has a factor 3 (0.70 ms) +[ OK ] ./raindrops_spec.lua @ 52: raindrops the sound for 27 is Pling as it has a factor 3 (0.90 ms) [ RUN ] ./raindrops_spec.lua @ 56: raindrops the sound for 35 is PlangPlong as it has factors 5 and 7 -[ OK ] ./raindrops_spec.lua @ 56: raindrops the sound for 35 is PlangPlong as it has factors 5 and 7 (0.43 ms) +[ OK ] ./raindrops_spec.lua @ 56: raindrops the sound for 35 is PlangPlong as it has factors 5 and 7 (0.54 ms) [ RUN ] ./raindrops_spec.lua @ 60: raindrops the sound for 49 is Plong as it has a factor 7 -[ OK ] ./raindrops_spec.lua @ 60: raindrops the sound for 49 is Plong as it has a factor 7 (0.52 ms) +[ OK ] ./raindrops_spec.lua @ 60: raindrops the sound for 49 is Plong as it has a factor 7 (0.55 ms) [ RUN ] ./raindrops_spec.lua @ 64: raindrops the sound for 52 is 52 -[ OK ] ./raindrops_spec.lua @ 64: raindrops the sound for 52 is 52 (1.08 ms) +[ OK ] ./raindrops_spec.lua @ 64: raindrops the sound for 52 is 52 (0.81 ms) [ RUN ] ./raindrops_spec.lua @ 68: raindrops the sound for 105 is PlingPlangPlong as it has factors 3, 5 and 7 -[ OK ] ./raindrops_spec.lua @ 68: raindrops the sound for 105 is PlingPlangPlong as it has factors 3, 5 and 7 (0.53 ms) +[ OK ] ./raindrops_spec.lua @ 68: raindrops the sound for 105 is PlingPlangPlong as it has factors 3, 5 and 7 (0.52 ms) [ RUN ] ./raindrops_spec.lua @ 72: raindrops the sound for 3125 is Plang as it has a factor 5 -[ OK ] ./raindrops_spec.lua @ 72: raindrops the sound for 3125 is Plang as it has a factor 5 (0.53 ms) -[----------] 18 tests from ./raindrops_spec.lua (46.24 ms total) +[ OK ] ./raindrops_spec.lua @ 72: raindrops the sound for 3125 is Plang as it has a factor 5 (0.55 ms) +[----------] 18 tests from ./raindrops_spec.lua (45.76 ms total) [----------] Global test environment teardown. -[==========] 18 tests from 1 test file ran. (47.88 ms total) +[==========] 18 tests from 1 test file ran. (47.49 ms total) [ PASSED ] 18 tests. -real 0m0.072s -user 0m0.067s -sys 0m0.005s +real 0m0.071s +user 0m0.065s +sys 0m0.006s =============================================================================== Running: luacov . real 0m0.069s -user 0m0.066s -sys 0m0.003s +user 0m0.065s +sys 0m0.004s =============================================================================== Running: luacov-console . -real 0m0.018s -user 0m0.013s -sys 0m0.005s +real 0m0.015s +user 0m0.011s +sys 0m0.004s Running: luacov-console --no-colored --summary . ============================================================================== @@ -87,30 +87,30 @@ Summary File Hits Missed Coverage --------------------------------------- -raindrops.lua 10 0 100.00% +raindrops.lua 2 0 100.00% raindrops_spec.lua 38 0 100.00% --------------------------------------- -Total 48 0 100.00% +Total 40 0 100.00% -real 0m0.018s -user 0m0.012s -sys 0m0.006s +real 0m0.013s +user 0m0.008s +sys 0m0.005s =============================================================================== Running: stylua ./raindrops.lua ./raindrops_spec.lua -real 0m0.018s -user 0m0.009s -sys 0m0.012s +real 0m0.010s +user 0m0.007s +sys 0m0.005s =============================================================================== Running: misspell . -real 0m0.026s -user 0m0.023s -sys 0m0.018s +real 0m0.022s +user 0m0.026s +sys 0m0.009s ===============================================================================