Lines Matching refs:U32_BITS

1341     const U32_BITS: usize = 32;  const
1873 let mut s = BitVec::from_elem(5 * U32_BITS - 2, false); in test_bit_vec_push_pop()
1874 assert_eq!(s.len(), 5 * U32_BITS - 2); in test_bit_vec_push_pop()
1875 assert_eq!(s[5 * U32_BITS - 3], false); in test_bit_vec_push_pop()
1878 assert_eq!(s[5 * U32_BITS - 2], true); in test_bit_vec_push_pop()
1879 assert_eq!(s[5 * U32_BITS - 1], true); in test_bit_vec_push_pop()
1882 assert_eq!(s[5 * U32_BITS], false); in test_bit_vec_push_pop()
1884 assert_eq!(s[5 * U32_BITS + 1], false); in test_bit_vec_push_pop()
1885 assert_eq!(s.len(), 5 * U32_BITS + 2); in test_bit_vec_push_pop()
1891 assert_eq!(s.len(), 5 * U32_BITS - 2); in test_bit_vec_push_pop()
1896 let mut s = BitVec::from_elem(5 * U32_BITS, true); in test_bit_vec_truncate()
1898 assert_eq!(s, BitVec::from_elem(5 * U32_BITS, true)); in test_bit_vec_truncate()
1899 assert_eq!(s.len(), 5 * U32_BITS); in test_bit_vec_truncate()
1900 s.truncate(4 * U32_BITS); in test_bit_vec_truncate()
1901 assert_eq!(s, BitVec::from_elem(4 * U32_BITS, true)); in test_bit_vec_truncate()
1902 assert_eq!(s.len(), 4 * U32_BITS); in test_bit_vec_truncate()
1904 s.truncate(5 * U32_BITS); in test_bit_vec_truncate()
1905 assert_eq!(s, BitVec::from_elem(4 * U32_BITS, true)); in test_bit_vec_truncate()
1906 assert_eq!(s.len(), 4 * U32_BITS); in test_bit_vec_truncate()
1907 s.truncate(3 * U32_BITS - 10); in test_bit_vec_truncate()
1908 assert_eq!(s, BitVec::from_elem(3 * U32_BITS - 10, true)); in test_bit_vec_truncate()
1909 assert_eq!(s.len(), 3 * U32_BITS - 10); in test_bit_vec_truncate()
1917 let mut s = BitVec::from_elem(5 * U32_BITS, true); in test_bit_vec_reserve()
1919 assert!(s.capacity() >= 5 * U32_BITS); in test_bit_vec_reserve()
1920 s.reserve(2 * U32_BITS); in test_bit_vec_reserve()
1921 assert!(s.capacity() >= 7 * U32_BITS); in test_bit_vec_reserve()
1922 s.reserve(7 * U32_BITS); in test_bit_vec_reserve()
1923 assert!(s.capacity() >= 12 * U32_BITS); in test_bit_vec_reserve()
1924 s.reserve_exact(7 * U32_BITS); in test_bit_vec_reserve()
1925 assert!(s.capacity() >= 12 * U32_BITS); in test_bit_vec_reserve()
1926 s.reserve(7 * U32_BITS + 1); in test_bit_vec_reserve()
1927 assert!(s.capacity() >= 12 * U32_BITS + 1); in test_bit_vec_reserve()
1929 assert_eq!(s.len(), 5 * U32_BITS); in test_bit_vec_reserve()
1933 assert_eq!(s[5 * U32_BITS - 1], true); in test_bit_vec_reserve()
1934 assert_eq!(s[5 * U32_BITS - 0], true); in test_bit_vec_reserve()
1935 assert_eq!(s[5 * U32_BITS + 1], false); in test_bit_vec_reserve()
1936 assert_eq!(s[5 * U32_BITS + 2], true); in test_bit_vec_reserve()