Fix and compact evaluate()
This commit is contained in:
parent
f45a83bf2c
commit
4d7717b3bf
1 changed files with 1 additions and 5 deletions
|
@ -65,11 +65,7 @@ func _check_dictionary_recursive(parent_dict: Dictionary, path: String = "") ->
|
||||||
return success
|
return success
|
||||||
|
|
||||||
func evaluate() -> Array[String]:
|
func evaluate() -> Array[String]:
|
||||||
var random: String = str(randf()).repeat(50)
|
return _evaluate_recursive(str(randf()).repeat(50), schema)
|
||||||
var failed: Array[String] = []
|
|
||||||
_evaluate_recursive(random, schema)
|
|
||||||
|
|
||||||
return failed
|
|
||||||
|
|
||||||
func _evaluate_recursive(random: String, parent_dict: Dictionary, path: String = "") -> Array[String]:
|
func _evaluate_recursive(random: String, parent_dict: Dictionary, path: String = "") -> Array[String]:
|
||||||
var failed: Array[String] = []
|
var failed: Array[String] = []
|
||||||
|
|
Loading…
Reference in a new issue