mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
rename Plus and Minus to Push and Pull
This commit is contained in:
parent
4c640301c6
commit
7063ae90d1
3 changed files with 25 additions and 25 deletions
|
|
@ -47,7 +47,7 @@ fn test_plus_minus () -> Usually<()> {
|
|||
let engine = TestEngine(area, vec![vec![' ';10];10]);
|
||||
let test = TestArea(4, 4);
|
||||
assert_eq!(test.layout(area)?, Some([0, 0, 4, 4]));
|
||||
assert_eq!(Plus::X(1, test).layout(area)?, Some([1, 0, 4, 4]));
|
||||
assert_eq!(Push::X(1, test).layout(area)?, Some([1, 0, 4, 4]));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
|
@ -107,9 +107,9 @@ fn test_outset_align () -> Usually<()> {
|
|||
//fn test_offset () -> Usually<()> {
|
||||
//let area: [u16;4] = [50, 50, 100, 100];
|
||||
//let test = TestArea(3, 3);
|
||||
//assert_eq!(Plus::X(1, test).layout(area)?, Some([51, 50, 3, 3]));
|
||||
//assert_eq!(Plus::Y(1, test).layout(area)?, Some([50, 51, 3, 3]));
|
||||
//assert_eq!(Plus::XY(1, 1, test).layout(area)?, Some([51, 51, 3, 3]));
|
||||
//assert_eq!(Push::X(1, test).layout(area)?, Some([51, 50, 3, 3]));
|
||||
//assert_eq!(Push::Y(1, test).layout(area)?, Some([50, 51, 3, 3]));
|
||||
//assert_eq!(Push::XY(1, 1, test).layout(area)?, Some([51, 51, 3, 3]));
|
||||
//Ok(())
|
||||
//}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue