Files
MusicPlayer/tests/unit/test_settings.gd
T
Sansan a0428e3475 Follow the GDScript style guide in every script
- Types on every parameter, return value and variable, and snake_case names
  (the player name limit is the constant MAX_NAME_LENGTH).
- Spelling fixes: *_triggered, character_selected, separator, caught_errors.
  The server's catched_errors key stays as the server sends it.
- Signals are connected with signal.connect() instead of by name.
- Code is ordered signals, constants, exported vars, vars, @onready vars,
  functions, with @onready on one line and two blank lines between functions.
- Every script starts with a ## description. Template comments, old LOC notes
  and commented-out code are gone, apart from the local play code.
- Lines are at most 100 characters, apart from the local play path.
- The screenshot tour turns off the blinking text cursor so pictures match.
2026-10-06 11:53:26 +02:00

15 lines
464 B
GDScript

extends GdUnitTestSuite
## Settings: the version number.
func test_version_comes_from_project_settings() -> void:
assert_str(Settings.version).is_equal(
ProjectSettings.get_setting("application/config/version"))
func test_version_is_major_minor_patch() -> void:
# The release job tags and names builds with this version
var pattern: RegEx = RegEx.create_from_string("^\\d+\\.\\d+\\.\\d+$")
assert_object(pattern.search(Settings.version)).is_not_null()