From 60ee8a633f822f3ba60f4a7fa04f4f2245f84df4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5rten=20Kongstad?= Date: Thu, 29 Jun 2023 10:01:52 +0200 Subject: [PATCH] aconfig: improve package identifier test readability Rearrange the tests in test_is_valid_package_ident to make it more apparent what constitutes a valid package pattern, and what doesn't. Bug: 283910447 Test: atest aconfig.test Change-Id: I3d2b87aed008d0ed3a0aa6e483e655178dda7277 --- tools/aconfig/src/codegen.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/aconfig/src/codegen.rs b/tools/aconfig/src/codegen.rs index d96d4f9391..e50be0be40 100644 --- a/tools/aconfig/src/codegen.rs +++ b/tools/aconfig/src/codegen.rs @@ -65,8 +65,8 @@ mod tests { assert!(is_valid_package_ident("foo_bar_123")); assert!(is_valid_package_ident("foo.bar")); assert!(is_valid_package_ident("foo.bar.a123")); - assert!(!is_valid_package_ident("foo._bar")); + assert!(!is_valid_package_ident("foo._bar")); assert!(!is_valid_package_ident("")); assert!(!is_valid_package_ident("123_foo")); assert!(!is_valid_package_ident("foo-bar"));