% ./target/debug/ulid-test
thread 'main' panicked at 'assertion failed: `(left == right)`
left: `Err(InvalidChar)`,
right: `Ok(Ulid(1372106318229590578481349223515194401))`', src/main.rs:6:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
% ./target/debug/ulid-test
thread 'main' panicked at 'assertion failed: `(left == right)`
left: `Err(InvalidChar)`,
right: `Ok(Ulid(1372106318229590578481349223515194401))`', src/main.rs:6:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```
% cat ./src/main.rs
use ulid::Ulid;
fn main() {
let result1 = Ulid::from_string("0LLLLLLLLLLLLLLLLLLLLLLLLL");
let result2 = Ulid::from_string("01111111111111111111111111");
assert_eq!(result1, result2);
}
```
% cat ./src/main.rs
use ulid::Ulid;
fn main() {
let result1 = Ulid::from_string("0LLLLLLLLLLLLLLLLLLLLLLLLL");
let result2 = Ulid::from_string("01111111111111111111111111");
assert_eq!(result1, result2);
}
```
rustのulidは弾いてそう。
rustのulidは弾いてそう。