Add stress test for Float64
This commit is contained in:
committed by
bill fumerola
parent
14746df0c2
commit
74ca5ec650
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user