k_test.go 820 B

1234567891011121314
  1. package kata_test
  2. import (
  3. . "github.com/onsi/ginkgo"
  4. . "github.com/onsi/gomega"
  5. )
  6. var _ = Describe("Basic tests", func() {
  7. It("Zombie_shootout(20, 10, 20)", func() { Expect(Zombie_shootout(20, 10, 20)).To(Equal("You shot all 20 zombies.")) })
  8. It("Zombie_shootout(50, 10, 49)", func() { Expect(Zombie_shootout(50, 10, 49)).To(Equal("You shot 20 zombies before being eaten: overwhelmed.")) })
  9. It("Zombie_shootout(3, 10, 10)", func() { Expect(Zombie_shootout(3, 10, 10)).To(Equal("You shot all 3 zombies.")) })
  10. It("Zombie_shootout(100, 8, 200)", func() { Expect(Zombie_shootout(100, 8, 200)).To(Equal("You shot 16 zombies before being eaten: overwhelmed.")) })
  11. It("Zombie_shootout(50, 10, 8)", func() { Expect(Zombie_shootout(50, 10, 8)).To(Equal("You shot 8 zombies before being eaten: ran out of ammo.")) })
  12. })