Skip to content

Commit c374c5c

Browse files
committed
Add test for SliceTiming negative value detection
1 parent 3730364 commit c374c5c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/json.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,11 @@ describe('JSON', function(){
2424
assert(issues && issues.length === 1);
2525
});
2626
});
27+
28+
it('should detect negative value for SliceTiming', function(){
29+
var jsonObj = '{"SliceTiming": [-1.0, 0.0, 1.0]}';
30+
validate.JSON(file, jsonObj, function (issues) {
31+
assert(issues.length === 1 && issues[0].code == 55);
32+
});
33+
});
2734
});

0 commit comments

Comments
 (0)