mirror of
https://github.com/containers/podman.git
synced 2025-05-20 00:27:03 +08:00

Before Libpod supported named volumes, we approximated image volumes by bind-mounting in per-container temporary directories. This was handled by Libpod, and had a corresponding database entry to enable/disable it. However, when we enabled named volumes, we completely rewrote the old implementation; none of the old bind mount implementation still exists, save one flag in the database. With nothing remaining to use it, it has no further purpose. Signed-off-by: Matthew Heon <mheon@redhat.com>
18 lines
390 B
Go
18 lines
390 B
Go
package libpod
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestRemoveScientificNotationFromFloat(t *testing.T) {
|
|
numbers := []float64{0.0, .5, 1.99999932, 1.04e+10}
|
|
results := []float64{0.0, .5, 1.99999932, 1.04}
|
|
for i, x := range numbers {
|
|
result, err := RemoveScientificNotationFromFloat(x)
|
|
assert.NoError(t, err)
|
|
assert.Equal(t, result, results[i])
|
|
}
|
|
}
|