-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #205 from theludovyc/fix#203_sg_custom_regex
Fix #203 rename unhandled_regex to custom_regex
- Loading branch information
Showing
7 changed files
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
extends "res://Test/RakugoTest.gd" | ||
|
||
const file_path = "res://Test/TestExecuter/TestCustomRegex/TestCustomRegex.rk" | ||
|
||
var file_base_name = get_file_base_name(file_path) | ||
|
||
func test_custom_regex(): | ||
Rakugo.add_custom_regex("HW", "^hello_world$") | ||
|
||
watch_rakugo_signals() | ||
|
||
await wait_parse_and_execute_script(file_path) | ||
|
||
await wait_for_signal(Rakugo.sg_custom_regex, 0.2) | ||
|
||
var params = get_signal_parameters(Rakugo, Rakugo.sg_custom_regex.get_name()) | ||
|
||
assert_eq(params[0], "HW") | ||
|
||
await wait_execute_script_finished(file_base_name) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[gd_scene load_steps=2 format=3 uid="uid://ds2f3ywueejdo"] | ||
|
||
[ext_resource type="Script" path="res://Test/TestExecuter/TestCustomRegex/TestCustomRegex.gd" id="1_u0hr0"] | ||
|
||
[node name="TestCustomRegex" type="Node"] | ||
script = ExtResource("1_u0hr0") |
20 changes: 0 additions & 20 deletions
20
Test/TestExecuter/TestUnhandledRegex/TestUnhandledRegex.gd
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters