z_mirror/fmm

git clone https://git.raiguard.me/z_mirror/fmm

Caleb HeuerImprove identifier naming9387fd2

predep-parsing
469 B27 linesraw
1package main
2
3import (
4	"testing"
5)
6
7func TestModlistNew(t *testing.T) {
8	_, err := newModList("TEST/mods/mod-list.json")
9	if err != nil {
10		t.Error(err)
11	}
12}
13
14func TestModlistOps(t *testing.T) {
15	list, err := newModList("TEST/mods/mod-list.json")
16	if err != nil {
17		t.Error(err)
18	}
19	list.disable("Unzipped")
20	if list.isEnabled("Unzipped") {
21		t.Error("Disable failed")
22	}
23	list.enable("Unzipped", nil)
24	if !list.isEnabled("Unzipped") {
25		t.Error("Enable failed")
26	}
27}