From a1e3638a124ebca2563637079b49a366c997212f Mon Sep 17 00:00:00 2001 From: Radu Ioan Fericean Date: Thu, 1 Mar 2012 21:39:49 +0200 Subject: [PATCH] still not working --- timespans/tariff_plans_test.go | 9 ++++++--- timespans/test.kch | Bin 6300944 -> 6301208 bytes 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/timespans/tariff_plans_test.go b/timespans/tariff_plans_test.go index 51230c469..83bf8ee1f 100644 --- a/timespans/tariff_plans_test.go +++ b/timespans/tariff_plans_test.go @@ -29,7 +29,8 @@ func TestTariffPlanKyotoStore(t *testing.T) { b1 := &MinuteBucket{Seconds: 10, Priority: 10, Price: 0.01, DestinationId: "nationale"} b2 := &MinuteBucket{Seconds: 100, Priority: 20, Price: 0.0, DestinationId: "retea"} vd := &VolumeDiscount{100, 10} - seara := &TariffPlan{Id: "seara_voo", SmsCredit: 100, ReceivedCallSecondsLimit: 0, MinuteBuckets: []*MinuteBucket{b1, b2}, VolumeDiscountThresholds: []*VolumeDiscount{vd}} + seara := &TariffPlan{Id: "seara_voo", SmsCredit: 100, ReceivedCallSecondsLimit: 0, + MinuteBuckets: []*MinuteBucket{b1, b2}, VolumeDiscountThresholds: []*VolumeDiscount{vd}} getter.SetTariffPlan(seara) result, _ := getter.GetTariffPlan(seara.Id) if !reflect.DeepEqual(seara, result) { @@ -43,7 +44,8 @@ func TestTariffPlanRedisStore(t *testing.T) { b1 := &MinuteBucket{Seconds: 10, Priority: 10, Price: 0.01, DestinationId: "nationale"} b2 := &MinuteBucket{Seconds: 100, Priority: 20, Price: 0.0, DestinationId: "retea"} vd := &VolumeDiscount{100, 10} - seara := &TariffPlan{Id: "seara_voo", SmsCredit: 100, ReceivedCallSecondsLimit: 0, MinuteBuckets: []*MinuteBucket{b1, b2}, VolumeDiscountThresholds: []*VolumeDiscount{vd}} + seara := &TariffPlan{Id: "seara_voo", SmsCredit: 100, ReceivedCallSecondsLimit: 0, + MinuteBuckets: []*MinuteBucket{b1, b2}, VolumeDiscountThresholds: []*VolumeDiscount{vd}} getter.SetTariffPlan(seara) result, _ := getter.GetTariffPlan(seara.Id) if !reflect.DeepEqual(seara, result) { @@ -57,7 +59,8 @@ func TestTariffPlanMongoStore(t *testing.T) { b1 := &MinuteBucket{Seconds: 10, Priority: 10, Price: 0.01, DestinationId: "nationale"} b2 := &MinuteBucket{Seconds: 100, Priority: 20, Price: 0.0, DestinationId: "retea"} vd := &VolumeDiscount{100, 10} - seara := &TariffPlan{Id: "seara_voo", SmsCredit: 100, ReceivedCallSecondsLimit: 0, MinuteBuckets: []*MinuteBucket{b1, b2}, VolumeDiscountThresholds: []*VolumeDiscount{vd}} + seara := &TariffPlan{Id: "seara_voo", SmsCredit: 100, ReceivedCallSecondsLimit: 0, + MinuteBuckets: []*MinuteBucket{b1, b2}, VolumeDiscountThresholds: []*VolumeDiscount{vd}} getter.SetTariffPlan(seara) result, _ := getter.GetTariffPlan(seara.Id) if !reflect.DeepEqual(seara, result) { diff --git a/timespans/test.kch b/timespans/test.kch index b00f64b782763b6cf5a8bb0531775cb2617ebfa4..bc84c1b61949b5cb4b9fb996a0e0b9eb4790f006 100644 GIT binary patch delta 417 zcmbuxIZgsm0D$4VH@G9UF?J}53!owj?jnK ztZ7K7X#DSB@g<-B-BJ3(j-rQTV8w{EjD}Y=HB&gIoao)2A)&y78O&l1^H{(lmf*#* z+cSKtL-D0rnk5`dj&;@6Y~k4Q_aB?Cbw_PK*0F&AHnD{uwy}d<>>-3OBG|_P4iUu> zVmQVL;z-~WXE?_NE^&ox+#rctq;Q8cGPuVB9`S@Ma(KoI@_0o7MU+s+8!D)xhIiEQ QfrdM3fBpeut>uOsm_BV-^bLFpmW+VhPJw!736+Ld6=^k-`Sj z*u)mLv4dUgVIK!L#1W2hf>WH~92dAm23cI;8ad=~g92`GhayV2#{jP37)J*^Y