mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
more esoteric with the docs; center all by default; genericity without subject doesnt compile lol
This commit is contained in:
parent
f7e6449324
commit
059ff2ca79
5 changed files with 44 additions and 37 deletions
|
|
@ -13,9 +13,11 @@ pub(crate) use ::tek_engine::*;
|
|||
pub(crate) use std::marker::PhantomData;
|
||||
|
||||
#[cfg(test)] #[test] fn test_layout () -> Usually<()> {
|
||||
let area: [u16;4] = [10, 10, 20, 20];
|
||||
let unit = ();
|
||||
//assert_eq!(().layout(area), [15, 15, 0, 0]); // should be independent over E, isn't
|
||||
assert_eq!(Fill::x(()).layout(area), [10, 15, 20, 0]);
|
||||
assert_eq!(Fill::y(()).layout(area), [15, 10, 0, 20]);
|
||||
assert_eq!(Fill::xy(()).layout(area), area);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(test)] #[test] fn test_bsp () {
|
||||
// TODO
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue