rustdoc: Fix spelling in tests

This commit is contained in:
Brian Anderson 2012-09-19 18:30:14 -07:00
parent acc3ec7d6c
commit b056e98a27

View File

@ -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;