aboutsummaryrefslogtreecommitdiffstats
path: root/reader/reader_test.go
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-10-21 18:23:23 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2019-10-21 18:23:23 +0100
commit950b406793cf5cd1ff64b9266cc7c91c93da803a (patch)
tree98f544f2a383d702b9d2079a2990d2815a6fec1a /reader/reader_test.go
initial commit
Diffstat (limited to 'reader/reader_test.go')
-rw-r--r--reader/reader_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/reader/reader_test.go b/reader/reader_test.go
new file mode 100644
index 0000000..1c249b5
--- /dev/null
+++ b/reader/reader_test.go
@@ -0,0 +1,10 @@
+package reader
+
+import "testing"
+
+func TestReadDML(t *testing.T) {
+ dmlData := *ReadDML("/home/lemon/Documents/datamaps/input/datamap.csv")
+ if dmlData[0].Key != "Project/Programme Name" {
+ t.Errorf("dmlData[0].key = %s; want Project/Programme Name", dmlData[0].Key)
+ }
+}