Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

removing useless test

  • Loading branch information...
commit a4750be59e0f87e0fcb33f4873d9b7b0db5f9ea9 1 parent d192228
@aelgru authored
Showing with 1 addition and 9 deletions.
  1. +1 −5 fizzbuzz-tests.lua
  2. +0 −4 fizzbuzz.lua
View
6 fizzbuzz-tests.lua
@@ -1,10 +1,6 @@
-require "fizzbuzz"
+require("fizzbuzz")
describe("FizzBuzz Kata in lua using busted", function()
- it("should return 0 when 0 is given", function()
- assert.equal(0, fizzbuzz(0))
- end)
-
it("should return 1 when 1 is given", function()
assert.equal(1, fizzbuzz(1))
end)
View
4 fizzbuzz.lua
@@ -1,8 +1,4 @@
function fizzbuzz(number)
- if number == 0 then
- return 0
- end
-
if number % 3 == 0 and number % 5 == 0 then
return "fizzbuzz"
end
Please sign in to comment.
Something went wrong with that request. Please try again.