1 use cranelift_bitset::CompoundBitSet;
2 use wasmtime::Result;
3 use wasmtime_fuzzing::oom::OomTest;
4 
5 #[test]
compound_bit_set_try_with_capacity() -> Result<()>6 fn compound_bit_set_try_with_capacity() -> Result<()> {
7     OomTest::new().test(|| {
8         let _bitset = CompoundBitSet::<usize>::try_with_capacity(32)?;
9         Ok(())
10     })
11 }
12 
13 #[test]
compound_bit_set_try_ensure_capacity() -> Result<()>14 fn compound_bit_set_try_ensure_capacity() -> Result<()> {
15     OomTest::new().test(|| {
16         let mut bitset = CompoundBitSet::new();
17         bitset.try_ensure_capacity(100)?;
18         Ok(())
19     })
20 }
21