Skip to content

Commit 23714cb

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

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Maths/test/Volume.test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ test('Testing on volCube', () => {
1212

1313
test('Testing on volCone', () => {
1414
const volCone = volume.volCone(3.0, 8.0)
15-
expect(volCone).toBe(75.39822)
15+
expect(volCone).toBe(75.39822368615503)
1616
})
1717

1818
test('Testing on volPyramid', () => {
@@ -22,7 +22,7 @@ test('Testing on volPyramid', () => {
2222

2323
test('Testing on volCylinder', () => {
2424
const volCylinder = volume.volCylinder(3.0, 8.0)
25-
expect(volCylinder).toBe(226.19467)
25+
expect(volCylinder).toBe(226.1946710584651)
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.08257)
40+
expect(volSphere).toBe(268.082573106329)
4141
})
4242

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

0 commit comments

Comments
 (0)