Mr. Roboger's Neighborhood is a simple site that accepts user numerical input and then returns the phrases "Beep!" for ones, "Boop!" for twos, and "Won't you be my neighbor?" for threes.
Describe: beepBoop() Test: "It should return an array with a 0 if the number 0 is inputted" Expect(beepBoop(0)).toEqual([0]);
Test: "It should return an array with "Beep!" if the number 1 is inputted" Expect(beepBoop(1)).toEqual("Beep!");
Test: "It should return an array with "Boop!" if the number 2 is inputted" Expect(beeBoop(2)).toEqual("Boop!");
Test: "It should return an array with "Won't you be my neighbor?" if the number 3 is inputted" Expect(beeBoop(3)).toEqual("Won't you be my neighbor?");
Test: "It should apply the first exception unless the second exception applies" Expect(beepBoop(13)).toEqual("Won't you be my neighbor?");
HTML
JavaScript
Git
Copyright (c) 2020 Collin Chapman
This software is licensed under the MIT license.