diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2020-07-26 19:20:36 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2020-07-26 19:20:36 +0100 |
commit | aafbec18d3619d15b776705f446a894cdfa7861f (patch) | |
tree | 493f44d8638785af13b6b6a50368ee78033d9e3a /pkg/datamaps/reader_test.go | |
parent | 73e42a5e67c5d166a36bfe1473ef1ec05a761168 (diff) |
passing test - can create a []DatamapLine slices from a datamap in the database
Diffstat (limited to 'pkg/datamaps/reader_test.go')
-rw-r--r-- | pkg/datamaps/reader_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/datamaps/reader_test.go b/pkg/datamaps/reader_test.go index be89e5f..35046cc 100644 --- a/pkg/datamaps/reader_test.go +++ b/pkg/datamaps/reader_test.go @@ -111,7 +111,9 @@ func TestDMLSliceFromDatabase(t *testing.T) { t.Errorf("Unable to write datamap to database file because %v.", err) } data := DMLFromDB("First Datamap", db) - t.Log(data) + if data[0].Key != "Project/Programme Name" { + t.Errorf("expected to see Project/Programme Name and got %q\n", data[0]) + } } func TestExtract(t *testing.T) { |