Last active
October 19, 2022 21:19
-
-
Save CarlKCarlK/6533e065db485a15ffab1a1f218dbbb8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use anyinput::anyinput; | |
#[test] | |
fn one_input() { | |
#[anyinput] | |
pub fn any_str_len(s: AnyString) -> usize { | |
s.len() | |
} | |
assert!(any_str_len("123") == 3); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment