Skip to content

Commit

Permalink
travis #228
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyLuke committed Jan 27, 2017
1 parent 0a37e19 commit 9201802
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
2 changes: 1 addition & 1 deletion spec/mockGSE.lua
@@ -1,7 +1,7 @@
GSE = {}
GSE.L = {}
GSE.Static = {}
GSE.VersionString = 150;
GSE.VersionString = 2000;

GNOME = "UnitTest"

Expand Down
36 changes: 34 additions & 2 deletions spec/storage_spec.lua
Expand Up @@ -648,10 +648,42 @@ self:CallMethod('UpdateIcon')
}
}
}

local expectedval = [[Sequences['|cFFFFFF00prot|r'] = {
|cffcc7777-- This Sequence was exported from GSE 2.0.00.|r
Author="|cFF00D1FFLNPV|r",
SpecID=|cffffaa0066|r,
Talents = "|cffccaa88Talents: 3332123|r",
Default=1,
Icon=|cffcc7777236264|r,
MacroVersions = {
[1] = {
StepFunction = |cffccaa88"Priority"|r,
KeyPress={
"|cffddaaff/targetenemy|r [noharm][dead]",
},
PreMacro={
"|cffddaaff/say|r hello",
},
"|cffddaaff/cast|r |cff88bbdd|cff88bbddAvenger's Shield|r|r",
"|cffddaaff/cast|r |cff88bbdd|cff88bbddJudgment|r|r",
"|cffddaaff/cast|r |cff88bbdd|cff88bbddBlessed Hammer|r|r",
"|cffddaaff/cast|r |cff88bbdd|cff88bbddHammer of the Righteous|r|r",
"|cffddaaff/cast|r |cff88bbdd|cff88bbddConsecration|r|r",
"|cffddaaff/cast|r |cff88bbdd|cff88bbddLight of the Protector|r|r",
"|cffddaaff/cast|r |cff88bbdd|cff88bbddShield of the Righteous|r|r",
"|cffddaaff/cast|r |cff88bbdd|cff88bbddBlinding Light|r|r",
KeyRelease={
"|cffddaaff/cast|r |cff88bbdd|cff88bbddAvenging Wrath|r|r",
"|cffddaaff/cast|r |cff88bbdd|cff88bbddEye of Tyr|r|r",
"/startattack",
},
},
},
}
]]
returnval = GSE.ExportSequence(sequence1, "prot")
print(returnval)
assert.are.equal(false, returnval)
assert.are.equal(expectedval, returnval)

end)
end)

0 comments on commit 9201802

Please sign in to comment.