Skip to content

Commit d506fc8

Browse files
authored
Handle RAI returning float -0 as 0 (#107)
* RAI now returns float -0 as 0 * fix tests so they pass vs RAI master
1 parent f5be1dd commit d506fc8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/results/tests.ts

+9-9
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ export const standardTypeTests: Test[] = [
399399
},
400400
{
401401
name: 'Float16',
402-
query: `def output = float[16, 12], float[16, 42.5], float[16, -0.0]`,
402+
query: `def output = float[16, 12], float[16, 42.5], float[16, 0.0]`,
403403
typeDefs: [
404404
{
405405
type: 'Float16',
@@ -411,12 +411,12 @@ export const standardTypeTests: Test[] = [
411411
type: 'Float16',
412412
},
413413
],
414-
values: [12, 42.5, -0],
415-
displayValues: ['12.0', '42.5', '-0.0'],
414+
values: [12, 42.5, 0],
415+
displayValues: ['12.0', '42.5', '0.0'],
416416
},
417417
{
418418
name: 'Float32',
419-
query: `def output = float[32, 12], float[32, 42.5], float[32, -0.0]`,
419+
query: `def output = float[32, 12], float[32, 42.5], float[32, 0.0]`,
420420
typeDefs: [
421421
{
422422
type: 'Float32',
@@ -428,12 +428,12 @@ export const standardTypeTests: Test[] = [
428428
type: 'Float32',
429429
},
430430
],
431-
values: [12, 42.5, -0],
432-
displayValues: ['12.0', '42.5', '-0.0'],
431+
values: [12, 42.5, 0],
432+
displayValues: ['12.0', '42.5', '0.0'],
433433
},
434434
{
435435
name: 'Float64',
436-
query: `def output = float[64, 12], float[64, 42.5], float[64, -0.0]`,
436+
query: `def output = float[64, 12], float[64, 42.5], float[64, 0.0]`,
437437
typeDefs: [
438438
{
439439
type: 'Float64',
@@ -445,8 +445,8 @@ export const standardTypeTests: Test[] = [
445445
type: 'Float64',
446446
},
447447
],
448-
values: [12, 42.5, -0],
449-
displayValues: ['12.0', '42.5', '-0.0'],
448+
values: [12, 42.5, 0],
449+
displayValues: ['12.0', '42.5', '0.0'],
450450
},
451451
{
452452
name: 'Decimal16',

0 commit comments

Comments
 (0)