package Ġworld . ph ant asm al . ps ol ib . file Formats Ċ Ċ import Ġworld . ph ant asm al . ps ol ib . test . Lib TestSuite Ċ import Ġworld . ph ant asm al . ps ol ib . test . readFile Ċ import Ġworld . ph ant asm al . test Utils . assert Close To Ċ import Ġkotlin . test . Test Ċ import Ġkotlin . test . assertEquals Ċ Ċ class ĠArea Collision Geometry Tests Ġ: ĠLib TestSuite Ġ{ ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġparse _ forest _ 1 () Ġ= Ġtest Async Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġobj Ġ= Ġparse Area Collision Geometry ( readFile ("/ map _ forest 0 1 c . rel ")) ĊĊĠĠĠĠĠĠĠ ĠassertEquals ( 6 9 , Ġobj . meshes . size ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 1 1 , Ġobj . meshes [ 0 ]. vertices . size ) ĊĠĠĠĠĠĠĠ Ġassert Close To (- 5 8 9 . 5 1 9 5 f , Ġobj . meshes [ 0 ]. vertices [ 0 ]. x ) ĊĠĠĠĠĠĠĠ Ġassert Close To ( 1 6 . 7 1 6 6 f , Ġobj . meshes [ 0 ]. vertices [ 0 ]. y ) ĊĠĠĠĠĠĠĠ Ġassert Close To (- 2 1 8 . 6 8 5 2 f , Ġobj . meshes [ 0 ]. vertices [ 0 ]. z ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 1 2 , Ġobj . meshes [ 0 ]. triangles . size ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 0 b 1 0 0 0 0 0 0 0 1 , Ġobj . meshes [ 0 ]. triangles [ 0 ]. flags ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 5 , Ġobj . meshes [ 0 ]. triangles [ 0 ]. index 1 ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 0 , Ġobj . meshes [ 0 ]. triangles [ 0 ]. index 2 ) ĊĠĠĠĠĠĠĠ ĠassertEquals ( 7 , Ġobj . meshes [ 0 ]. triangles [ 0 ]. index 3 ) ĊĠĠĠĠĠĠĠ Ġassert Close To ( 0 . 0 1 3 7 f , Ġobj . meshes [ 0 ]. triangles [ 0 ]. normal . x ) ĊĠĠĠĠĠĠĠ Ġassert Close To ( 0 . 9 9 9 4 f , Ġobj . meshes [ 0 ]. triangles [ 0 ]. normal . y ) ĊĠĠĠĠĠĠĠ Ġassert Close To (- 0 . 0 3 0 7 f , Ġobj . meshes [ 0 ]. triangles [ 0 ]. normal . z ) ĊĠĠĠ Ġ} Ċ } Ċ