forked from hflicka/arden2bytecode
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathTestCompilerResult.java
More file actions
54 lines (50 loc) · 1.44 KB
/
TestCompilerResult.java
File metadata and controls
54 lines (50 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package arden.tests.specification.testcompiler;
import java.util.LinkedList;
import java.util.List;
/**
* Container for the result of an MLM execution. Contains the return values of
* the MLM and the written messages.
*
* <p>
* For durations the internal representation (seconds, months), not the
* localized string representation, must be used. It must be correctly pluralized<br>
* For times the trailing zeros must be removed. <br>
* For lists no whitespace is allowed before/after commas and single element
* lists start with a comma. <br>
* Truth values 0 and 1 must return FALSE/TRUE. <br>
* String constants must be enclosed in double quotes <br>
* Case doesn't matter. <br>
* </p>
*
* <h4>Allowed:</h4>
* <ul>
* <li>"A string"</li>
* <li>5 seconds</li>
* <li>1 second</li>
* <li>10 months</li>
* <li>1990-11-26T22:57:05.4</li>
* <li>(1,2,3)</li>
* <li>(,1)</li>
* <li>()</li>
* <li>TRUE</li>
* </ul>
* <h4>Not allowed:</h4>
* <ul>
* <li>10 Monate</li>
* <li>2 years</li>
* <li>1990-11-26T22:57:05.400</li>
* <li>(1, 2, 3)</li>
* <li>(1)</li>
* <li>truth value 1</li>
* </ul>
*/
public class TestCompilerResult {
/**
* Output of the <code>RETURN</code> statement.
*/
public final List<String> returnValues = new LinkedList<String>();
/**
* Output of the <code>WRITE</code> statement. Destination doesn't matter.
*/
public final List<String> messages = new LinkedList<String>();
}