-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance showcase with post validations on service and basic function …
…tests (#792) * add postValidation on showcase relationalStore/Service/Basic * update engine * change example name * function tests * fix test --------- Co-authored-by: Yannan <[email protected]>
- Loading branch information
1 parent
30412d8
commit b15de6c
Showing
13 changed files
with
69 additions
and
2 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
function model::Simple(): String[1] | ||
{ | ||
'Hello' + ' World!' | ||
} | ||
{ | ||
testPass | Simple() => 'Hello World!'; | ||
} | ||
|
||
function model::Hello(name: String[1]): String[1] | ||
{ | ||
'Hello World! My name is ' + $name + '.' | ||
} | ||
{ | ||
testSuite_1 | ||
( | ||
testPass | Hello('John') => 'Hello World! My name is John.'; | ||
) | ||
} | ||
|
||
function model::SimpleReference(): String[1] | ||
{ | ||
model::Simple() | ||
} | ||
{ | ||
testPass | SimpleReference() => 'Hello World!'; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
title: Function Tests | ||
description: Simple Function with Tests | ||
--- | ||
|
||
The following showcase shows how to write tests for simple functions with and without parameters. Adding tests to your functions will help ensure your function behaves as expected as it is changed by other users. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters