diff --git a/bpaf_derive/src/field_tests.rs b/bpaf_derive/src/field_tests.rs index 45a37f50..1bc3e0e2 100644 --- a/bpaf_derive/src/field_tests.rs +++ b/bpaf_derive/src/field_tests.rs @@ -947,3 +947,15 @@ fn raw_literal() { }; assert_eq!(input.to_token_stream().to_string(), output.to_string()); } + +#[test] +fn any_anywhere() { + let input: NamedField = parse_quote! { + #[bpaf(any::("LIMIT", isize_to_usize), anywhere)] + num: isize + }; + let output = quote! { + ::bpaf::any::("LIMIT", isize_to_usize).anywhere() + }; + assert_eq!(input.to_token_stream().to_string(), output.to_string()); +}