Sha256: 50800ee12c4f96b2345c533e6671737e6fe9b8e492daf84675b07efbd7a84365
Contents?: true
Size: 301 Bytes
Versions: 87
Compression:
Stored size: 301 Bytes
Contents
package util import "testing" func TestAtomicBool(t *testing.T) { if !NewAtomicBool(true).Get() || NewAtomicBool(false).Get() { t.Error("Invalid initial value") } ab := NewAtomicBool(true) if ab.Set(false) { t.Error("Invalid return value") } if ab.Get() { t.Error("Invalid state") } }
Version data entries
87 entries across 87 versions & 1 rubygems