summary refs log tree commit diff
path: root/src/doc/trpl/testing.md
AgeCommit message (Collapse)AuthorLines
2015-05-18TRPL: Normalize rust Code Block MarkersPascal Hertleif-5/+5
`{rust,ignore}` -> `rust,ignore
2015-05-18TRPL: Add `rust` Marker to Some Code BlockPascal Hertleif-1/+1
This adds strictly more information to the source files and reduces the need for customized tooling to render the book. (While this should not change the output of _rustbook_, it is very useful when rendering the sources with external tools like Pandoc.)
2015-04-24Change name of unit test sub-module to "tests".Johannes Oertel-11/+11
Changes the style guidelines regarding unit tests to recommend using a sub-module named "tests" instead of "test" for unit tests as "test" might clash with imports of libtest.
2015-04-03book: use `mod test` consistentlyDan Callahan-1/+1
Fixes #24030 Of the four code samples with modules in TRPL: - 2 use `mod test` - 2 use `mod tests` We should be consistent here, but which is right? The stdlib is split: $ grep -r 'mod tests {' src/lib* | wc -l 63 $ grep -r 'mod test {' src/lib* | wc -l 58 Subjectively, I like the plural, but both the language reference and the style guide recommend the singular. So we'll go with that here, for now.
2015-03-31Move benchmark tests to unstable sectionSteve Klabnik-146/+0
Fixes #23881
2015-03-29Fixed wrong name of test module in testing.mdGermano Gabbianelli-3/+3
The documentation says that 'The current convention is to use the `test` module to hold your "unit-style"' but then defines the module as "tests" instead.
2015-03-23Add #![feature] attributes to doctestsBrian Anderson-0/+2
2015-03-19Rename should_fail to should_panic in docsJohannes Oertel-7/+7
2015-03-15Strip trailing whitespaceTamir Duberstein-2/+2
2015-02-12Updated documentation to use range notation syntax.Nick Sarten-3/+3
Replaced outdated use of the `range(start, end)` function where approriate with `start..end`, and tweaked the examples to compile and run with the latest rust. I also fixed two periphery compile issues in reference.md which were occluding whether there were any new errors created by these changes, so I fixed them.
2015-02-02Fix discrepencies in the testing chapterSteve Klabnik-4/+2
Fixes #21501
2015-01-17Fix up titles of TRPL chaptersSteve Klabnik-1/+1
2015-01-17Intpocalypse, book edition.Steve Klabnik-2/+2
Fix all usage of int/uint/i/u in the book.
2015-01-15rollup merge of #21001: camjackson/masterAlex Crichton-7/+1
With the code samples as they are, the compiler says: `feature has been added to Rust, directive not necessary`
2015-01-12Remove usage and reference of feature(globs) from the bookCam Jackson-7/+1
2015-01-12Purge references to Rust tasks from TRPL.Paul Crowley-2/+2
2015-01-10Should be `assert_eq!` not `assert_eq`Mike English-1/+1
2015-01-08Standardize punctuation & formatting of TRPLKevin Yap-2/+2
This commit is an attempt to standardize the use of punctuation and formatting in "The Rust Programming Language" as discussed in #19823. - Convert bold text to italicized textcwhen referring to terminology. - Convert single-quoted text to italicized or double-quoted text, depending on context. - Use double quotes only in the case of scare quotes or quotations.
2015-01-08Fix dead links in the guide and reorganizeAlex Crichton-0/+584