Vector test and the test folder

This commit is contained in:
unittensor 2024-01-20 22:28:07 -05:00
parent 5327b201c7
commit fdf0205c98

6
tests/Vector.lua Normal file
View File

@ -0,0 +1,6 @@
type f64 = number
type vec3 = (x: f64, y: f64, z: f64) -> {x: f64, y: f64, z: f64}
local Vector3: vec3 = Vector3
local v3 = Vector3(-10, 30, 50)
print((`{("\n"):rep(3)} x=%d,y=%d,z=%d {("\n"):rep(3)}`):format(v3.x, v3.y, v3.z))