Skip to content

Commit b64fe81

Browse files
committed
Update test output
1 parent 40f9e9d commit b64fe81

13 files changed

+37
-5
lines changed

test/godot_project/gdscript/out/Reflect.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,4 @@ static func makeVarArgs(f):
100100
_g.push_back(v)
101101
tempArray = _g
102102
return f.call(tempArray)
103+

test/godot_project/gdscript/out/StringTools.gd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ static func urlEncode(s: String) -> String:
99
return ""
1010

1111
static func urlDecode(s: String) -> String:
12-
return null
12+
return ""
1313

1414
static func htmlEscape(s: String, quotes: bool = false) -> String:
1515
var buf_b: String = ""
@@ -324,7 +324,8 @@ static func hex(n: int, digits = null) -> String:
324324

325325
while true:
326326
s = hexChars[n & 15] + s
327-
n >>>= 4 if (n > 0):
327+
n = (((n & -1) >> 4) & -1)
328+
if !(n > 0):
328329
break
329330

330331
if (digits != null):
@@ -465,4 +466,3 @@ static func utf16CodePointAt(s: String, index: int) -> int:
465466
c = c - 55232 << 10 | s.unicode_at.call(index + 1) & 1023
466467

467468
return c
468-

test/godot_project/gdscript/out/Template.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,3 +584,4 @@ func run(e: Variant) -> void:
584584
tempVar1 = v.callv(pl)
585585
var x: String = str(tempVar1)
586586
_this.b += str(x)
587+

test/godot_project/gdscript/out/TestAbstractClass.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ static func test() -> void:
3434
"className": "test.TestAbstractClass",
3535
"methodName": "test"
3636
})
37+

test/godot_project/gdscript/out/TestAll.gd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ static func test() -> void:
1919
TestSignals.test()
2020
TestMap.test()
2121
TestAbstractClass.test()
22+
TestStringTools.test()
2223
haxe_Log.trace.call("Tests successful!!", {
2324
"fileName": "src/test/TestAll.hx",
24-
"lineNumber": 21,
25+
"lineNumber": 22,
2526
"className": "test.TestAll",
2627
"methodName": "test"
2728
})

test/godot_project/gdscript/out/TestMap.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1094,3 +1094,4 @@ static func test() -> void:
10941094
if true:
10951095
var cond: bool = (["1a", "1b"] as Array[String]).has(tempArray15[1])
10961096
assert(cond, "Test assert failed.")
1097+
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class_name TestStringTools
2+
3+
func _init() -> void:
4+
pass
5+
6+
static func test() -> void:
7+
var cond: bool = StringTools.hex(123, null) == "7B"
8+
9+
assert(cond, "Test assert failed.")
10+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
uid://cotcae73xg3fq

test/godot_project/gdscript/out/_GeneratedFiles.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"haxe_ArrayIterator.gd",
5454
"TestSys.gd",
5555
"TestSyntax.gd",
56+
"TestStringTools.gd",
5657
"TestString.gd",
5758
"TestStd.gd",
5859
"TestStaticVar.gd",
@@ -78,7 +79,7 @@
7879
"Exception.gd",
7980
"EReg.gd"
8081
],
81-
"id": 5,
82+
"id": 33,
8283
"wasCached": false,
8384
"version": 1
8485
}

test/godot_project/gdscript/out/haxe_ArrayIterator.gd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ func next():
1515
var tempIndex: int = self.current - 1
1616

1717
return self.array[tempIndex]
18+

0 commit comments

Comments
 (0)