This commit is contained in:
Bel LaPointe
2023-10-24 11:45:01 -06:00
parent d8724bb27f
commit 6f9ccea0d2
2 changed files with 43 additions and 198 deletions

View File

@@ -1,6 +1,7 @@
package ledger
import (
"bufio"
"fmt"
"io"
"strings"
@@ -53,7 +54,8 @@ func TestReadTransaction(t *testing.T) {
for name, d := range cases {
c := d
t.Run(name, func(t *testing.T) {
_, got, err := readTransaction(strings.NewReader(c.input))
r := bufio.NewReader(strings.NewReader(c.input))
got, err := readTransaction(r)
if err != c.err {
t.Error(err)
}