feat: Rename tests

This commit is contained in:
ge 2022-05-14 03:36:46 +03:00
parent c950273168
commit d07ff8ca43

View File

@ -15,7 +15,7 @@ setup() {
# Do tests! #
# ------------------------------ #
@test "Test file:/" {
@test "file:/" {
. uri.sh
parse_uri 'file:/'
[ "$scheme" == 'file' ]
@ -28,7 +28,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test file:/path" {
@test "file:/path" {
. uri.sh
parse_uri 'file:/path'
[ "$scheme" == 'file' ]
@ -41,7 +41,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test file:///" {
@test "file:///" {
. uri.sh
parse_uri 'file:///'
[ "$scheme" == 'file' ]
@ -54,7 +54,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test sqlite:///path" {
@test "sqlite:///path" {
. uri.sh
parse_uri 'sqlite:///path'
[ "$scheme" == 'sqlite' ]
@ -67,7 +67,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test file://host" {
@test "file://host" {
. uri.sh
parse_uri 'file://host'
[ "$scheme" == 'file' ]
@ -80,7 +80,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test s3://host/path" {
@test "s3://host/path" {
. uri.sh
parse_uri 's3://host/path'
[ "$scheme" == 's3' ]
@ -93,7 +93,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test dav://user@host/" {
@test "dav://user@host/" {
. uri.sh
parse_uri 'dav://user@host/'
[ "$scheme" == 'dav' ]
@ -106,7 +106,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test dav://user:p%40%24%24w0rD@host/path/" {
@test "dav://user:p%40%24%24w0rD@host/path/" {
. uri.sh
parse_uri 'dav://user:p%40%24%24w0rD@host/path/'
[ "$scheme" == 'dav' ]
@ -119,7 +119,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test rsync://user:password@host:~/backups" {
@test "rsync://user:password@host:~/backups" {
. uri.sh
parse_uri 'rsync://user:password@host:~/backups'
[ "$scheme" == 'rsync' ]
@ -132,7 +132,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test postgres://user:password@host:5432" {
@test "postgres://user:password@host:5432" {
. uri.sh
parse_uri 'postgres://user:password@host:5432'
[ "$scheme" == 'postgres' ]
@ -145,7 +145,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test http://user:password@host:port/path?q=val" {
@test "http://user:password@host:port/path?q=val" {
. uri.sh
parse_uri 'scheme://user:password@host:123/path?q=val'
[ "$scheme" == 'scheme' ]
@ -158,7 +158,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test ftp://user:%24t%D0%AFo%7C%5C%7C6@[fe80::5054:ff:fe24:382]:2021/srv/" {
@test "ftp://user:%24t%D0%AFo%7C%5C%7C6@[fe80::5054:ff:fe24:382]:2021/srv/" {
. uri.sh
parse_uri 'ftp://user:%24t%D0%AFo%7C%5C%7C6@[fe80::5054:ff:fe24:382]:2021/srv/'
[ "$scheme" == 'ftp' ]
@ -175,7 +175,7 @@ setup() {
# Test RFC 3986 Examples #
# ------------------------------ #
@test "Test https://john.doe@www.example.com:123/forum/questions/?tag=networking&order=newest#top" {
@test "https://john.doe@www.example.com:123/forum/questions/?tag=networking&order=newest#top" {
. uri.sh
parse_uri 'https://john.doe@www.example.com:123/forum/questions/?tag=networking&order=newest#top'
[ "$scheme" == 'https' ]
@ -188,7 +188,7 @@ setup() {
[ "$fragment" == 'top' ]
}
@test "Test ldap://[2001:db8::7]/c=GB?objectClass?one" {
@test "ldap://[2001:db8::7]/c=GB?objectClass?one" {
. uri.sh
parse_uri 'ldap://[2001:db8::7]/c=GB?objectClass?one'
[ "$scheme" == 'ldap' ]
@ -201,7 +201,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test mailto:John.Doe@example.com" {
@test "mailto:John.Doe@example.com" {
. uri.sh
parse_uri 'mailto:John.Doe@example.com'
[ "$scheme" == 'mailto' ]
@ -214,7 +214,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test news:comp.infosystems.www.servers.unix" {
@test "news:comp.infosystems.www.servers.unix" {
. uri.sh
parse_uri 'news:comp.infosystems.www.servers.unix'
[ "$scheme" == 'news' ]
@ -227,7 +227,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test tel:+1-816-555-1212" {
@test "tel:+1-816-555-1212" {
. uri.sh
parse_uri 'tel:+1-816-555-1212'
[ "$scheme" == 'tel' ]
@ -241,7 +241,7 @@ setup() {
}
@test "Test telnet://192.0.2.16:80/" {
@test "telnet://192.0.2.16:80/" {
. uri.sh
parse_uri 'telnet://192.0.2.16:80/'
[ "$scheme" == 'telnet' ]
@ -254,7 +254,7 @@ setup() {
[ "$fragment" == '' ]
}
@test "Test urn:oasis:names:specification:docbook:dtd:xml:4.1.2" {
@test "urn:oasis:names:specification:docbook:dtd:xml:4.1.2" {
. uri.sh
parse_uri 'urn:oasis:names:specification:docbook:dtd:xml:4.1.2'
[ "$scheme" == 'urn' ]