|
1 | 1 | import * as volume from '../Volume' |
2 | 2 |
|
3 | 3 | test('Testing on volCuboid', () => { |
4 | | - const volCuboid = volume.volCuboid(2.0, 5.0, 3) |
5 | | - expect(volCuboid).toBe(30.0) |
| 4 | + const volCuboid = volume.volCuboid(2.0, 5.0, 3) |
| 5 | + expect(volCuboid).toBe(30.0) |
6 | 6 | }) |
7 | 7 |
|
8 | 8 | test('Testing on volCube', () => { |
9 | | - const volCube = volume.volCube(2.0) |
10 | | - expect(volCube).toBe(8.0) |
| 9 | + const volCube = volume.volCube(2.0) |
| 10 | + expect(volCube).toBe(8.0) |
11 | 11 | }) |
12 | 12 |
|
13 | 13 | test('Testing on volCone', () => { |
14 | | - const volCone = volume.volCone(2.0, 8.0) |
15 | | - expect(volCone).toBe(33.5103) |
| 14 | + const volCone = volume.volCone(2.0, 8.0) |
| 15 | + expect(volCone).toBe(33.5103) |
16 | 16 | }) |
17 | 17 |
|
18 | 18 | test('Testing on volPyramid', () => { |
19 | | - const volPyramid = volume.volPyramid(2.0, 3.0, 8.0) |
20 | | - expect(volPyramid).toBe(16.0) |
| 19 | + const volPyramid = volume.volPyramid(2.0, 3.0, 8.0) |
| 20 | + expect(volPyramid).toBe(16.0) |
21 | 21 | }) |
22 | 22 |
|
23 | 23 | test('Testing on volCylinder', () => { |
24 | | - const volCylinder = volume.volCylinder(2.0, 8.0) |
25 | | - expect(volCylinder).toBe(100.5310) |
| 24 | + const volCylinder = volume.volCylinder(2.0, 8.0) |
| 25 | + expect(volCylinder).toBe(100.5310) |
26 | 26 | }) |
27 | 27 |
|
28 | 28 | test('Testing on volTriangularPrism', () => { |
29 | | - const volTriangularPrism = volume.volTriangularPrism(3.0, 6.0, 8.0) |
30 | | - expect(volTriangularPrism).toBe(72.0) |
| 29 | + const volTriangularPrism = volume.volTriangularPrism(3.0, 6.0, 8.0) |
| 30 | + expect(volTriangularPrism).toBe(72.0) |
31 | 31 | }) |
32 | 32 |
|
33 | 33 | test('Testing on volPentagonalPrism', () => { |
34 | | - const volPentagonalPrism = volume.volPentagonalPrism(1.0, 4.0, 8.0) |
35 | | - expect(volPentagonalPrism).toBe(80.0) |
| 34 | + const volPentagonalPrism = volume.volPentagonalPrism(1.0, 4.0, 8.0) |
| 35 | + expect(volPentagonalPrism).toBe(80.0) |
36 | 36 | }) |
37 | 37 |
|
38 | 38 | test('Testing on volSphere', () => { |
39 | | - const volSphere = volume.volSphere(4.0) |
40 | | - expect(volSphere).toBe(268.0826) |
| 39 | + const volSphere = volume.volSphere(4.0) |
| 40 | + expect(volSphere).toBe(268.0826) |
41 | 41 | }) |
42 | 42 |
|
43 | 43 | test('Testing on volHemisphere', () => { |
44 | | - const volHemisphere = volume.volHemisphere(4.0) |
45 | | - expect(volHemisphere).toBe(134.0413) |
| 44 | + const volHemisphere = volume.volHemisphere(4.0) |
| 45 | + expect(volHemisphere).toBe(134.0413) |
46 | 46 | }) |
0 commit comments