We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1a84f9 commit 6a0d595Copy full SHA for 6a0d595
1 file changed
crates/vespertide-exporter/src/seaorm/mod.rs
@@ -2273,6 +2273,19 @@ mod helper_tests {
2273
assert!(result.contains(" #[sea_orm(string_value = \"IN_PROGRESS\")]\n InProgress,"));
2274
}
2275
2276
+ #[test]
2277
+ fn test_is_screaming_snake_value_rejects_invalid_symbol() {
2278
+ assert!(!is_screaming_snake_value("PENDING-REVIEW"));
2279
+ }
2280
+
2281
2282
+ fn test_screaming_snake_to_pascal_case_ignores_empty_segments() {
2283
+ assert_eq!(
2284
+ screaming_snake_to_pascal_case("PENDING__REVIEW"),
2285
+ "PendingReview"
2286
+ );
2287
2288
2289
fn string_enum_order_status() -> (&'static str, EnumValues) {
2290
(
2291
"order_status",
0 commit comments