regression-test-project/AIO/Operators/Operators.gd

178 lines
2.5 KiB
GDScript3
Raw Normal View History

2020-11-06 16:57:49 +01:00
extends Node2D
class_name Operators
signal roman
@onready var sew : int = 0
2020-11-17 20:10:21 +01:00
func _process(delta: float) -> void:
2020-11-06 16:57:49 +01:00
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)
2020-11-17 20:10:21 +01:00
arr[45 % arr.size()]
arr[-45 % arr.size()]
2020-11-06 16:57:49 +01:00
if dict.has(strin):
dict[strin]
sew = sew
number is Node2D
2020-11-17 20:10:21 +01:00
~45
-45
45 * 45
45 / (21)
45 % (21)
45 + 45
45 - 45
1 >> int(max(min(12,0),61))
1 << int(max(min(12,0),61))
45 & 45
45 ^ 45
45 | 45
45 < 45
45 > 45
45 == 45
45 != 45
45 >= 45
45 <= 45
45 in ["asfasfqw","asfqwgqani"]
!45
not 45
45 and 45
45 && 45
45 or 45
45 || 45
2020-11-06 16:57:49 +01:00
2020-11-17 20:10:21 +01:00
number = 45
number += 45
number -= 45
number *= 45
2020-11-06 16:57:49 +01:00
number /= 21
number %= 21
2020-11-17 20:10:21 +01:00
number &= 45
number |= 45
2020-11-06 16:57:49 +01:00
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")
2020-11-17 20:10:21 +01:00
if 45:
2020-11-06 16:57:49 +01:00
pass
else:
pass
var rr : int = 10
while(rr != 0):
rr -= 1
2020-11-17 20:10:21 +01:00
match 45:
2020-11-06 16:57:49 +01:00
2:
2020-11-17 20:10:21 +01:00
45
2020-11-06 16:57:49 +01:00
5:
pass
2020-11-17 20:10:21 +01:00
45
2020-11-06 16:57:49 +01:00
3:
continue
false
_:
[521252,"asfasfw", "asfw"]
2020-11-17 20:10:21 +01:00
match typeof(45):
2020-11-06 16:57:49 +01:00
TYPE_AABB:
2020-11-17 20:10:21 +01:00
45
2020-11-06 16:57:49 +01:00
TYPE_INT:
2020-11-17 20:10:21 +01:00
45
2020-11-06 16:57:49 +01:00
2020-11-17 20:10:21 +01:00
match 45:
2020-11-06 16:57:49 +01:00
2:
2020-11-17 20:10:21 +01:00
45
2020-11-06 16:57:49 +01:00
# var RR:
2020-11-17 20:10:21 +01:00
# RR = 45
2020-11-06 16:57:49 +01:00
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"
2020-12-28 19:26:26 +01:00
#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()