#[cfg(any(test, feature = "_test_utils"))]
define_feature!(
- 123456789,
+ 12345,
UnknownFeature,
[
NodeContext,
features.set_unknown_feature_required();
assert!(features.requires_unknown_bits());
assert!(features.supports_unknown_bits());
- assert_eq!(features.required_unknown_bits_from(&ChannelFeatures::empty()), vec![123456788]);
+ assert_eq!(features.required_unknown_bits_from(&ChannelFeatures::empty()), vec![12344]);
let mut features = ChannelFeatures::empty();
features.set_unknown_feature_optional();
let mut features = ChannelFeatures::empty();
features.set_unknown_feature_required();
- features.set_custom_bit(123456786).unwrap();
+ features.set_custom_bit(12346).unwrap();
assert!(features.requires_unknown_bits());
assert!(features.supports_unknown_bits());
assert_eq!(
features.required_unknown_bits_from(&ChannelFeatures::empty()),
- vec![123456786, 123456788]
+ vec![12344, 12346]
);
let mut limiter = ChannelFeatures::empty();
limiter.set_unknown_feature_optional();
- assert_eq!(features.required_unknown_bits_from(&limiter), vec![123456786]);
+ assert_eq!(features.required_unknown_bits_from(&limiter), vec![12346]);
}
#[test]