You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@metron.apache.org by "Nick Allen (JIRA)" <ji...@apache.org> on 2016/08/12 15:29:20 UTC
[jira] [Updated] (METRON-364) Stellar - Adding Two Integers Does
Not Equal an Integer
[ https://issues.apache.org/jira/browse/METRON-364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nick Allen updated METRON-364:
------------------------------
Description:
A test showing the problem which would be part of org.apache.metron.common.stellar.StellarTest
```java
@Test
public void testAddIntegers() throws Exception {
String query = "1 + 1";
Assert.assertEquals(2, run(query, new HashMap<>()));
// java.lang.AssertionError:
// Expected :2
// Actual :2.0
}
```
was:
A test showing the problem which would be part of org.apache.metron.common.stellar.StellarTest
@Test
public void testAddIntegers() throws Exception {
String query = "1 + 1";
Assert.assertEquals(2, run(query, new HashMap<>()));
// java.lang.AssertionError:
// Expected :2
// Actual :2.0
}
> Stellar - Adding Two Integers Does Not Equal an Integer
> -------------------------------------------------------
>
> Key: METRON-364
> URL: https://issues.apache.org/jira/browse/METRON-364
> Project: Metron
> Issue Type: Bug
> Reporter: Nick Allen
> Labels: stellar
>
> A test showing the problem which would be part of org.apache.metron.common.stellar.StellarTest
> ```java
> @Test
> public void testAddIntegers() throws Exception {
> String query = "1 + 1";
> Assert.assertEquals(2, run(query, new HashMap<>()));
> // java.lang.AssertionError:
> // Expected :2
> // Actual :2.0
> }
> ```
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)