1 | import { neq } from '../../';
|
2 |
|
3 | describe('test neq', () => {
|
4 | it('neq(v1, v2): v1 != v2', () => {
|
5 | expect(neq('2', '1')).toBeTruthy();
|
6 | expect(neq('5.4', '5.3')).toBeTruthy();
|
7 | expect(neq('5.0.1', '5.0.0')).toBeTruthy();
|
8 | expect(neq('5.0.1.52', '5.0.1.34')).toBeTruthy();
|
9 | expect(neq('5.0.1.52.200', '5.0.1.52.176')).toBeTruthy();
|
10 | expect(neq('5.0.1-beta.3', '5.0.1-beta.1')).toBeTruthy();
|
11 | expect(neq('5.0.1-beta', '5.0.1-alpha')).toBeTruthy();
|
12 |
|
13 | expect(neq('2', '2')).toBeFalsy();
|
14 | expect(neq('2', '2.0')).toBeFalsy();
|
15 | expect(neq('5.4', '5.4')).toBeFalsy();
|
16 | expect(neq('5.4', '5.4.0')).toBeFalsy();
|
17 | expect(neq('5.0.1', '5.0.1')).toBeFalsy();
|
18 | expect(neq('5.0.1', '5.0.1.0')).toBeFalsy();
|
19 | expect(neq('5.0.1.52', '5.0.1.52')).toBeFalsy();
|
20 | expect(neq('5.0.1.52.200', '5.0.1.52.200')).toBeFalsy();
|
21 | expect(neq('5.0.1-beta.3', '5.0.1-beta.3')).toBeFalsy();
|
22 | expect(neq('5.0.1-beta', '5.0.1-beta')).toBeFalsy();
|
23 | })
|
24 | });
|