Skip to content

Commit

Permalink
add test cases for #52
Browse files Browse the repository at this point in the history
  • Loading branch information
ModischFabrications committed Apr 2, 2024
1 parent 55e0e52 commit c35e8a6
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
26 changes: 26 additions & 0 deletions tests/res/in/testjob_multi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"cut_width": 5,
"stocks": [
{
"name": "infinite",
"length": 1000
},
{
"name": "close",
"length": 450,
"quantity": 2
},
{
"name": "perfect",
"length": 390,
"quantity": 4
}
],
"required": [
{
"name": "Part1",
"length": 390,
"quantity": 8
}
]
}
72 changes: 72 additions & 0 deletions tests/res/out/testresult_multi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"job": {
"cut_width": 5,
"stocks": [
{
"name": "infinite",
"length": 1000
},
{
"name": "close",
"length": 450,
"quantity": 2
},
{
"name": "perfect",
"length": 390,
"quantity": 4
}
],
"required": [
{
"name": "Part1",
"length": 390,
"quantity": 8
}
]
},
"solver_type": "bruteforce",
"time_us": 10000,
"result": [
{
"stock": {
"name": "infinite",
"length": 1000
},
"cuts": [
{
"name": "Part1",
"length": 390
},
{
"name": "Part1",
"length": 390
}
]
},
{
"stock": {
"name": "close",
"length": 450
},
"cuts": [
{
"name": "Part1",
"length": 390
}
]
},
{
"stock": {
"name": "perfect",
"length": 390
},
"cuts": [
{
"name": "Part1",
"length": 390
}
]
}
]
}

0 comments on commit c35e8a6

Please sign in to comment.