mirror of
https://github.com/pion/mediadevices.git
synced 2025-10-17 06:00:39 +08:00
Add IsFloat, IsBigEndian, and IsInterleaved props
* Add bool constraint * Add IsFloat, IsBigEndian, and IsInterleaved properties
This commit is contained in:
@@ -139,6 +139,24 @@ func TestCompareMatch(t *testing.T) {
|
||||
}},
|
||||
true,
|
||||
},
|
||||
"BoolExactUnmatch": {
|
||||
MediaConstraints{AudioConstraints: AudioConstraints{
|
||||
IsFloat: BoolExact(true),
|
||||
}},
|
||||
Media{Audio: Audio{
|
||||
IsFloat: false,
|
||||
}},
|
||||
false,
|
||||
},
|
||||
"BoolExactMatch": {
|
||||
MediaConstraints{AudioConstraints: AudioConstraints{
|
||||
IsFloat: BoolExact(true),
|
||||
}},
|
||||
Media{Audio: Audio{
|
||||
IsFloat: true,
|
||||
}},
|
||||
true,
|
||||
},
|
||||
}
|
||||
|
||||
for name, testData := range testDataSet {
|
||||
|
Reference in New Issue
Block a user