From 3c7c1819116e903d3477bf42116839c222e1d30d Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Fri, 11 Aug 2023 13:48:39 +0200 Subject: [PATCH] Fixed failing tests --- maze/parser/parser_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/maze/parser/parser_test.go b/maze/parser/parser_test.go index f10d782..5a3fa42 100644 --- a/maze/parser/parser_test.go +++ b/maze/parser/parser_test.go @@ -42,7 +42,7 @@ func TestTextReadTrivial(t *testing.T) { nodes[4].Up = nodes[3] - reader := reader.TextReader{ + reader := &reader.TextReader{ Filename: "../../assets/trivial.txt", PathChar: ' ', WallChar: '#', @@ -107,7 +107,7 @@ func TestTextReadTrivialBigger(t *testing.T) { nodes[4].Up = nodes[3] - reader := reader.TextReader{ + reader := &reader.TextReader{ Filename: "../../assets/trivial-bigger.txt", PathChar: ' ', WallChar: '#', @@ -177,7 +177,7 @@ func TestTextReadTrivialBiggerStaggered(t *testing.T) { nodes[5].Up = nodes[4] - reader := reader.TextReader{ + reader := &reader.TextReader{ Filename: "../../assets/trivial-bigger-staggered.txt", PathChar: ' ', WallChar: '#', @@ -310,7 +310,7 @@ func TestTextReadNormal(t *testing.T) { nodes[link.to].Left = nodes[link.from] } - reader := reader.TextReader{ + reader := &reader.TextReader{ Filename: "../../assets/normal.txt", PathChar: ' ', WallChar: '#', @@ -501,7 +501,7 @@ func TestTextReadNormal2(t *testing.T) { nodes[link.to].Left = nodes[link.from] } - reader := reader.TextReader{ + reader := &reader.TextReader{ Filename: "../../assets/normal2.txt", PathChar: ' ', WallChar: '#',