Update Volume.test.js

This commit is contained in:
leeyan44
2021-07-20 15:08:31 +08:00
committed by GitHub
parent 5d62b4aa1b
commit 23714cb154

View File

@ -12,7 +12,7 @@ test('Testing on volCube', () => {
test('Testing on volCone', () => {
const volCone = volume.volCone(3.0, 8.0)
expect(volCone).toBe(75.39822)
expect(volCone).toBe(75.39822368615503)
})
test('Testing on volPyramid', () => {
@ -22,7 +22,7 @@ test('Testing on volPyramid', () => {
test('Testing on volCylinder', () => {
const volCylinder = volume.volCylinder(3.0, 8.0)
expect(volCylinder).toBe(226.19467)
expect(volCylinder).toBe(226.1946710584651)
})
test('Testing on volTriangularPrism', () => {
@ -37,10 +37,10 @@ test('Testing on volPentagonalPrism', () => {
test('Testing on volSphere', () => {
const volSphere = volume.volSphere(4.0)
expect(volSphere).toBe(268.08257)
expect(volSphere).toBe(268.082573106329)
})
test('Testing on volHemisphere', () => {
const volHemisphere = volume.volHemisphere(4.0)
expect(volHemisphere).toBe(134.041285)
expect(volHemisphere).toBe(134.0412865531645)
})