Update unitbase.gd
This commit is contained in:
parent
f97fddcb97
commit
9607c34ecf
3 changed files with 16 additions and 14 deletions
|
@ -17,7 +17,7 @@ func test_custom_module_support() -> void:
|
|||
# Init CORE
|
||||
var config: CoreConfiguration = CoreConfiguration.new()
|
||||
config.custom_modules = true
|
||||
var core_test: Core = await load_framework(config)
|
||||
core_test = await load_framework(config)
|
||||
|
||||
# Load module
|
||||
var module: CoreBaseModule = CoreBaseModule.new()
|
||||
|
@ -63,7 +63,7 @@ func test_reload_config() -> void:
|
|||
var config: CoreConfiguration = CoreConfiguration.new()
|
||||
|
||||
# Init CORE
|
||||
var core_test: Core = await load_framework()
|
||||
core_test = await load_framework()
|
||||
|
||||
# Update some keys and reload
|
||||
config.logger_colored = false
|
||||
|
@ -87,7 +87,7 @@ func test_reload_config() -> void:
|
|||
|
||||
func test_formatted_string() -> void:
|
||||
# Init CORE
|
||||
var core_test: Core = await load_framework()
|
||||
core_test = await load_framework()
|
||||
|
||||
# Variables
|
||||
var test_type: String
|
||||
|
|
|
@ -3,7 +3,7 @@ extends 'res://tests/unitbase.gd'
|
|||
# byte2mib
|
||||
func test_byte2mib() -> void:
|
||||
# Init CORE
|
||||
var core_test: Core = await load_framework()
|
||||
core_test = await load_framework()
|
||||
|
||||
# Variables
|
||||
var test_in: int = 51758516
|
||||
|
@ -23,7 +23,7 @@ func test_byte2mib() -> void:
|
|||
# mib2byte
|
||||
func test_mib2byte() -> void:
|
||||
# Init CORE
|
||||
var core_test: Core = await load_framework()
|
||||
core_test = await load_framework()
|
||||
|
||||
# Variables
|
||||
var test_in: float = 49.36076736450195
|
||||
|
@ -43,7 +43,7 @@ func test_mib2byte() -> void:
|
|||
# mib2gib
|
||||
func test_mib2gib() -> void:
|
||||
# Init CORE
|
||||
var core_test: Core = await load_framework()
|
||||
core_test = await load_framework()
|
||||
|
||||
# Variables
|
||||
var test_in: float = 1500
|
||||
|
@ -63,7 +63,7 @@ func test_mib2gib() -> void:
|
|||
# gib2mib
|
||||
func test_gib2mib() -> void:
|
||||
# Init CORE
|
||||
var core_test: Core = await load_framework()
|
||||
core_test = await load_framework()
|
||||
|
||||
# Variables
|
||||
var test_in: float = 1.46484375
|
||||
|
@ -83,7 +83,7 @@ func test_gib2mib() -> void:
|
|||
# format_stringarray
|
||||
func test_format_stringarray() -> void:
|
||||
# Init CORE
|
||||
var core_test: Core = await load_framework()
|
||||
core_test = await load_framework()
|
||||
|
||||
# Variables
|
||||
var test_in: Array[String] = ["StarOpenSource", "JeremyStarTM", "Contributors"]
|
||||
|
@ -98,7 +98,7 @@ func test_format_stringarray() -> void:
|
|||
# format_stringarray (chaotic)
|
||||
func test_format_stringarray_chaotic() -> void:
|
||||
# Init CORE
|
||||
var core_test: Core = await load_framework()
|
||||
core_test = await load_framework()
|
||||
|
||||
# Variables
|
||||
var test_in: Array[String] = ["StarOpenSource", "JeremyStarTM", "Contributors"]
|
||||
|
@ -113,7 +113,7 @@ func test_format_stringarray_chaotic() -> void:
|
|||
# array_to_stringarray & stringarray_to_array
|
||||
func test_array_stringarray_conversion() -> void:
|
||||
# Init CORE
|
||||
var core_test: Core = await load_framework()
|
||||
core_test = await load_framework()
|
||||
|
||||
# Variables
|
||||
var test_in: Array = ["StarOpenSource", "JeremyStarTM", "Contributors"]
|
||||
|
@ -128,7 +128,7 @@ func test_array_stringarray_conversion() -> void:
|
|||
# get_center
|
||||
func test_get_center() -> void:
|
||||
# Init CORE
|
||||
var core_test = await load_framework()
|
||||
core_test = await load_framework()
|
||||
|
||||
# Variables
|
||||
var test_in_parent: Vector2 = Vector2(5919.591, 6815.9514)
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
extends BessereTestsTest
|
||||
|
||||
# Callbacks
|
||||
var callback: String = ""
|
||||
|
||||
# CORE
|
||||
var core: Core
|
||||
|
||||
# Used during testing
|
||||
var callback: String = ""
|
||||
var core_test: Core
|
||||
|
||||
# Unload framework after each test
|
||||
func after_each() -> void:
|
||||
callback = ""
|
||||
core_test = null
|
||||
await unload_framework()
|
||||
|
||||
# Framework management
|
||||
|
|
Loading…
Reference in a new issue