Added testcases for default size and color of the various displays

This commit is contained in:
Christoph Groß
2018-10-09 09:56:51 +02:00
parent 806d9a1e2d
commit 80090d8df2
5 changed files with 43 additions and 2 deletions
+12
View File
@@ -284,3 +284,15 @@ where
self.interface.command_with_data(Command::WRITE_LUT_REGISTER, buffer)
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn epd_size() {
assert_eq!(WIDTH, 200);
assert_eq!(HEIGHT, 200);
assert_eq!(DEFAULT_BACKGROUND_COLOR, Color::White);
}
}