FizzBuzz

should return orginal input when number can be divisible by three or five
当数字不能被3或5整除时,应返回原始输入。  
should return "Fizz" when number can be divisible by three
当数字能被3整除时,应返回 "Fizz"。  
should return "Fizz" when number contains 3
当数字包含3时,应返回 "Fizz"。  
should return "Buzz" when number can be divisible by Five
当数字能被5整除时,应返回 "Buzz"  
should return "Buzz" when number contains 5
当数字包含5时,应返回 "Buzz"。
should return "FizzBuzz" when number can be divisible by bothThree and Five
当数字能被3和5整除时,应返回 "FizzBuzz"。  
should return "FizzBuzz" when number contains both 3 and 5
当数字同时包含3和5时,应返回 "FizzBuzz"。  
should return "FizzBuzz" when number contains 5 and can be divisible by 3
当数字包含5且能被3整除时,应返回 "FizzBuzz"  
should return "FizzBuzz" when number contains 5 and can be divisible by 5
当数字包含5且能被5整除时,应返回 "FizzBuzz"。
posted @ 2021-12-21 13:46  MarkLogZhu  阅读(273)  评论(0编辑  收藏  举报