12 lines
346 B
Rust
12 lines
346 B
Rust
use leetcode::excel_sheet_column_title::convert_to_title;
|
|
|
|
use test_case::test_case;
|
|
|
|
#[test_case(1, "A"; "minimum")]
|
|
#[test_case(i32::MAX, "FXSHRXW"; "maximum")]
|
|
#[test_case(28, "AB"; "double")]
|
|
#[test_case(1377, "AZY"; "triple")]
|
|
fn test_excel_sheet_column_title(input: i32, expected: &str) {
|
|
assert_eq!(convert_to_title(input), expected);
|
|
}
|