You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests silently fail when there is a panic occur #28
test "Position id bigger than count of all positions" {
mut tree := &OctreeNode{
center: tellusim.TSVector3f{x: 0, y: 0, z: 0},
size: 1,
}
positions := []tellusim.TSVector3f{}
error := insert(tree, positions, 0, 1)
t.assert_eq(error.unwrap_err().msg(), POSITION_ID_TOO_BIG_ERROR, "Must be error")
}
if error is not error, code error.unwrap_err().msg() will panic, and when running the test all tests will fail silently and output will not appear in the console
Activity