From 0bc3c6dc51b11c80cdcb8cf4d65c5cdc685e1456 Mon Sep 17 00:00:00 2001 From: dom Date: Fri, 12 Feb 2021 22:50:14 +0100 Subject: [PATCH] add go test --- PL.BNN | 10 ++++++++++ bnn_test.go | 14 ++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 PL.BNN create mode 100644 bnn_test.go diff --git a/PL.BNN b/PL.BNN new file mode 100644 index 0000000..f29a343 --- /dev/null +++ b/PL.BNN @@ -0,0 +1,10 @@ +BNN;3;0;pax an Naturwarenhandel,Engstingen;T;Preisliste;EUR;20210204;;20210205;0822;1 +50064;X;20150413;;4002824151926;;Pat� Tomatino;vegan;;;LAN;;D;C%;;180;701;7;52;;1;12 125g;12;125g;1;N;;;;1,5;;;;1;;;2,49;1,49;N;;;;;;;;;;;;;;;;;;;;;;T;;;;;1kg;8;; +50103;X;20150929;;4038507003022;;Gojibeerensaft;;;;GOV;;D;EG;;360;1200;7;43;;1;6 0,5l;6;0,5l;1;N;;;;3;;;;2;;18,95;;10,5;J;;;;;;;;;;;;;;;;;;;;;;T;;;;;1l;2;; +50104;X;20141224;;8428532200019;;Mandeldrink mit Agavensirup;;;;nut;;E;C%;;270;1200;7;42;;1;12 1,0l;12;1,0l;1;N;;;;12;;;;2;;3,79;;2,05;J;;;;;;;;;;;;;;;;;;;;;;T;;;;;;1;; +50106;X;20150407;;8428532210056;;Haselnussdrink mit Agavensirup;;;;nut;;E;C%;;240;1200;7;42;;1;12 1,0l;12;1,0l;1;N;;;;12;;;;2;;;3,99;2,35;J;;;;;;;;;;;;;;;;;;;;;;T;;;;;;1;; +50116;X;20150722;;8428532160818;;V! Quinoadrink instant;;;;nut;;E;C%;;300;1200;7;36;;1;6 400g;6;400g;1;N;;;;2,4;;;;2;;15,5;;8,41;N;;;;;;;;;;;;;;;;;;;;;;T;;;;;1kg;2,5;; +50125;X;20150728;;4013320005156;4013320016718;GEPA Espresso gemahlen;;;;gep;;;EG;;270;1100;7;69;;1;6 250g;6;250g;1;N;;;;3;;;;1;;;5,99;4,39;J;;;;;;;;;;;;;;;;;;;;;;T;;;;;1kg;4;; +50162;X;20150225;;4260213390084;;Kokosmehl RAW;;;;drg;;RP;EG;;360;601;7;54;;1;6 1kg;6;1kg;1;N;;;;6;;;;1;;12,95;;8,39;J;;;;;;;;;;;;;;;;;;;;;;T;;;;;;1;; +99999;A;20160927;;;;Pfandbewegung;;;;;;;;;;;;99;;1;1;1;;1;;;;;;;;;2;;;;0;N;;;;;;;;;;;;;;;;;;;;;;P;;;;;;;; +;;99 diff --git a/bnn_test.go b/bnn_test.go new file mode 100644 index 0000000..a169680 --- /dev/null +++ b/bnn_test.go @@ -0,0 +1,14 @@ +package bnn + +import ( + "testing" +) + +func TestReadBnnFile(t *testing.T) { + f, err := ReadBnnFile("./PL.BNN") + if err != nil { + t.Errorf("%s", err) + } + + t.Logf("%v", f) +}