mirror of https://github.com/svaarala/duktape.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
510 B
32 lines
510 B
12 years ago
|
/*
|
||
|
* Example test.
|
||
|
*
|
||
|
* Expected result is delimited as follows; the expected response
|
||
|
* here is "hello world\n". Multiple expected blocks may exist,
|
||
|
* they are simply concatenated. This allows tests to be written
|
||
|
* in segments.
|
||
|
*/
|
||
|
|
||
|
/*---
|
||
|
{
|
||
|
"comment": "a single metadata block may exist; it is formatted as a JSON object"
|
||
|
}
|
||
|
---*/
|
||
|
|
||
|
/*===
|
||
|
hello world
|
||
|
===*/
|
||
|
|
||
|
if (1) {
|
||
|
print("hello world"); /* automatic newline */
|
||
|
} else {
|
||
|
print("not quite");
|
||
|
}
|
||
|
|
||
|
/*===
|
||
|
another
|
||
|
===*/
|
||
|
|
||
|
print("another");
|
||
|
|