Skip to content

Commit 5d62b4a

Browse files
authored
Update Volume.test.js
1 parent fe5e939 commit 5d62b4a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Maths/test/Volume.test.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ test('Testing on volCube', () => {
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(3.0, 8.0)
15+
expect(volCone).toBe(75.39822)
1616
})
1717

1818
test('Testing on volPyramid', () => {
@@ -21,8 +21,8 @@ test('Testing on volPyramid', () => {
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(3.0, 8.0)
25+
expect(volCylinder).toBe(226.19467)
2626
})
2727

2828
test('Testing on volTriangularPrism', () => {
@@ -37,10 +37,10 @@ test('Testing on volPentagonalPrism', () => {
3737

3838
test('Testing on volSphere', () => {
3939
const volSphere = volume.volSphere(4.0)
40-
expect(volSphere).toBe(268.0826)
40+
expect(volSphere).toBe(268.08257)
4141
})
4242

4343
test('Testing on volHemisphere', () => {
4444
const volHemisphere = volume.volHemisphere(4.0)
45-
expect(volHemisphere).toBe(134.0413)
45+
expect(volHemisphere).toBe(134.041285)
4646
})

0 commit comments

Comments
 (0)