1 |
|
2 | import { range } from './fswquery-range';
|
3 |
|
4 | it('should return a range for min and max', () => {
|
5 | expect(range(500, 750)).toBe('(([56][0-9][0-9])|(7[0-4][0-9])|(750))');
|
6 | })
|
7 |
|
8 | it('should return a range for min and max in hex', () => {
|
9 | expect(range('100', '10e', 'hex')).toBe('10[0-9a-e]');
|
10 | })
|