File tree Expand file tree Collapse file tree 2 files changed +30
-22
lines changed Expand file tree Collapse file tree 2 files changed +30
-22
lines changed Original file line number Diff line number Diff line change
1
+ /** Examples from each classification of number */
2
+ const numberTaxonomy = {
3
+ signed : {
4
+ negative : /**/ - 1 ,
5
+ positive : /**/ + 1 ,
6
+ } ,
7
+ fractional : {
8
+ rational : 1 / 2 ,
9
+ irrational : Math . PI ,
10
+ transcendental : Math . E ,
11
+ } ,
12
+ infinite : {
13
+ positive : Infinity ,
14
+ negative : - Infinity ,
15
+ } ,
16
+ runtime : {
17
+ min : Number . MIN_VALUE ,
18
+ max : Number . MAX_VALUE ,
19
+ } ,
20
+ origin : 0 ,
21
+ undefined : NaN ,
22
+ } as const ;
23
+
24
+ export {
25
+ numberTaxonomy ,
26
+ } ;
Original file line number Diff line number Diff line change @@ -4,32 +4,14 @@ import {
4
4
expect ,
5
5
} from 'vitest' ;
6
6
7
+ import {
8
+ numberTaxonomy ,
9
+ } from '../../numberTaxonomy' ;
10
+
7
11
import {
8
12
isOperable ,
9
13
} from './isOperable' ;
10
14
11
- const numberTaxonomy = {
12
- signed : {
13
- negative : /**/ - 1 ,
14
- positive : /**/ + 1 ,
15
- } ,
16
- fractional : {
17
- rational : 1 / 2 ,
18
- irrational : Math . PI ,
19
- transcendental : Math . E ,
20
- } ,
21
- infinite : {
22
- positive : Infinity ,
23
- negative : - Infinity ,
24
- } ,
25
- runtime : {
26
- min : Number . MIN_VALUE ,
27
- max : Number . MAX_VALUE ,
28
- } ,
29
- origin : 0 ,
30
- undefined : NaN ,
31
- } as const ;
32
-
33
15
describe ( isOperable , ( ) => {
34
16
const theSoleInoperableNumber = numberTaxonomy . undefined ;
35
17
You can’t perform that action at this time.
0 commit comments