diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-01-12 15:59:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-12 15:59:01 +0100 |
commit | c6f4c0ac54a7a0ec330984c2463a23f112c85c66 (patch) | |
tree | 3456e99892874f2a050961952677c278ee8aa4cc /modules/gdscript/tests | |
parent | e80cf3259ee23fe75da0ea41dcf67680e607f063 (diff) | |
parent | c45b9245ae96db5fd8b264adf8dcd396538ee0d0 (diff) |
Merge pull request #70899 from adamscott/fix-vector-inf
Fix parse error using Vector{2,3,4}.INF
Diffstat (limited to 'modules/gdscript/tests')
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/vector_inf.gd | 6 | ||||
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/vector_inf.out | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/vector_inf.gd b/modules/gdscript/tests/scripts/parser/features/vector_inf.gd new file mode 100644 index 0000000000..039d51d9ed --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/vector_inf.gd @@ -0,0 +1,6 @@ +func test(): + var vec2: = Vector2.INF + var vec3: = Vector3.INF + + print(vec2.x == INF) + print(vec3.z == INF) diff --git a/modules/gdscript/tests/scripts/parser/features/vector_inf.out b/modules/gdscript/tests/scripts/parser/features/vector_inf.out new file mode 100644 index 0000000000..9d111a8322 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/vector_inf.out @@ -0,0 +1,3 @@ +GDTEST_OK +true +true |