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]
|
||||
fn shoulde_parse_hidden_attribute() {
|
||||
fn should_parse_hidden_attribute() {
|
||||
let source = ~"#[doc(hidden)]";
|
||||
let attrs = test::parse_attributes(source);
|
||||
assert parse_hidden(attrs) == true;
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn shoulde_not_parse_non_hidden_attribute() {
|
||||
fn should_not_parse_non_hidden_attribute() {
|
||||
let source = ~"#[doc = \"\"]";
|
||||
let attrs = test::parse_attributes(source);
|
||||
assert parse_hidden(attrs) == false;
|
||||
|
Loading…
Reference in New Issue
Block a user