Reformatting
This commit is contained in:
@ -3,60 +3,52 @@
|
||||
xmlns="http://pmd.sourceforge.net/rule-tests"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://pmd.sourceforge.net/rule-tests http://pmd.sourceforge.net/rule-tests_1_0_0.xsd">
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Ok integer
|
||||
]]></description>
|
||||
<description>Ok integer</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
var x = 1;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Bad integer
|
||||
]]></description>
|
||||
<description>Bad integer</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<code><![CDATA[
|
||||
var x = 999999999999999999999999;
|
||||
]]></code>
|
||||
<code>var x = 999999999999999999999999;</code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Ok float
|
||||
]]></description>
|
||||
<description>Ok float</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
var x = 1.1234567890123;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Bad float
|
||||
]]></description>
|
||||
<description>Bad float</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<code><![CDATA[
|
||||
var z = 1.12345678901234567;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Ok float w/ exponent
|
||||
]]></description>
|
||||
<description>Ok float w/ exponent</description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
var x = 1.12e-4;
|
||||
]]></code>
|
||||
<source-type>ecmascript 3</source-type>
|
||||
</test-code>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Bad float w/ exponent
|
||||
]]></description>
|
||||
<description>Bad float w/ exponent</description>
|
||||
<expected-problems>1</expected-problems>
|
||||
<code><![CDATA[
|
||||
var x = 1.12345678901234567e-4;
|
||||
|
Reference in New Issue
Block a user