forked from dialogic-godot/dialogic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
141 changed files
with
3,087 additions
and
1,550 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,6 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Dialogic 1 Repository | ||
url: https://github.com/dialogic-godot/dialogic-1/issues | ||
about: Please post anything related to Dialogc 1.x (Godot 3.x) on the Dialogic 1 Repository! | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
extends GdUnitTestSuite | ||
|
||
## Check if transition animations can be accessed with "in", "out, "in out" | ||
## as space-delimited prefix. | ||
func test_fade_in_animation_paths() -> void: | ||
const TYPE := "PortraitAnimation" | ||
var fade_in_1 := DialogicResourceUtil.guess_special_resource(TYPE, "fade in", "") | ||
var fade_in_2 := DialogicResourceUtil.guess_special_resource(TYPE, "fade in out", "") | ||
var fade_in_3 := DialogicResourceUtil.guess_special_resource(TYPE, "fade out", "") | ||
|
||
var is_any_fade_in_empty := fade_in_1.is_empty() or fade_in_2.is_empty() or fade_in_3.is_empty() | ||
assert(is_any_fade_in_empty == false, "Fade In/Out animations are empty.") | ||
|
||
var are_all_fade_in_equal := fade_in_1 == fade_in_2 and fade_in_2 == fade_in_3 | ||
assert(are_all_fade_in_equal == true, "Fade In/Out animations returned different paths.") | ||
|
||
|
||
## Test if invalid animation paths will return empty strings. | ||
func test_invalid_animation_path() -> void: | ||
const TYPE := "PortraitAnimation" | ||
var invalid_animation_1 := DialogicResourceUtil.guess_special_resource(TYPE, "fade i", "") | ||
assert(invalid_animation_1.is_empty() == true, "Invalid animation 1's path is not empty.") | ||
|
||
|
||
var invalid_animation_2 := DialogicResourceUtil.guess_special_resource(TYPE, "fade", "") | ||
assert(invalid_animation_2.is_empty() == true, "Invalid animation 2's path is not empty.") | ||
|
||
|
||
## Test if invalid types will return empty strings. | ||
func test_invalid_type_path() -> void: | ||
const INVALID_TYPE := "Portait Animation" | ||
var invalid_animation := DialogicResourceUtil.guess_special_resource(INVALID_TYPE, "fade in", "") | ||
assert(invalid_animation.is_empty() == true, "Invalid animation 1's path is not empty.") | ||
|
||
const VALID_TYPE := "PortraitAnimation" | ||
var valid_animation_path := DialogicResourceUtil.guess_special_resource(VALID_TYPE, "fade in", "") | ||
assert(valid_animation_path.is_empty() == false, "Valids animation's path is empty.") | ||
|
||
assert(not invalid_animation == valid_animation_path, "Valid and invalid animation paths are equal.") | ||
|
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
Oops, something went wrong.