mirror of
https://github.com/Relintai/regression-test-project.git
synced 2024-12-25 14:07:21 +01:00
180 lines
2.7 KiB
GDScript3
180 lines
2.7 KiB
GDScript3
|
extends Node2D
|
||
|
|
||
|
class_name Operators
|
||
|
|
||
|
signal roman
|
||
|
|
||
|
@onready var sew : int = 0
|
||
|
|
||
|
|
||
|
func _ready() -> void:
|
||
|
|
||
|
assert(2>1)
|
||
|
|
||
|
var arr : Array = [25,235236,236,236,23,6,236,236,236,23,634,63,7,35,4734,64,64,34,62,72,32,535]
|
||
|
var dict : Dictionary = {35:535,5236:535,35236:"35","safasf":"w","etwet":"qwrqrqwrqwrq","t":"wet"}
|
||
|
var number = 5242434
|
||
|
var strin = "asfqwfasfasf"
|
||
|
|
||
|
52 % -25
|
||
|
arr.append(254)
|
||
|
arr[36235 % arr.size()]
|
||
|
arr[-36235 % arr.size()]
|
||
|
if dict.has(strin):
|
||
|
dict[strin]
|
||
|
sew = sew
|
||
|
number is Node2D
|
||
|
~36235
|
||
|
-36235
|
||
|
36235 * 36235
|
||
|
36235 / (21)
|
||
|
36235 % (21)
|
||
|
36235 + 36235
|
||
|
36235 - 36235
|
||
|
36235 >> int(max(min(36235,0),63))
|
||
|
36235 << int(max(min(36235,0),63))
|
||
|
36235 & 36235
|
||
|
36235 ^ 36235
|
||
|
36235 | 36235
|
||
|
36235 < 36235
|
||
|
36235 > 36235
|
||
|
36235 == 36235
|
||
|
36235 != 36235
|
||
|
36235 >= 36235
|
||
|
36235 <= 36235
|
||
|
36235 in ["asfasfqw","asfqwgqani"]
|
||
|
!36235
|
||
|
not 36235
|
||
|
36235 and 36235
|
||
|
36235 && 36235
|
||
|
36235 or 36235
|
||
|
36235 || 36235
|
||
|
|
||
|
number = 36235
|
||
|
number += 36235
|
||
|
number -= 36235
|
||
|
number *= 36235
|
||
|
number /= 21
|
||
|
number %= 21
|
||
|
number &= 36235
|
||
|
number |= 36235
|
||
|
|
||
|
1234567890
|
||
|
0x0123456789ABCDEF
|
||
|
0x123456789ABCDEF
|
||
|
0b101010101010101010101
|
||
|
0b010101010101010101010
|
||
|
3.242
|
||
|
25.1e-125
|
||
|
125e+24
|
||
|
"2122222222222222222222222222222225125125125215s"
|
||
|
"Chrabąszcz"
|
||
|
"""
|
||
|
MULTILINIONOWOŚĆ
|
||
|
"""
|
||
|
$"."
|
||
|
|
||
|
#Comment
|
||
|
|
||
|
var _r2 = qq()
|
||
|
var _rr = qqr("WRT")
|
||
|
call("qqr","QWT")
|
||
|
var func_ref = funcref(self,"qqr")
|
||
|
func_ref.call_func("QWQW")
|
||
|
|
||
|
if 36235:
|
||
|
pass
|
||
|
else:
|
||
|
pass
|
||
|
|
||
|
var rr : int = 10
|
||
|
while(rr != 0):
|
||
|
rr -= 1
|
||
|
|
||
|
match 36235:
|
||
|
2:
|
||
|
36235
|
||
|
5:
|
||
|
pass
|
||
|
36235
|
||
|
3:
|
||
|
continue
|
||
|
false
|
||
|
_:
|
||
|
[521252,"asfasfw", "asfw"]
|
||
|
|
||
|
match typeof(36235):
|
||
|
TYPE_AABB:
|
||
|
36235
|
||
|
TYPE_INT:
|
||
|
36235
|
||
|
|
||
|
match 36235:
|
||
|
2:
|
||
|
36235
|
||
|
# var RR:
|
||
|
# RR = 36235
|
||
|
|
||
|
match randi() % 26:
|
||
|
2:
|
||
|
pass
|
||
|
# var TT:
|
||
|
# var ss = TT # BUG GH#34384
|
||
|
|
||
|
for _i in [5,2,5]:
|
||
|
pass
|
||
|
for _i in {"a":0}:
|
||
|
pass
|
||
|
for _i in range(3):
|
||
|
pass
|
||
|
for _i in range(1,2):
|
||
|
pass
|
||
|
for _i in range(1,1,3):
|
||
|
pass
|
||
|
for _i in "Roman":
|
||
|
pass
|
||
|
for _i in 3:
|
||
|
pass
|
||
|
for _i in 2.2:
|
||
|
pass
|
||
|
|
||
|
|
||
|
enum {TILE, MILE}
|
||
|
enum State {STATE_IDLE, STATE_JUMP = 5, STATE_SHOOT}
|
||
|
const TITLE = 0
|
||
|
const TITLE2 : int = 0
|
||
|
var describtion
|
||
|
|
||
|
|
||
|
func qq():
|
||
|
return
|
||
|
|
||
|
func qqr(_stat : String = "TQW") -> String:
|
||
|
return "FAASFW"
|
||
|
|
||
|
static func ff(_rr : String = "FA") -> String:
|
||
|
return "qtqwtwey"
|
||
|
|
||
|
class ram:
|
||
|
var sa : int = 0
|
||
|
var qq
|
||
|
static func rr() -> ram:
|
||
|
return ram.new()
|
||
|
static func Wr() -> Node:
|
||
|
return Node.new()
|
||
|
static func rqq() -> String:
|
||
|
return "as"
|
||
|
func roman() -> String:
|
||
|
return "wqr"
|
||
|
func wykop() -> String:
|
||
|
return "wqr"
|
||
|
|
||
|
func func_ready() -> void:
|
||
|
var rr : ram = ram.new()
|
||
|
rr.sa = 125
|
||
|
rr.qq = "qw"
|
||
|
var _s = rr.rr()
|
||
|
var _r = rr.rqq()
|
||
|
var _t = rr.roman()
|
||
|
var _y = rr.wykop()
|