Skip to content

Commit

Permalink
chore: convert json scenarios to toml format (#211)
Browse files Browse the repository at this point in the history
Closes #177 ,
#18

* toml files where automatically generated the from the json files using
a basic script
* Used the filename as the folder name and the scenario name as the
filename
* Prettier on the generated ones for consistency
  • Loading branch information
samypr100 authored Oct 4, 2024
1 parent 2a670ba commit 44c1016
Show file tree
Hide file tree
Showing 139 changed files with 1,862 additions and 3,327 deletions.
98 changes: 0 additions & 98 deletions scenarios/does-not-exist.json

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name = "requires-exact-version-does-not-exist"
description = "The user requires an exact version of package `a` but only other versions exist"

[root]
requires = ["a==2.0.0"]

[expected]
satisfiable = false

[packages.a.versions."1.0.0"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name = "requires-greater-version-does-not-exist"
description = "The user requires a version of `a` greater than `1.0.0` but only smaller or equal versions exist"

[root]
requires = ["a>1.0.0"]

[expected]
satisfiable = false

[packages.a.versions."0.1.0"]

[packages.a.versions."1.0.0"]
14 changes: 14 additions & 0 deletions scenarios/does_not_exist/requires-less-version-does-not-exist.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name = "requires-less-version-does-not-exist"
description = "The user requires a version of `a` less than `1.0.0` but only larger versions exist"

[root]
requires = ["a<2.0.0"]

[expected]
satisfiable = false

[packages.a.versions."2.0.0"]

[packages.a.versions."3.0.0"]

[packages.a.versions."4.0.0"]
10 changes: 10 additions & 0 deletions scenarios/does_not_exist/requires-package-does-not-exist.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
name = "requires-package-does-not-exist"
description = "The user requires any version of package `a` which does not exist."

[root]
requires = ["a"]

[packages]

[expected]
satisfiable = false
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name = "transitive-requires-package-does-not-exist"
description = "The user requires package `a` but `a` requires package `b` which does not exist"

[root]
requires = ["a"]

[expected]
satisfiable = false

[packages.a.versions."1.0.0"]
requires = ["b"]
215 changes: 0 additions & 215 deletions scenarios/excluded.json

This file was deleted.

Loading

0 comments on commit 44c1016

Please sign in to comment.