Skip to content

Commit

Permalink
Add test that must pass: frac secs in scans TSV
Browse files Browse the repository at this point in the history
  • Loading branch information
sappelhoff committed Jul 23, 2020
1 parent 029e37e commit 8779ee9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bids-validator/tests/tsv.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,15 @@ describe('TSV', function() {
})
})

it('should allow acq_time column entries with optional fractional seconds', function() {
const tsv =
'filename\tacq_time\n' +
'func/sub-08_ses-test_task-linebisection_run-01_bold.nii.gz\t2017-05-03T06:45:45.88288'
validate.TSV.TSV(scansFile, tsv, [niftiFile], function(issues) {
assert.deepEqual(issues, [])
})
})

it('should allow session missing', function() {
var niftiNoSesFile = {
name: 'sub-08_task-linebisection_run-01_bold.nii.gz',
Expand Down

0 comments on commit 8779ee9

Please sign in to comment.