Skip to content

Commit

Permalink
GitBook: [#118] No subject
Browse files Browse the repository at this point in the history
  • Loading branch information
duc authored and gitbook-bot committed Mar 2, 2022
1 parent 6a6ac88 commit 4726e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion developer/executors/become-a-test-case-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### A brief description of how to develop a test case for an AI service on Oraichain:[#](https://docs.orai.io/docs/Developers/become-a-tc-provider#a-brief-description-of-how-to-develop-a-test-case-for-an-ai-service-on-oraichain)

As Oraichain currently supports only shell script, a provider cannot use popular programming languages such as Python, hi to develop their services.
As Oraichain currently supports only shell script, a provider cannot use popular programming languages such as Python, Java & Nodejs to develop their services.

When developing a test case, it must have at least three input arguments. The first one is used for the name of the data source that it needs to run, while the second and the third are the input and expected output respectively provided by the user. In some cases, the user's input may not be necessary, but we still need to reserve it for other cases. The expected output should be compared to the output of the data source, and if the output does not meet the requirement (of the test case) then we return _**null**_. This is very important, as currently, Oraichain only checks if the output of a test case is empty or equal to null. If it passes these conditions, the result from data source will be collected and considered valid. An example of a test case is:

Expand Down

0 comments on commit 4726e48

Please sign in to comment.