Add stress test for Float64

This commit is contained in:
Bill Fumerola
2016-12-13 10:45:32 -08:00
committed by bill fumerola
parent 14746df0c2
commit 74ca5ec650

View File

@@ -105,6 +105,15 @@ func TestStressUint64(t *testing.T) {
})
}
func TestStressFloat64(t *testing.T) {
var atom Float64
runStress(func() {
atom.Load()
atom.CAS(1.0, 0.1)
atom.Store(1.0)
})
}
func TestStressBool(t *testing.T) {
var atom Bool
runStress(func() {