(type)
| 915 | |
| 916 | describe('numeric bounds', () => { |
| 917 | const withField = (type) => ({ |
| 918 | schemaVersion: 1, |
| 919 | commands: [], |
| 920 | events: [], |
| 921 | types: { |
| 922 | 'x.T': { kind: 'record', fields: [{ name: 'a', wire: 'a', required: true, type }] }, |
| 923 | 'x.Uint': { kind: 'alias', type: { primitive: 'integer', min: 0 } }, |
| 924 | 'x.Text': { kind: 'alias', type: { primitive: 'string' } }, |
| 925 | 'x.Rec': { kind: 'record', fields: [] }, |
| 926 | }, |
| 927 | }) |
| 928 | const misplaced = ['x.T.a: carries a numeric bound on a non-numeric type'] |
| 929 | |
| 930 | it('accepts a bound on a numeric primitive or on a ref to a numeric alias', () => { |
no outgoing calls
no test coverage detected