aboutsummaryrefslogtreecommitdiffstats
path: root/core_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'core_test.go')
-rw-r--r--core_test.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/core_test.go b/core_test.go
index 7e6ae2d..700052f 100644
--- a/core_test.go
+++ b/core_test.go
@@ -7,21 +7,6 @@ import (
"testing"
)
-func makeTestBom() *Bom {
- op1 := OfferPrice{Currency: "usd", Price: 1.0, MinQty: 1}
- op2 := OfferPrice{Currency: "usd", Price: 0.8, MinQty: 100}
- o := Offer{Sku: "A123", Distributor: "Acme", Prices: []OfferPrice{op1, op2}}
- //o.AddOfferPrice(op1)
- //o.AddOfferPrice(op2)
- li := LineItem{Mfg: "WidgetCo",
- Mpn: "WIDG0001",
- Elements: []string{"W1", "W2"},
- Offers: []Offer{o}}
- //li.AddOffer(o)
- b := NewBom("test01")
- b.AddLineItem(&li)
- return b
-}
func TestNewBom(t *testing.T) {
b := makeTestBom()