Skip to content

Commit

Permalink
Add sdk init file
Browse files Browse the repository at this point in the history
Fix testVecf32
  • Loading branch information
barakb committed Oct 10, 2024
1 parent 3bddf0d commit e991a18
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .sdkmanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=17.0.12-graal
7 changes: 6 additions & 1 deletion src/test/java/com/falkordb/GraphAPITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,12 @@ public void testVecf32() {
ResultSet resultSet = client.query("RETURN vecf32([2.1, -0.82, 1.3, 4.5]) AS vector");
Assert.assertEquals(1, resultSet.size());
Record r = resultSet.iterator().next();
Assert.assertEquals(Arrays.asList(2.1f, -0.82f, 1.3f, 4.5f), r.getValue(0));
List<Double> vector = r.getValue(0);
Assert.assertEquals(4, vector.size());
Assert.assertEquals(2.1f, vector.get(0), 0.01);
Assert.assertEquals(-0.82f, vector.get(1), 0.01);
Assert.assertEquals(1.3f, vector.get(2), 0.01);
Assert.assertEquals(4.5f, vector.get(3), 0.01);
}

@Test
Expand Down

0 comments on commit e991a18

Please sign in to comment.