docs: 补齐各模块局部回归测试的输入与断言说明
This commit is contained in:
@@ -386,9 +386,9 @@ pub fn project(
|
||||
mod tests {
|
||||
use super::*;
|
||||
#[test]
|
||||
/// 以实际两次点变换核对嵌套组合顺序、逆变换和矩形尺寸,并允许大相机投影平移而非套用较小世界坐标限额。
|
||||
fn nested_views_compose_and_invert_without_changing_layout_coordinates() {
|
||||
// Camera coordinates may be +/-1e6 at zoom 100. Their projected
|
||||
// translation must not inherit the smaller world-coordinate limit.
|
||||
// 相机坐标可达正负一百万,缩放100后投影平移可达一亿;不能继续使用较小的世界坐标限制。
|
||||
assert!(
|
||||
Transform {
|
||||
zoom: 100.,
|
||||
|
||||
Reference in New Issue
Block a user