Would we want this kind of assertion for flags? `...
# kotest
l
Would we want this kind of assertion for flags?
capturedIntent.flags shouldContain Intent.FLAG_GRANT_READ_URI_PERMISSION
Currently the way to check it is
Copy code
(capturedIntent.flags and Intent.FLAG_GRANT_READ_URI_PERMISSION) shouldNotBe 0
These are numbers, so use-cases are not that wild. We do however still see byte-flags like this in some systems If this makes sense I can create an issue and might implement it when I face these flags again
another way for the same thing is something like
(capturedIntent.flags / Intent.FLAG_GRANT_READ_URI_PERMISSION) % 2 != 0
a
makes sense. we do use bitmaps to store sets of enums like
Set<DayOfWeek>
and
Set<Month>
. when will 6.0 get released, and will it get into 6.0?