|
1 | 1 | import { isEven, isEvenBitwise } from '../IsEven' |
2 | 2 |
|
3 | | -test('should return if the number is even or not', () => { |
4 | | - const isEvenNumber = isEven(4) |
5 | | - expect(isEvenNumber).toBe(true) |
6 | | -}) |
| 3 | +describe('Testing isEven function', () => { |
| 4 | + it('should return if the number is even or not', () => { |
| 5 | + const isEvenNumber = isEven(4) |
| 6 | + expect(isEvenNumber).toBe(true) |
| 7 | + }) |
7 | 8 |
|
8 | | -test('should return if the number is even or not', () => { |
9 | | - const isEvenNumber = isEven(7) |
10 | | - expect(isEvenNumber).toBe(false) |
| 9 | + it('should return if the number is even or not', () => { |
| 10 | + const isEvenNumber = isEven(7) |
| 11 | + expect(isEvenNumber).toBe(false) |
| 12 | + }) |
11 | 13 | }) |
12 | 14 |
|
13 | | -test('should return if the number is even or not', () => { |
14 | | - const isEvenNumber = isEvenBitwise(6) |
15 | | - expect(isEvenNumber).toBe(true) |
16 | | -}) |
| 15 | +describe('Testing isEvenBitwise function', () => { |
| 16 | + it('should return if the number is even or not', () => { |
| 17 | + const isEvenNumber = isEvenBitwise(6) |
| 18 | + expect(isEvenNumber).toBe(true) |
| 19 | + }) |
17 | 20 |
|
18 | | -test('should return if the number is even or not', () => { |
19 | | - const isEvenNumber = isEvenBitwise(3) |
20 | | - expect(isEvenNumber).toBe(false) |
| 21 | + it('should return if the number is even or not', () => { |
| 22 | + const isEvenNumber = isEvenBitwise(3) |
| 23 | + expect(isEvenNumber).toBe(false) |
| 24 | + }) |
21 | 25 | }) |
0 commit comments