2018-01-08 00:13:10 +01:00
|
|
|
|
2018-08-29 07:18:24 +02:00
|
|
|
-- NetNewsWire scripting unit tests expect a dictionary to be returned from a script
|
2018-01-08 00:13:10 +01:00
|
|
|
-- containing either
|
|
|
|
-- {test_result:true}
|
|
|
|
-- to indicate success or
|
|
|
|
-- {test_result:false}
|
|
|
|
-- to indicate failure
|
|
|
|
-- Data can be passed back to unit test code by including a script_result field
|
|
|
|
-- for example this script returns "Geoducks!" as the result
|
|
|
|
-- this can be used as part of XCTest verification
|
|
|
|
-- see the testGenericScript() function in the ScriptingTests XCTestCase
|
|
|
|
|
|
|
|
return {test_result:true, script_result:"Geoducks!"}
|