⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 chenntest.xml

📁 实验软装置(基于表达式的计算器ExprEval) 很不错的 有帮助于学习提高
💻 XML
字号:
<?xml version="1.0"?>
<!-- Simple test cases for EvalExpr -->
<test-case-definitions>

<test-case>
	<id>C001</id>
	<description>A simple expression.</description>
	<input>2^4-(3-1)</input>
	<output>14</output>
</test-case>

<test-case>
	<id>C002</id>
	<description>Expression with function call.</description>
	<input>min(---3*-3,max(3,4,5)+2-3*3)</input>
	<output>-2</output>
</test-case>

<test-case>
	<id>C003</id>
	<description>Expression with arithmetic operations.</description>
	<input>200000.0e-5^3^2</input>
	<output>512</output>
</test-case>
<test-case>
	<id>C004</id>
	<description>Expression with trinary operations.</description>
	<input><![CDATA[3<=3?13-4*2:false?3:3-6+2]]></input>
	<output>5</output>
</test-case>
<test-case>
	<id>E001</id>
	<description>Right parenthesis expected.</description>
	<input>((3+5)-((3))</input>
	<exception>MissingRightParenthesisException</exception>
</test-case>

<test-case>
	<id>E002</id>
	<description>Left parenthesis expected.</description>
	<input>Min(sin(3),3) - (53.06-2*4))</input>
	<exception>MissingLeftParenthesisException</exception>
</test-case>

<test-case>
	<id>E003</id>
	<description>Operator expected.</description>
	<input><![CDATA[@ muller&olivier]]></input>
	<exception>IllegalSymbolException</exception>
</test-case>


<test-case>
	<id>E004</id>
	<description>Operand expected.</description>
	<input>(1 *3 ^ (3 - ) + 5</input>
	<exception>MissingOperandException</exception>
</test-case>

<test-case>
	<id>E005</id>
	<description>Type smatch</description>
	<input><![CDATA[(3>5)&(4>2)|3>2 & 2<4]]></input>
	<exception>TypeMismatchedException</exception>
</test-case>

<test-case>
	<id>E006</id>
	<description>Type smatch</description>
	<input>(false?min(3,4,3):max(2,5))+3>5 </input>
	<exception>TypeMismatchedException</exception>
</test-case>

<test-case>
	<id>E007</id>
	<description>Trinary Operation</description>
	<input>!!true?4:3:5</input>
	<exception>TrinaryOperationException</exception>
</test-case>

</test-case-definitions>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -