~whereswaldon/ledger

cd95f28386fbd56102c2347a6d347d2fb05bf7ca — Chris Howey 2 years ago 8f3af36
test: deprecated function
1 files changed, 19 insertions(+), 0 deletions(-)

A ledgerReader_test.go
A ledgerReader_test.go => ledgerReader_test.go +19 -0
@@ 0,0 1,19 @@
package ledger

import (
	"testing"
)

func TestReaderSimple(t *testing.T) {
	_, err := NewLedgerReader("testdata/ledgerRoot.dat")
	if err != nil {
		t.Fatal(err)
	}
}

func TestReaderNonExistant(t *testing.T) {
	_, err := NewLedgerReader("testdata/ledger-xxxxx.dat")
	if err.Error() != "open testdata/ledger-xxxxx.dat: no such file or directory" {
		t.Fatal(err)
	}
}