File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 94ac30c498399eec1c5239b472845d238b1926ec
2
+ refs/heads/master: 07461908268c9901dcd7a6ded109733fac4c86c6
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change @@ -134,6 +134,16 @@ fn is_uuid(id: str) -> bool {
134
134
false
135
135
}
136
136
137
+ #[ test]
138
+ fn test_is_uuid ( ) {
139
+ assert is_uuid ( "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa" ) ;
140
+ assert is_uuid ( "AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA" ) ;
141
+ assert is_uuid ( "0AAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAA0" ) ;
142
+ assert ! is_uuid( "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa" ) ;
143
+ assert ! is_uuid( "aaaaaaaa-aaaa-aaaa-aaaaa-aaaaaaaaaaaa" ) ;
144
+ assert ! is_uuid( "" ) ;
145
+ }
146
+
137
147
// FIXME: implement URI/URL parsing so we don't have to resort to weak checks
138
148
139
149
fn is_archive_uri ( uri : str ) -> bool {
You can’t perform that action at this time.
0 commit comments