~hristoast/obpmg

b82d5fe53608a0ff1781dca5aad79aabf96a9776 — Hristos N. Triantafillou 3 years ago 12fe03f v0.5
Typo
1 files changed, 2 insertions(+), 2 deletions(-)

M obpmg_test.go
M obpmg_test.go => obpmg_test.go +2 -2
@@ 100,7 100,7 @@ func TestGetYamlDataReallyBad(t *testing.T) {
func TestToXml(t *testing.T) {
	y, _ := getYamlData("sample.yml", false)
	x := yamlDataToX(&xmlOpenboxPipeMenu{}, y)
	xb := toXml(x)
	xb := toXML(x)

	expected := "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<openbox_pipe_menu>\n  <item label=\"Eduke32\" icon=\"\">\n    <action name=\"Execute\">\n      <execute>/usr/bin/eduke32</execute>\n    </action>\n  </item>\n  <item label=\"FTL: Faster Than Light\" icon=\"/home/hristos/games/FTL/data/exe_icon.bmp\">\n    <action name=\"Execute\">\n      <execute>/home/hristos/games/FTL/FTL</execute>\n    </action>\n  </item>\n  <item label=\"MultiMC\" icon=\"/usr/share/pixmaps/multimc.svg\">\n    <action name=\"Execute\">\n      <execute>/usr/bin/MultiMC</execute>\n    </action>\n  </item>\n  <item label=\"OpenMW\" icon=\"/opt/build-openmw/openmw/share/pixmaps/openmw.png\">\n    <action name=\"Execute\">\n      <execute>/opt/build-openmw/openmw/bin/openmw-launcher</execute>\n    </action>\n  </item>\n</openbox_pipe_menu>\n"



@@ 112,7 112,7 @@ func TestToXml(t *testing.T) {
func TestToXmlNoSort(t *testing.T) {
	y, _ := getYamlData("sample.yml", true)
	x := yamlDataToX(&xmlOpenboxPipeMenu{}, y)
	xb := toXml(x)
	xb := toXML(x)

	expected := "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<openbox_pipe_menu>\n  <item label=\"OpenMW\" icon=\"/opt/build-openmw/openmw/share/pixmaps/openmw.png\">\n    <action name=\"Execute\">\n      <execute>/opt/build-openmw/openmw/bin/openmw-launcher</execute>\n    </action>\n  </item>\n  <item label=\"FTL: Faster Than Light\" icon=\"/home/hristos/games/FTL/data/exe_icon.bmp\">\n    <action name=\"Execute\">\n      <execute>/home/hristos/games/FTL/FTL</execute>\n    </action>\n  </item>\n  <item label=\"MultiMC\" icon=\"/usr/share/pixmaps/multimc.svg\">\n    <action name=\"Execute\">\n      <execute>/usr/bin/MultiMC</execute>\n    </action>\n  </item>\n  <item label=\"Eduke32\" icon=\"\">\n    <action name=\"Execute\">\n      <execute>/usr/bin/eduke32</execute>\n    </action>\n  </item>\n</openbox_pipe_menu>\n"