tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/scd4x/scd4x_test.go (about) 1 package scd4x 2 3 import ( 4 "testing" 5 6 qt "github.com/frankban/quicktest" 7 "tinygo.org/x/drivers/tester" 8 ) 9 10 func TestDefaultI2CAddress(t *testing.T) { 11 c := qt.New(t) 12 bus := tester.NewI2CBus(c) 13 dev := New(bus) 14 c.Assert(dev.Address, qt.Equals, uint8(Address)) 15 }