github.com/hzck/speedroute@v0.0.0-20201115191102-403b7d0e443f/algorithm/tests/rewards/required_reward_more_than_enough.json (about)

     1  {
     2    "name": "Required reward more than enough",
     3    "description": "Single required reward where multiple rewards has been acquired.",
     4    "testing": "Required reward is acquired and used.",
     5    "visual": "START->1, 1->END",
     6    "rewards": [
     7      {
     8        "id": "A"
     9      }
    10    ],
    11    "nodes": [
    12      {
    13        "id": "START"
    14      },
    15      {
    16        "id": "END"
    17      },
    18      {
    19        "id": "1",
    20        "rewards": [
    21          {
    22            "rewardId": "A",
    23            "quantity": 2
    24          }
    25        ]
    26      }
    27    ],
    28    "edges": [
    29      {
    30        "from": "START",
    31        "to": "1"
    32      },
    33      {
    34        "from": "1",
    35        "to": "END",
    36        "weights": [
    37          {
    38            "requirements": [
    39              {
    40                "rewardId": "A",
    41                "quantity": 1
    42              }
    43            ]
    44          }
    45        ]
    46      }
    47    ],
    48    "startId": "START",
    49    "endId": "END"
    50  }