Create basic unit testing framework
This commit is contained in:
14
Debug/Unit Testing/Scripts/json_parsing_tests.gd
Normal file
14
Debug/Unit Testing/Scripts/json_parsing_tests.gd
Normal file
@@ -0,0 +1,14 @@
|
||||
extends BaseTestRunner
|
||||
|
||||
|
||||
func Test_1() -> bool:
|
||||
var json_string = "{\"Key\": false}"
|
||||
var json = JSON.new()
|
||||
var parse_result := json.parse(json_string)
|
||||
if parse_result != OK:
|
||||
return false
|
||||
return true
|
||||
|
||||
|
||||
func Test_2() -> String:
|
||||
return ''
|
||||
Reference in New Issue
Block a user