Add more UI tests ()

cc 
This commit is contained in:
Chris Wong 2021-03-13 19:38:50 +11:00 committed by GitHub
parent 4cffcd298b
commit 7284924cc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,7 @@
use maud::html;
fn main() {
html! {
a href=
};
}

View file

@ -0,0 +1,9 @@
error: unexpected end of input
--> $DIR/attribute-missing-value.rs:4:5
|
4 | / html! {
5 | | a href=
6 | | };
| |______^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

View file

@ -0,0 +1,7 @@
use maud::html;
fn main() {
html! {
p.
};
}

View file

@ -0,0 +1,9 @@
error: unexpected end of input
--> $DIR/class-shorthand-missing-value.rs:4:5
|
4 | / html! {
5 | | p.
6 | | };
| |______^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

View file

@ -0,0 +1,7 @@
use maud::html;
fn main() {
html! {
p
};
}

View file

@ -0,0 +1,9 @@
error: unexpected end of input
--> $DIR/element-missing-body.rs:4:5
|
4 | / html! {
5 | | p
6 | | };
| |______^
|
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

View file

@ -0,0 +1,7 @@
use maud::html;
fn main() {
html! {
42
};
}

View file

@ -0,0 +1,5 @@
error: expected string
--> $DIR/non-string-literal.rs:5:9
|
5 | 42
| ^^