rustdoc: Fix spelling in tests
This commit is contained in:
parent
acc3ec7d6c
commit
b056e98a27
@ -132,14 +132,14 @@ fn parse_hidden(attrs: ~[ast::attribute]) -> bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn shoulde_parse_hidden_attribute() {
|
fn should_parse_hidden_attribute() {
|
||||||
let source = ~"#[doc(hidden)]";
|
let source = ~"#[doc(hidden)]";
|
||||||
let attrs = test::parse_attributes(source);
|
let attrs = test::parse_attributes(source);
|
||||||
assert parse_hidden(attrs) == true;
|
assert parse_hidden(attrs) == true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn shoulde_not_parse_non_hidden_attribute() {
|
fn should_not_parse_non_hidden_attribute() {
|
||||||
let source = ~"#[doc = \"\"]";
|
let source = ~"#[doc = \"\"]";
|
||||||
let attrs = test::parse_attributes(source);
|
let attrs = test::parse_attributes(source);
|
||||||
assert parse_hidden(attrs) == false;
|
assert parse_hidden(attrs) == false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user