mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 08:16:50 +08:00
Update Volume.test.js
This commit is contained in:
@ -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)
|
||||
})
|
||||
|
Reference in New Issue
Block a user