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
+13
View File
@@ -286,3 +286,16 @@ where
self.interface.command_with_data(Command::WRITE_LUT_REGISTER, buffer)
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn epd_size() {
assert_eq!(WIDTH, 128);
assert_eq!(HEIGHT, 296);
assert_eq!(DEFAULT_BACKGROUND_COLOR, Color::White);
}
}