Skip to content

Commit fe5e939

Browse files
authored
Update Volume.test.js
1 parent 48fec3d commit fe5e939

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Maths/test/Volume.test.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
import * as volume from '../Volume'
22

33
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)
66
})
77

88
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)
1111
})
1212

1313
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)
1616
})
1717

1818
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)
2121
})
2222

2323
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)
2626
})
2727

2828
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)
3131
})
3232

3333
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)
3636
})
3737

3838
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)
4141
})
4242

4343
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)
4646
})

0 commit comments

Comments
 (0)