🔧 Fix Rust tests (#6208)

* 🔧 Fix test script (rust wasm)

* 🔧 Make code compile in test mode + using aarch64 as a target for tests
This commit is contained in:
Belén Albeza 2025-04-07 14:08:41 +02:00 committed by GitHub
parent d279b6c232
commit 6f91da9461
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 50 additions and 8 deletions

View file

@ -337,7 +337,7 @@ mod tests {
shapes.insert(parent_id, parent.clone());
let bounds =
calculate_group_bounds(&parent, &shapes, HashMap::<Uuid, Bounds>::new()).unwrap();
calculate_group_bounds(&parent, &shapes, &HashMap::<Uuid, Bounds>::new()).unwrap();
assert_eq!(bounds.width(), 3.0);
assert_eq!(bounds.height(), 3.0);

View file

@ -101,12 +101,11 @@ impl SerializableResult for TransformEntry {
#[cfg(test)]
mod tests {
use super::*;
use crate::uuid::Uuid;
#[test]
fn test_serialization() {
let entry = TransformEntry::new(
uuid!("550e8400-e29b-41d4-a716-446655440000"),
Uuid::new_v4(),
Matrix::new_all(1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 0.0, 0.0, 1.0),
);