Add plan builder and tests

This commit is contained in:
Andrew Miner
2015-09-19 09:31:14 -07:00
parent f6b71c9464
commit 6ea97ac3aa
9 changed files with 198 additions and 10 deletions
+7 -5
View File
@@ -5,8 +5,8 @@ Copyright (c) 2015 by Redwood Labs
All rights reserved.
###
fixtures = require './fixtures'
ItemSlug = require '../../src/coffee/models/item_slug'
fixtures = require './fixtures'
ItemSlug = require '../../src/coffee/models/item_slug'
########################################################################################################################
@@ -61,9 +61,11 @@ describe 'GraphBuilder.coffee', ->
it 'an item with multiple inputs', ->
runSingleItemTreeBuildingTest 'test__lever', 8, 9
it 'can make a tree for an item with multiple recipes', ->
it 'an item with multiple recipes', ->
runSingleItemTreeBuildingTest 'test__iron_ingot', 6, 11
it 'can make a tree for an item with multiple inputs and multiple recipes', ->
it 'an item with multiple inputs and multiple recipes', ->
runSingleItemTreeBuildingTest 'test__iron_sword', 8, 18
logger.debug builder.toString()
it 'an item with one recursive recipe', ->
runSingleItemTreeBuildingTest 'test__copper_ingot', 10, 24