From 7b48de296f8ea284d0f3604b6ea161adcfccd9af Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Tue, 12 Jan 2021 15:56:54 +0100 Subject: Wrote a minimal config and refactored all tests from it to simplify everything --- config/config_test.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'config/config_test.go') diff --git a/config/config_test.go b/config/config_test.go index 5679d06..be24a21 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -19,6 +19,12 @@ func TestLoadFile(t *testing.T) { t.Fatal("invalid_yaml config file failed without error") } + // Minimal yaml file + _, err = LoadFile("test_data/minimal.yaml") + if err != nil { + t.Fatal("minimal config file should load without errors") + } + // TODO test non existant game in play actions, and duplicate //menuEntry = MenuEntry{ //Key: "p", -- cgit v1.2.3