using SimpleDiffEq, Test, StaticArrays

# dX_t = 2u dt + dW_t
f(u,p,t) = 2u
g(u,p,t) = 1
u0 = 0.5
tspan = (0.0,1.0)
prob = SDEProblem(f,g,u0,tspan)

sol = solve(prob,SimpleEM(),dt=0.25)

@test sol.t == collect(0:0.25:1.0)
@test length(sol.u) == 5
@test typeof(sol) <: DESolution

u0 = @SVector [0.1,0.2]
prob = SDEProblem(f,g,u0,tspan)
sol = solve(prob,SimpleEM(),dt=0.25)

@test typeof(sol.u) <: Vector{SVector{2,Float64}}

f(du,u,p,t) = du .= 2.0 * u
g(du,u,p,t) = du .= 1
u0 = 0.5ones(4)
tspan = (0.0,1.0)
prob = SDEProblem(f,g,u0,tspan)
sol = solve(prob,SimpleEM(),dt=0.25)
