Created
April 21, 2019 07:07
-
-
Save zindel/e0e5d6c6f61c03cd42b047a6f33111c0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe('LE', function() { | |
it('"<2.0.0" for: 1.0.0, 1.5.0', async () => { | |
const p = await createSandbox({ | |
opam: [{name: 'pkg', version: '1.0.0'}, {name: 'pkg', version: '1.5.0'}], | |
root: { | |
dependencies: { | |
'@opam/pkg': '<2.0.0', | |
}, | |
}, | |
}); | |
const res = await p.esy('solve --dump-cudf-request=- --skip-repository-update'); | |
expect(res.stdout.trim()).toMatchSnapshot(); | |
// console.log(res.stdout.trim()) | |
}); | |
it('"<1.5.0" for: 1.0.0, 1.5.0', async () => { | |
const p = await createSandbox({ | |
opam: [{name: 'pkg', version: '1.0.0'}, {name: 'pkg', version: '1.5.0'}], | |
root: { | |
dependencies: { | |
'@opam/pkg': '<1.5.0', | |
}, | |
}, | |
}); | |
const res = await p.esy('solve --dump-cudf-request=- --skip-repository-update'); | |
expect(res.stdout.trim()).toMatchSnapshot(); | |
}); | |
it.only('"1-3 || 6 - 9"', async () => { | |
const p = await createSandbox({ | |
opam: [ | |
{name: 'pkg', version: '1.0.0'}, | |
{name: 'pkg', version: '2.0.0'}, | |
{name: 'pkg', version: '3.0.0'}, | |
{name: 'pkg', version: '4.0.0'}, | |
{name: 'pkg', version: '5.0.0'}, | |
{name: 'pkg', version: '6.0.0'}, | |
{name: 'pkg', version: '7.0.0'}, | |
{name: 'pkg', version: '8.0.0'}, | |
{name: 'pkg', version: '9.0.0'}, | |
{name: 'pkg', version: '10.0.0'}, | |
], | |
root: { | |
dependencies: { | |
'@opam/pkg': '1.0.0-3.0.0', | |
}, | |
}, | |
}); | |
const res = await p.esy('solve --dump-cudf-request=- --skip-repository-update'); | |
console.log(res.stdout.trim()) | |
// expect(res.stdout.trim()).toMatchSnapshot(); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment