test: move to tests/ because of issues with cargo test
This commit is contained in:
@@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||||
|
Copyright (C) 2025 Erick Ahmed
|
||||||
|
*/
|
||||||
|
|
||||||
|
use arc_core::wrappers::point::Point;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn point_creation() {
|
||||||
|
let p = Point::new(1.0, 2.0, 3.0).expect("Failed to create point");
|
||||||
|
let coords = p.coordinates();
|
||||||
|
assert_eq!(coords, (1.0, 2.0, 3.0));
|
||||||
|
}
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
#[test]
|
|
||||||
mod tests {
|
|
||||||
use arc_core::ffi::point::Point;
|
|
||||||
|
|
||||||
fn point_creation() {
|
|
||||||
let p = Point::new(1.0, 2.0, 3.0);
|
|
||||||
let coords = p.coordinates();
|
|
||||||
assert_eq!(coords, (1.0, 2.0, 3.0));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user