Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Dec 5, 2020
1 parent db8ddbf commit 9b62936
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/test/rustdoc/codeblock-title.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#![crate_name = "foo"]

// ignore-tidy-linelength

// @has foo/fn.bar.html '//*[@class="tooltip compile_fail"]/span' "This example deliberately fails to compile"
// @has foo/fn.bar.html '//*[@class="tooltip ignore"]/span' "This example is not tested"
// @has foo/fn.bar.html '//*[@class="tooltip should_panic"]/span' "This example panics"
// @has foo/fn.bar.html '//*[@class="tooltip compile_fail"]' "ⓘ"
// @has foo/fn.bar.html '//*[@class="tooltip ignore"]' "ⓘ"
// @has foo/fn.bar.html '//*[@class="tooltip should_panic"]' "ⓘ"
// @has foo/fn.bar.html '//*[@edition="2018"]' "ⓘ"

/// foo
///
Expand All @@ -20,7 +19,7 @@
/// hoo();
/// ```
///
/// ```
/// ```edition2018
/// let x = 0;
/// ```
pub fn bar() -> usize { 2 }

0 comments on commit 9b62936

Please sign in to comment.