Skip to content

Instantly share code, notes, and snippets.

View ulfworsoe's full-sized avatar

Ulf Worsøe ulfworsoe

  • Mosek ApS
  • Copenhagen, Denmark
View GitHub Profile
@ulfworsoe
ulfworsoe / large_factcheck_test.jl
Created September 7, 2016 12:11
very large FactCheck test
using FactCheck
facts("[Mosek_consts]") do
r = "XYZ"; @fact r == "QWE" --> true
r = "XYZ"; @fact r == "QWE" --> true
r = "XYZ"; @fact r == "QWE" --> true
r = "XYZ"; @fact r == "QWE" --> true
r = "XYZ"; @fact r == "QWE" --> true
r = "XYZ"; @fact r == "QWE" --> true
r = "XYZ"; @fact r == "QWE" --> true
@ulfworsoe
ulfworsoe / test_consts.jl
Created September 7, 2016 11:15
Mosek.jl/test/test_consts.jl - testing constant values
import Mosek
using FactCheck
facts("[Mosek_consts]") do
ok,r = Mosek.symnamtovalue("MSK_SOLVE_DUAL"); @fact r == "$(Mosek.MSK_SOLVE_DUAL)" --> true
ok,r = Mosek.symnamtovalue("MSK_SOLVE_FREE"); @fact r == "$(Mosek.MSK_SOLVE_FREE)" --> true
ok,r = Mosek.symnamtovalue("MSK_SOLVE_PRIMAL"); @fact r == "$(Mosek.MSK_SOLVE_PRIMAL)" --> true
ok,r = Mosek.symnamtovalue("MSK_PI_CON"); @fact r == "$(Mosek.MSK_PI_CON)" --> true
ok,r = Mosek.symnamtovalue("MSK_PI_CONE"); @fact r == "$(Mosek.MSK_PI_CONE)" --> true
ok,r = Mosek.symnamtovalue("MSK_PI_VAR"); @fact r == "$(Mosek.MSK_PI_VAR)" --> true