-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
invert condition and source test data
lint doh appease old python
- Loading branch information
Showing
19 changed files
with
679 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
tests/test_atproto_client/interop-test-files/syntax/atidentifier_syntax_invalid.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
|
||
# invalid handles | ||
did:thing.test | ||
did:thing | ||
john-.test | ||
john.0 | ||
john.- | ||
xn--bcher-.tld | ||
john..test | ||
jo_hn.test | ||
|
||
# invalid DIDs | ||
did | ||
didmethodval | ||
method:did:val | ||
did:method: | ||
didmethod:val | ||
did:methodval) | ||
:did:method:val | ||
did:method:val: | ||
did:method:val% | ||
DID:method:val | ||
|
||
# other invalid stuff | ||
[email protected] | ||
@[email protected] | ||
@handle | ||
blah |
15 changes: 15 additions & 0 deletions
15
tests/test_atproto_client/interop-test-files/syntax/atidentifier_syntax_valid.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
# allows valid handles | ||
XX.LCS.MIT.EDU | ||
john.test | ||
jan.test | ||
a234567890123456789.test | ||
john2.test | ||
john-john.test | ||
|
||
# allows valid DIDs | ||
did:method:val | ||
did:method:VAL | ||
did:method:val123 | ||
did:method:123 | ||
did:method:val-two |
89 changes: 89 additions & 0 deletions
89
tests/test_atproto_client/interop-test-files/syntax/aturi_syntax_invalid.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
|
||
# enforces spec basics | ||
a://did:plc:asdf123 | ||
at//did:plc:asdf123 | ||
at:/a/did:plc:asdf123 | ||
at:/did:plc:asdf123 | ||
AT://did:plc:asdf123 | ||
http://did:plc:asdf123 | ||
://did:plc:asdf123 | ||
at:did:plc:asdf123 | ||
at:/did:plc:asdf123 | ||
at:///did:plc:asdf123 | ||
at://:/did:plc:asdf123 | ||
at:/ /did:plc:asdf123 | ||
at://did:plc:asdf123 | ||
at://did:plc:asdf123/ | ||
at://did:plc:asdf123 | ||
at://did:plc:asdf123/com.atproto.feed.post | ||
at://did:plc:asdf123/com.atproto.feed.post# | ||
at://did:plc:asdf123/com.atproto.feed.post#/ | ||
at://did:plc:asdf123/com.atproto.feed.post#/frag | ||
at://did:plc:asdf123/com.atproto.feed.post#fr ag | ||
//did:plc:asdf123 | ||
at://name | ||
at://name.0 | ||
at://diD:plc:asdf123 | ||
at://did:plc:asdf123/com.atproto.feed.p@st | ||
at://did:plc:asdf123/com.atproto.feed.p$st | ||
at://did:plc:asdf123/com.atproto.feed.p%st | ||
at://did:plc:asdf123/com.atproto.feed.p&st | ||
at://did:plc:asdf123/com.atproto.feed.p()t | ||
at://did:plc:asdf123/com.atproto.feed_post | ||
at://did:plc:asdf123/-com.atproto.feed.post | ||
at://did:plc:asdf@123/com.atproto.feed.post | ||
at://DID:plc:asdf123 | ||
at://user.bsky.123 | ||
at://bsky | ||
at://did:plc: | ||
at://did:plc: | ||
at://frag | ||
|
||
# too long: 'at://did:plc:asdf123/com.atproto.feed.post/' + 'o'.repeat(8200) | ||
at://did:plc:asdf123/com.atproto.feed.post/oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo | ||
|
||
# has specified behavior on edge cases | ||
at://user.bsky.social// | ||
at://user.bsky.social//com.atproto.feed.post | ||
at://user.bsky.social/com.atproto.feed.post// | ||
at://did:plc:asdf123/com.atproto.feed.post/asdf123/more/more', | ||
at://did:plc:asdf123/short/stuff | ||
at://did:plc:asdf123/12345 | ||
|
||
# enforces no trailing slashes | ||
at://did:plc:asdf123/ | ||
at://user.bsky.social/ | ||
at://did:plc:asdf123/com.atproto.feed.post/ | ||
at://did:plc:asdf123/com.atproto.feed.post/record/ | ||
at://did:plc:asdf123/com.atproto.feed.post/record/#/frag | ||
|
||
# enforces strict paths | ||
at://did:plc:asdf123/com.atproto.feed.post/asdf123/asdf | ||
|
||
# is very permissive about fragments | ||
at://did:plc:asdf123# | ||
at://did:plc:asdf123## | ||
#at://did:plc:asdf123 | ||
at://did:plc:asdf123#/asdf#/asdf | ||
|
||
# new less permissive about record keys for Lexicon use (with recordkey more specified) | ||
at://did:plc:asdf123/com.atproto.feed.post/%23 | ||
at://did:plc:asdf123/com.atproto.feed.post/$@!*)(:,;~.sdf123 | ||
at://did:plc:asdf123/com.atproto.feed.post/~'sdf123") | ||
at://did:plc:asdf123/com.atproto.feed.post/$ | ||
at://did:plc:asdf123/com.atproto.feed.post/@ | ||
at://did:plc:asdf123/com.atproto.feed.post/! | ||
at://did:plc:asdf123/com.atproto.feed.post/* | ||
at://did:plc:asdf123/com.atproto.feed.post/( | ||
at://did:plc:asdf123/com.atproto.feed.post/, | ||
at://did:plc:asdf123/com.atproto.feed.post/; | ||
at://did:plc:asdf123/com.atproto.feed.post/abc%30123 | ||
at://did:plc:asdf123/com.atproto.feed.post/%30 | ||
at://did:plc:asdf123/com.atproto.feed.post/%3 | ||
at://did:plc:asdf123/com.atproto.feed.post/% | ||
at://did:plc:asdf123/com.atproto.feed.post/%zz | ||
at://did:plc:asdf123/com.atproto.feed.post/%%% | ||
|
||
# disallow dot / double-dot | ||
at://did:plc:asdf123/com.atproto.feed.post/. | ||
at://did:plc:asdf123/com.atproto.feed.post/.. |
34 changes: 34 additions & 0 deletions
34
tests/test_atproto_client/interop-test-files/syntax/aturi_syntax_valid.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
# enforces spec basics | ||
at://did:plc:asdf123 | ||
at://user.bsky.social | ||
at://did:plc:asdf123/com.atproto.feed.post | ||
at://did:plc:asdf123/com.atproto.feed.post/record | ||
|
||
# very long: 'at://did:plc:asdf123/com.atproto.feed.post/' + 'o'.repeat(512) | ||
at://did:plc:asdf123/com.atproto.feed.post/oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo | ||
|
||
# enforces no trailing slashes | ||
at://did:plc:asdf123 | ||
at://user.bsky.social | ||
at://did:plc:asdf123/com.atproto.feed.post | ||
at://did:plc:asdf123/com.atproto.feed.post/record | ||
|
||
# enforces strict paths | ||
at://did:plc:asdf123/com.atproto.feed.post/asdf123 | ||
|
||
# is very permissive about record keys | ||
at://did:plc:asdf123/com.atproto.feed.post/asdf123 | ||
at://did:plc:asdf123/com.atproto.feed.post/a | ||
|
||
at://did:plc:asdf123/com.atproto.feed.post/asdf-123 | ||
at://did:abc:123 | ||
at://did:abc:123/io.nsid.someFunc/record-key | ||
|
||
at://did:abc:123/io.nsid.someFunc/self. | ||
at://did:abc:123/io.nsid.someFunc/lang: | ||
at://did:abc:123/io.nsid.someFunc/: | ||
at://did:abc:123/io.nsid.someFunc/- | ||
at://did:abc:123/io.nsid.someFunc/_ | ||
at://did:abc:123/io.nsid.someFunc/~ | ||
at://did:abc:123/io.nsid.someFunc/... |
7 changes: 7 additions & 0 deletions
7
tests/test_atproto_client/interop-test-files/syntax/datetime_parse_invalid.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# superficial syntax parses ok, but are not valid datetimes for semantic reasons (eg, "month zero") | ||
1985-00-12T23:20:50.123Z | ||
1985-04-00T23:20:50.123Z | ||
1985-13-12T23:20:50.123Z | ||
1985-04-12T25:20:50.123Z | ||
1985-04-12T23:99:50.123Z | ||
1985-04-12T23:20:61.123Z |
68 changes: 68 additions & 0 deletions
68
tests/test_atproto_client/interop-test-files/syntax/datetime_syntax_invalid.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
|
||
# subtle changes to: 1985-04-12T23:20:50.123Z | ||
1985-04-12T23:20:50.123z | ||
01985-04-12T23:20:50.123Z | ||
985-04-12T23:20:50.123Z | ||
1985-04-12T23:20:50.Z | ||
1985-04-32T23;20:50.123Z | ||
1985-04-32T23;20:50.123Z | ||
|
||
# en-dash and em-dash | ||
1985—04-32T23;20:50.123Z | ||
1985–04-32T23;20:50.123Z | ||
|
||
# whitespace | ||
1985-04-12T23:20:50.123Z | ||
1985-04-12T23:20:50.123Z | ||
1985-04-12T 23:20:50.123Z | ||
|
||
# not enough zero padding | ||
1985-4-12T23:20:50.123Z | ||
1985-04-2T23:20:50.123Z | ||
1985-04-12T3:20:50.123Z | ||
1985-04-12T23:0:50.123Z | ||
1985-04-12T23:20:5.123Z | ||
|
||
# too much zero padding | ||
01985-04-12T23:20:50.123Z | ||
1985-004-12T23:20:50.123Z | ||
1985-04-012T23:20:50.123Z | ||
1985-04-12T023:20:50.123Z | ||
1985-04-12T23:020:50.123Z | ||
1985-04-12T23:20:050.123Z | ||
|
||
# strict capitalization (ISO-8601) | ||
1985-04-12t23:20:50.123Z | ||
1985-04-12T23:20:50.123z | ||
|
||
# RFC-3339, but not ISO-8601 | ||
1985-04-12T23:20:50.123-00:00 | ||
1985-04-12_23:20:50.123Z | ||
1985-04-12 23:20:50.123Z | ||
|
||
# ISO-8601, but weird | ||
1985-04-274T23:20:50.123Z | ||
|
||
# timezone is required | ||
1985-04-12T23:20:50.123 | ||
1985-04-12T23:20:50 | ||
|
||
1985-04-12 | ||
1985-04-12T23:20Z | ||
1985-04-12T23:20:5Z | ||
1985-04-12T23:20:50.123 | ||
+001985-04-12T23:20:50.123Z | ||
23:20:50.123Z | ||
|
||
1985-04-12T23:20:50.123+00 | ||
1985-04-12T23:20:50.123+00:0 | ||
1985-04-12T23:20:50.123+0:00 | ||
1985-04-12T23:20:50.123 | ||
1985-04-12T23:20:50.123+0000 | ||
1985-04-12T23:20:50.123+00 | ||
1985-04-12T23:20:50.123+ | ||
1985-04-12T23:20:50.123- | ||
|
||
# ISO-8601, but normalizes to a negative time | ||
0000-01-01T00:00:00+01:00 | ||
-000001-12-31T23:00:00.000Z |
40 changes: 40 additions & 0 deletions
40
tests/test_atproto_client/interop-test-files/syntax/datetime_syntax_valid.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# "preferred" | ||
1985-04-12T23:20:50.123Z | ||
1985-04-12T23:20:50.000Z | ||
2000-01-01T00:00:00.000Z | ||
1985-04-12T23:20:50.123456Z | ||
1985-04-12T23:20:50.120Z | ||
1985-04-12T23:20:50.120000Z | ||
|
||
# "supported" | ||
1985-04-12T23:20:50.1235678912345Z | ||
1985-04-12T23:20:50.100Z | ||
1985-04-12T23:20:50Z | ||
1985-04-12T23:20:50.0Z | ||
1985-04-12T23:20:50.123+00:00 | ||
1985-04-12T23:20:50.123-07:00 | ||
1985-04-12T23:20:50.123+07:00 | ||
1985-04-12T23:20:50.123+01:45 | ||
0985-04-12T23:20:50.123-07:00 | ||
1985-04-12T23:20:50.123-07:00 | ||
0123-01-01T00:00:00.000Z | ||
|
||
# various precisions, up through at least 12 digits | ||
1985-04-12T23:20:50.1Z | ||
1985-04-12T23:20:50.12Z | ||
1985-04-12T23:20:50.123Z | ||
1985-04-12T23:20:50.1234Z | ||
1985-04-12T23:20:50.12345Z | ||
1985-04-12T23:20:50.123456Z | ||
1985-04-12T23:20:50.1234567Z | ||
1985-04-12T23:20:50.12345678Z | ||
1985-04-12T23:20:50.123456789Z | ||
1985-04-12T23:20:50.1234567890Z | ||
1985-04-12T23:20:50.12345678901Z | ||
1985-04-12T23:20:50.123456789012Z | ||
|
||
# extreme but currently allowed | ||
0010-12-31T23:00:00.000Z | ||
1000-12-31T23:00:00.000Z | ||
1900-12-31T23:00:00.000Z | ||
3001-12-31T23:00:00.000Z |
19 changes: 19 additions & 0 deletions
19
tests/test_atproto_client/interop-test-files/syntax/did_syntax_invalid.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
did | ||
didmethodval | ||
method:did:val | ||
did:method: | ||
didmethod:val | ||
did:methodval) | ||
:did:method:val | ||
did.method.val | ||
did:method:val: | ||
did:method:val% | ||
DID:method:val | ||
did:METHOD:val | ||
did:m123:val | ||
did:method:val/two | ||
did:method:val?two | ||
did:method:val#two | ||
did:method:val% | ||
did:method:vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv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