about summary refs log tree commit diff
path: root/src/libterm
diff options
context:
space:
mode:
authorJohannes Oertel <johannes.oertel@uni-due.de>2015-04-24 17:30:41 +0200
committerJohannes Oertel <johannes.oertel@uni-due.de>2015-04-24 23:06:41 +0200
commit07cc7d9960a1bc767dc051b9fae0c7ad2b5cd97f (patch)
treef600607447973dbc1af596efff62d8bd873bbe45 /src/libterm
parent2214860d4a979fe24d935277a74bd4d67e9bdb9f (diff)
downloadrust-07cc7d9960a1bc767dc051b9fae0c7ad2b5cd97f.tar.gz
rust-07cc7d9960a1bc767dc051b9fae0c7ad2b5cd97f.zip
Change name of unit test sub-module to "tests".
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.
Diffstat (limited to 'src/libterm')
-rw-r--r--src/libterm/terminfo/parm.rs2
-rw-r--r--src/libterm/terminfo/parser/compiled.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libterm/terminfo/parm.rs b/src/libterm/terminfo/parm.rs
index c9ad08bb852..2b8c24741ae 100644
--- a/src/libterm/terminfo/parm.rs
+++ b/src/libterm/terminfo/parm.rs
@@ -573,7 +573,7 @@ fn format(val: Param, op: FormatOp, flags: Flags) -> Result<Vec<u8> ,String> {
 }
 
 #[cfg(test)]
-mod test {
+mod tests {
     use super::{expand,Param,Words,Variables,Number};
     use std::result::Result::Ok;
 
diff --git a/src/libterm/terminfo/parser/compiled.rs b/src/libterm/terminfo/parser/compiled.rs
index 3de99088da4..ef42d8c2506 100644
--- a/src/libterm/terminfo/parser/compiled.rs
+++ b/src/libterm/terminfo/parser/compiled.rs
@@ -345,7 +345,7 @@ pub fn msys_terminfo() -> Box<TermInfo> {
 }
 
 #[cfg(test)]
-mod test {
+mod tests {
 
     use super::{boolnames, boolfnames, numnames, numfnames, stringnames, stringfnames};